-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to setup river level in anuga #270
Comments
@chooron, strange that we don't have With your simple example try:
I will try to provide a work around for your problem. Should be easy to code. |
@chooron The following should work, though a bit low level.
|
Thanks ! I have solved the problem by preparing the stage file by using Arcgis, and run the code:
|
Hi @stoiver , I'm not sure if the watershed is too large, the inflow is too small, etc. My flood evolution is not very effective, and the river depths no longer change significantly after one time period of calculation. |
@chooron what do you mean by "one time period of calculation"? Setting up the mesh, the elevation and stage can take a bit of work. The interaction of the elevation and the mesh can lead to some interesting artefacts, in particular artificial numerical dams. One trick is to add a large amount of water to the domain (via rate_operator) to fill up all these dams and change the centroid elevation to match. This can be unsatisfying as the elevation does not match your original DEM. Refining the mesh should help, but you might end up with an unnecessarily large number of triangles and so a slow simulation. You can adapt your mesh to refine along rivers so that triangulation follows the river as opposed to crossing the river. If you have a look at the anuga-community/anuga_core issues list, in particular anuga-community#12 then there are some links to producing good meshes, which are finer along the river courses. You may still need to have a burn-in procedure of rain over the catchment to "fill" up the rivers |
I have prepared the elevation data for the basin and the river polygon. However, when I run this code:
domain.set_quantity('stage', expression='elevation + %f' % 3, polygon=river_polygon)
I encounter the following error:
Therefore, I want to know how to initialize the water level of the river using a polygon. When I run the code:
domain.set_quantity('stage', 1900, polygon=river_polygon)
It seems to run without errors, but the river stages are definitely inconsistent."
The text was updated successfully, but these errors were encountered: