Fipy for 2D swe #861
Replies: 1 comment
-
Hi @MehrdadKianiOsh: there are plenty of issues that I can see as the equations have been implemented above, but let's just focus on the equation for the height for now. To make the implementation more succinct, you will need to defined a vector velocity,
The
whenever required. Using this method, the height equation can be written as
This change can also be applied to the equations for each velocity component. Another glaring issue is that values shouldn't be outside of the
We can work on it some more once you have these two things cleaned up. Here are some links that might help you further (fipy + shallow water equations). |
Beta Was this translation helpful? Give feedback.
-
Hello All,
Thanks to all developers for the solver. I am trying to implement the shallow water equations in Fipy and not sure at all that I wrote the equations in the right way. I appreciate if you could help me in writing the equations:
and my implementation are (knowing that \tau_x=frictionu^2/8 and \tau_y=frictionv^2/2, y_b is the bed topography and all the three variables are defiend as CellVaiable):
Best,
Mehrdad
Beta Was this translation helpful? Give feedback.
All reactions