Shallow Water Equations and Moose Vector Variables #19356
-
|
I am attempting to model the shallow water equations (SWE) with Moose (I'm a PhD student at Boise State University). I've used Moose for a variety of other geophysics, but the SWE are slightly more complicated. I mention that to say that I'm familiar with Moose, having gone through most of the tutorials. Here's my problem setup. I have the strong form that I use to generate the weak form of the equations. The weak form takes the following form (using inner product notation):
These would be my questions: How do I work with vector valued variables in Moose? What classes can I work with/ derive from? I will continue to pour over tutorials and documentation, but any guidance would be appreciated. And finally, I read somewhere that a SWE module is in the works. Any word on progress there? Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
|
Hello
I m not sure if we have documentation specially for implementing vector equations. If you find it please let me know. The process is mostly the same, you create a vector variable, then vector kernels to implement your equation etc. There is a We support the lagrange variables as vector variables. There are vector versions of kernels, bcs, auxkernels etc. vector kernel: AuxKernel has an example of a vector aux in the text: Where did you read about the SWE? It d be easier to tag the person who was talking about it here Guillaume |
Beta Was this translation helpful? Give feedback.

Hello
First, since you only have 3 components and the equation seems to be writable in a vector-formulation, vector is the right choice and should give you better performance over implementing 3 scalar equations.I m a little concerned that having h and hu hv, which could be of different orders of magnitude since they have a different unit / physical meaning, will lead to convergence/scaling issues. You won't be able to scale the equations separately if you lump them in a vector
I m not sure if we have documentation specially for implementing vector equations. If you find it please let me know. The process is mostly the same, you create a vector variable, then vector kernels to implement …