I have a model I am trying to run involving the concentration of hydrogen in zirconium and it keeps dropping below 0 in some spots and above 1 in others... It solves several PDE's one of which is the Cahn-Hilliard equation for the conserved Hydrogen concentration. Is there a way to constrain the variable or set limits where it will not go above or below certain points?
↧