You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get tau for low porosity cubes in cubes. Started not converging properly when porosity below 0.2. Noticed conv error jumping up and simulation ending after minimum number of iterations.
The text was updated successfully, but these errors were encountered:
Problem is negative flux causing err < 0 in def check_vertical_flux(self, conv_crit):
Possible fix 1:
Change the error from err = (fl.max() - fl.min())*2/(fl.max() + fl.min())
into err = (fl.max() - fl.min())*2/(fl.max())
or err = (fl.max() - fl.min())*2/(fl.max() + abs(fl.min()))
Possible fix 2:
make the error an absolute one, i.e. err = abs((fl.max() - fl.min())*2/(fl.max() + fl.min()))
I vote for the first option since if fl.max() ~= -fl.min() than the error can be really large or cause division by zero error in the extreme case that they're equal.
Description
Trying to get tau for low porosity cubes in cubes. Started not converging properly when porosity below 0.2. Noticed conv error jumping up and simulation ending after minimum number of iterations.
The text was updated successfully, but these errors were encountered: