Custom Diffusivity #27012
-
Hi, what would be the most straight forward approach of creating a custom diffusivity material that takes the components k diffusion coefficients d in phase B, where the coefficients are expressed as a function of temperature and pressure? Ideally this works as an extension within the Millington Quirk material or as a modification, where the diffusion_coefficient vector accepts other materials or aux_variables as input. Right now Millington Quirk only accepts direct input of float values. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
You'll have to write your own material to achieve this, but it shouldn't be too difficult. There are examples of taking variables and using them inside the material, eg, PorousFlowPermeabilityConstFromVar. |
Beta Was this translation helpful? Give feedback.
-
I tried writing my own Base, so that I could then use the custom diffusion coefficients in the other diffusivity objects.
|
Beta Was this translation helpful? Give feedback.
-
Works as intended. Thank you! |
Beta Was this translation helpful? Give feedback.
Check out https://github.com/cpgr/moose/tree/pfdiffvar - the last two commits have the changes I made. This will enable you to use an AuxVariable in place of the diffusion coefficient, which I assumed is what you wanted.
So you should be able to do something like
where
d00
etc are aux variables