Comments (3)
Dear Keith,
Thank you for reporting this performance issue, which might occur as I do not have as many boundaries (or islands) in my meshes.
The cost of build_ipobo
is probably also related to the complex implementation of iter_on_boundaries
(maybe we can do better).
Do you have in ADCIRC mesh format the information to build the IPOBO table? Or would you like to set the table to 0 and compute it afterwards (in BlueKenue for example)?
Concerning the proposal of adding an argument to provide the IPOBO table, it is a good idea and I think it should be in from_triangulation
, as some verifications can be done (at least shape of the array).
Best Regards,
Luc
from pyteltools.
Hey Luc,
Thanks for your timely response.
I can calculate the IPOBO table in Python directly from the IKLE table (I call it entities in my codes). I have some code that perhaps could be inherited here.
https://github.com/CHLNDDEV/oceanmesh/blob/master/oceanmesh/edges.py#L114
This function computes the edges of the boundary of a mesh in winding order and can handle meshes with many boundaries. Then it should be walk the edges, increment a counter, and load this into the right position in the IPOBO table.
I can draft up PR shortly.
from pyteltools.
I close this issue, because I merged your pull request (thank you!).
SerafinHeader.from_triangulation
has now an option to provide an IPOBO table (and avoid the call to SerafinHeader.build_ipobo
). Moreover the IPOBO table seems to useless (not read) for Telemac...
from pyteltools.
Related Issues (20)
- plot a Serafin results file using Python API HOT 4
- Support for 3D boundary files HOT 4
- Depth-averaging for 3D Serafin files HOT 2
- Add two variables HOT 2
- Fix temporal mean operator
- Interpolate to 2D vertical cross section HOT 2
- Provide example to reproject result HOT 1
- Error in Vertical Cross Section HOT 6
- Creating workflow and running from terminal HOT 1
- Error in SynchMax HOT 9
- Question regarding volume calculation HOT 2
- Liquid Flux Calculation Orientation HOT 1
- Duration over threshold
- Change the display of the vertical cross section HOT 3
- Enable Visualize Scalars and Visualize Vectors on Serafin 3D
- Add method to build IPOBO from scratch
- VTK export
- bug in Mesh2D __init__ HOT 4
- Propose to add get_time_fast() to the Sefafin.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyteltools.