Skip to content

Suppressing negative massfracs #764

Answered by marchdf
RSuryaNarayan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, we currently do not have an option for that and have been very careful about introducing such an option. We let the user do that for the EB because the current state redistribution is not designed for algebraic constraints among variables. Typically, we've found that negative mass fractions away from the EB are a sign of something else going wrong. However, if you feel like this would solve your problem and that you can live with the consequences, then doing something in post_advance to clean the mass fractions after each time step, would work. Note that if you do that, you have to worry about mass conservation, consistency among other variables, etc.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@baperry2
Comment options

@drummerdoc
Comment options

@RSuryaNarayan
Comment options

@drummerdoc
Comment options

@RSuryaNarayan
Comment options

Answer selected by RSuryaNarayan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants