mixed usage of AD and non-AD materials and kernels #26830
-
Dear all, I add one finite element AD kernel and use it with other non-AD kenels in Porous Flow. I need to use the AD and non-AD property 'PorousFlow_fluid_phase_density_nodal' in these kernels. When I run my input, I get the following message:
It seems it is not allowed to use the AD and non-AD property 'PorousFlow_fluid_phase_density_nodal' in one input file. Is there a solution for this? Are the AD materials and kernels only used in finite volume parts of Porous flow modules in its current status? Thanks. B |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hello There is a material to create the converted AD or non AD version of a property. It s the MaterialADConvertor and it s counterpart for the other direction of conversion https://mooseframework.inl.gov/source/materials/MaterialADConverter.html Guillaume |
Beta Was this translation helpful? Give feedback.
-
you declare it as a Real
and retrieve it as a vector
that s the problem |
Beta Was this translation helpful? Give feedback.
you declare it as a Real
and retrieve it as a vector
that s the problem