Skip to content

Extract Derivatives from ADReal #23606

Discussion options

You must be logged in to vote

Hello

There is an example in the INSFVMomentumAdvection fvkernel. First we get the dof number (here from the element argument)
const auto dof_number = sided_elem->dof_number(_sys.number(), _var.number(), 0);
then access the derivatives at that index
const Real d_u_face_d_dof = u_face.derivatives()[dof_number];

What kind of kernel or object are you using?
Are _T and _p both nonlinear variables?

Guillaume

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@joe61vette
Comment options

@GiudGiud
Comment options

Answer selected by joe61vette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants