Applying volume fraction constraint #32808
Unanswered
rnpratoori
asked this question in
Q&A Modules: General
Replies: 1 comment 2 replies
-
|
Hello There are multiple ways to do this. you could use ConstantBounds object object that enforces the [0, 1] interval. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a reaction-diffusion framework with volume fractions as the variables. Obviously, each volume fraction should be between 0 and 1 and the sum of all the volume fractions should be 1.
The easiest way to implement this is to replace one of the variables using this constraint, like in most phase-field problems. But in my framework, all the variables have a specific evolution behavior and I cannot make any of them an auxvariable. How can I enforce the constraint in my case? Running the simulation without the constraint gives the expected physics, but the variable values go beyond the bounds.
Here is the complete code - https://github.com/rnpratoori/phoenix/blob/main/problems/pstv.i
Beta Was this translation helpful? Give feedback.
All reactions