Conservative Advection with coupled variable - upwind scheme #16675
-
Dear MOOSE Users, I would like to solve this equation where \rho is the variable and q and p are coupled variables. I would like a kernel for the terms on the right hand-side that has the upwind scheme. Is there anything ready for this in the moose modules? If not, I would like to create my own kernel starting from ConservativeAdvection _u_nodal(_var.dofValues()), How do I do the same for a coupled variable? Is there anything similar in moose? Thank you very much in advance for your help. Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@lindsayad Do we have an example of this sort of upwind scheme? |
Beta Was this translation helpful? Give feedback.
-
Dear MOOSE Users, I have developed the following kernel for the conservative advection of a coupled variable: It seems to work when I use the full upwind scheme for my simulations. Specifically, in: However, I am not sure if the following lines are storing the out of diagonal Jacobian properly if (res_or_jac == JacRes::CALCULATE_JACOBIAN)
} Best Regards, |
Beta Was this translation helpful? Give feedback.
@lindsayad Do we have an example of this sort of upwind scheme?