Using Vector Variables with User-Defined Number of Components in MOOSE #29643
Unanswered
Silverwing747
asked this question in
Q&A Modules: Navier-Stokes
Replies: 1 comment 12 replies
-
@Silverwing747 I think what you are asking for is similar to the phase field model for grain growth, see: |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check these boxes if you have followed the posting rules.
Question
Hello everyone, and Happy New Year!
In the MOOSE NS Module, I noticed that density, temperature, and velocity are typically declared as independent variables. I understand this approach provides greater flexibility. However, for tightly coupled systems of PDEs, such as the compressible Navier-Stokes equations, this requires repeatedly declaring couplings for nearly every kernel, material property, etc., which seems suboptimal.
I noticed that MOOSE supports LAGRANGE_VEC variables, where the components are inherently coupled. This got me wondering: is it possible for a user to define a vector variable with DIM+2 components (e.g., velocity vector + density + temperature) so that these variables are coupled by default? This would allow implementing the compressible Navier-Stokes equations in their compact form, simplifying variable transformations.
I looked through the forums and example codes but couldn’t find anyone doing this. Is this approach feasible in MOOSE? If so, what would be the pros and cons? How would it effect computational efficiency? Some drawbacks I can think of is reduced efficiency in automatic differentiation, less code flexibility, but there may be others I haven’t considered.
I’d love to hear your thoughts and experiences!
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions