Using aux variables and material properties in DerivativeParsedMaterial #28876
Unanswered
rnpratoori
asked this question in
Q&A Modules: Phase field
Replies: 1 comment 10 replies
-
Hello An auxiliary variable can be substituted but I would not recommend it if you are using automatic differentiation (AD) or the Derivatives from the DerivativeParsedMaterial because auxiliary variables do not propagate derivatives (there might be a way with the DerivativeParsedMaterial, definitely not with AD) So instead I would recommend using an AD material property instead |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am working on a set of phase-field equations where the energy is defined using polymer volume fraction instead of the regular phase field order parameter
c
. Although I can rewrite the expression usingc
, it would make it cumbersome.Now, to combat this, I have defined an aux variable for polymer volume fraction which is calculated based on
c
. Can I use this to define the expression for energy usingDerivativeParsedMaterial
? In this case, what will be thecoupled_variable
? 'c' or polymer volume fraction?I also have a material property which is calculated at each quadrature point and used in one of the energy terms and is also dependent on polymer volume fraction. How is it handled in
DerivativeParsedMaterial
?Beta Was this translation helpful? Give feedback.
All reactions