Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
shallow water problem in PDE mode
Posted 24.05.2011, 09:45 GMT-4 Studies & Solvers 0 Replies
Please login with a confirmed email address before reporting spam
Hello, everyone. Could anyone give me some advice to solve the problem in the PDE mode
The equation is 1D shallow water?There are an example in Help file? but the initial water depth is nonzero in the example?as follows?
dz /dt+d(z*v)/dx=0
d(z*v)/dt + d(z*v*v)/dx + g*z*dz/dt - g*z*SF-E*d^2(z*v)/dx^2=0
The computation is OK when initial water depth z > 0 in the whole domain. However? when there exists z =0 in some place? I use two ways to try to solve the problem ?But it doesn't work
?1? the variable is chosen as Z and ZV
In this situation? the z*v*v in the second equation must be expressed as ZV*ZV/Z. The error is that there are NaN/INF in the matrix?
?2? the variable is chosen as Z and V
In this case? d(z*v)/dt must be expressed as z*dv/dt + v*dz/dt. The error is" There are 80 void equations (empty rows in matrix) for the variable V at coordinates: (75), (-53.5714), (,-32.1429), (-10.7143), (10.7143), ...
I am looking for reply from all of you
Thank a lot
Hello chaojun ouyang
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.