Handling Mixed Second-Order Partial Derivatives in MOOSE #28246
-
Check these boxes if you have followed the posting rules.
QuestionHi everyone, I need to solve an equation that includes a mixed second-order partial derivative with respect to x and y, but I'm unsure how to handle the mixed partial derivative in MOOSE. In 2021, a similar question was asked (##19475), and the recommendation was to use integral transforms for differential reduction. I've tried this method, but MOOSE fails to converge during the computation. I'm curious if there have been any updates or advancements in how MOOSE handles second-order mixed partial derivatives. I noticed that the code related to the incompressible Navier-Stokes (INS) equations in MOOSE seems to include variables for second-order derivatives (e.g., The specific mixed second-order partial derivative I need to handle is: Any guidance or insights on how to properly implement this in MOOSE would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello I think coupledSecond returns a tensor and you can simply access the off-diagonal component to get the d2f/dxdy Guillaume |
Beta Was this translation helpful? Give feedback.
I believe you can output the tensor with
std::cout << Moose::stringify(..
If you do _tensor.row(0)(1) you should get the xy mixed derivative
Note that you also need to index by quadrature point with [_qp]