Skip to content

Adaptive time stepping #685

Discussion options

You must be logged in to vote

The docstring of thetamethod is actually incorrect. This is fixed by #686. The steps yielded by thetamethod have a fixed timestep. However, if the newton solver fails to find a solution for a full timestep, thetamethod internally reduces the timestep by one half, repeatedly, until a solution is found.

With Nutils v7 you can use tensorial topologies to build a time integrator with variable step size yourself. The idea is to create a time topology with a single element, a time geometry that is scaled and shifted for each time step and space-time fields that are linear interpolations in time of spatial fields. As an example (for Nutils master, but adaptable to v7), here is an implementation …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SteinStoter
Comment options

@joostvanzwieten
Comment options

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