-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the elevation of each vertex in the stage #282
Comments
Hi @842590879 The answer to your question is actually a little complicated than it might seem depending on how you want to use the the result. Within the python script you can obtain the values via
By the way centroid values similarly can be accessed via
If you are running in parallel, these will only access the data on the specific processor. I would recommend using centroid values as these are essentially uptodate where as vertex values are only guaranteed at the end of a yield step. You can also access the stage values stored in the sww file, but of course the values will only be available at the yield timesteps. Checkout the |
Hi@stoiver, I am trying to achieve a flood effect in cesium, similar to the effect rendered by 3d anuga-viewer. But I found that the vertex_values method using domain.quantities['stage'].vertex_values gave the same vertex elevation. I also tried to change the value of the location parameter in the domain.set_quantity function, but the result was the same. So how do I get the different elevation values for each vertex of each triangle? Thank you very much! |
@842590879 are you pulling the data from an sww file (like the viewer) or in real time during a simulation? |
@stoiver Real-time data extraction in the Merewether Flood Case Study Example |
@842590879 How are you using the object Be aware that the size of |
@stoiver Thank you very much for your explanation. |
Hello, how can I obtain the elevation of each vertex in the stage?
The text was updated successfully, but these errors were encountered: