Accessing flow quantities (viscosity, diffusion coefficients) in a derived quantity #604
-
Hello, I am trying to implement a local form of the entropy inequality into PeleC. Nick Wimer created a branch with a second order velocity gradient calculation which has been very useful. In Setup.cpp the routine (and mine) are added to the derive_lst with amrex::DeriveRec::GrowBoxByOne ( as opposed to amres:DeriveRec:TheSameBox for most other derive functions) in order to accomplish the central difference for the velocity gradient tensor. Now, I need the viscosity, diffusion coefficients, and thermal conductivity. There are derive functions already in place for them, but I am unable to get the code to compile when trying to access trans_parms.device_trans_parm() as they do because it wasn't declared in that scope. Is there a way for me to access these flow variables in my routine? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, thanks for reaching out! The first thing I would recommend is for @nickwimer to make a PR so we can merge that code into mainline PeleC since it seems useful in general. The second thing is: can I see the code? It's hard to debug this without code. My first hunch is that maybe they aren't part of |
Beta Was this translation helpful? Give feedback.
Hi, thanks for reaching out! The first thing I would recommend is for @nickwimer to make a PR so we can merge that code into mainline PeleC since it seems useful in general. The second thing is: can I see the code? It's hard to debug this without code. My first hunch is that maybe they aren't part of
PeleC::
and so they can't access that member variable?