If condition #2876
Unanswered
Hasupama
asked this question in
Firedrake support
If condition
#2876
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am solving continuity equation with a constant time step. But I need to use dynamic time stepping.
t = 0.0 #STARTING TIME
dt_min = 1e-6 # Minimum time step [s]
tMax = 20e-3 # FINISHING TIME [s]
Dt = Constant(1e-3) #INITIAL TIME STEP [s]
while t <= tMax:
solve (PDE)
If it does not converge use Dt=Dt/2 and solve again.
Dt can be reduced until until Dt=dt_min
Could you please explain how to implement above if condition until Dt=dt_min inside the while loop?
The error message I got is diverged_DTOL. I need to reduce the time step when I get this error
Beta Was this translation helpful? Give feedback.
All reactions