Replies: 1 comment 3 replies
-
What I'm used to seeing for a conserved quantity with limiting values is a diffusion coefficient that depends on the quantity, e.g. This keeps eq = fp.TransientTerm(var=C) == fp.DiffusionTerm(coeff=D0 * C * (1 - C), var=C) but be aware of the distinction between eq = fp.TransientTerm(var=C) == fp.DiffusionTerm(coeff=D0 * C.faceValue * (1 - C).faceValue, var=C) or even eq = fp.TransientTerm(var=C) == fp.DiffusionTerm(coeff=D0 * C.harmonicFaceValue * (1 - C).harmonicFaceValue, var=C) ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to solve 1D Diffusion equation, where there is a limit of the concentration value over the domain, as if there is a ceiling.
This picture is basically 50% of what I am trying to achieve. Because, in this picture, if the value at the index exceeds the limit value, the limit value simply replaces the value at the index using Constrain().
What I want to achieve is even when the value at the index exceeds the limit, these extra flux flow into the next domain, basically solving 1D diffusion but as if there is a ceiling that is limiting the concentration to grow (The top part is basically closed).
I was looking at the examples and not sure how to add this implementation.
Beta Was this translation helpful? Give feedback.
All reactions