Return non-geometric factors for all groups (#121)
* Update function: dt_non_geometric_factor -> dt_non_geometric_factors * Add timestep estimation helper function * Add clarifying remark about timestep estimation Co-authored-by:Andreas Klöckner <inform@tiker.net> * Make wavespeed argument option * Drop dt estimator; provide characteristic lengthscales * Expand and update documentation Co-authored-by:
Andreas Klöckner <inform@tiker.net> * Allow HyperbolicOperator.max_characteristic_velocity to return local data * Add warning to dt_geometric_factors about non-volume discretizations * Add fudge factor to surface advection time step * Time step estimation: clean up freeze/thaw semantics * Wave models: clean up freeze/thaw * Variable coefficient wave model: do not nodal-reduce characteristic velocity * Add missing freeze(...) for dim=1 case * Add missing thaw in dt utils unit test * Fix variable coefficient wave example * Memoize characteristic lengths rather than geometric factors * Use actx from wave speed DOFArray in variable coefficient operator * Pass array context to estimate_rk4_timestep * Ensure application actx is passed through to timestep estimation * Update Operator method interfaces for timestepping * Always return thawed characteristic lengthscales Co-authored-by:
Andreas Klöckner <inform@tiker.net>
Showing
- examples/advection/surface.py 2 additions, 1 deletionexamples/advection/surface.py
- examples/advection/var-velocity.py 1 addition, 1 deletionexamples/advection/var-velocity.py
- examples/advection/weak.py 1 addition, 1 deletionexamples/advection/weak.py
- examples/maxwell/cavities.py 1 addition, 1 deletionexamples/maxwell/cavities.py
- examples/wave/var-propagation-speed.py 1 addition, 3 deletionsexamples/wave/var-propagation-speed.py
- examples/wave/wave-min-mpi.py 1 addition, 2 deletionsexamples/wave/wave-min-mpi.py
- examples/wave/wave-op-mpi.py 5 additions, 8 deletionsexamples/wave/wave-op-mpi.py
- examples/wave/wave-op-var-velocity.py 5 additions, 8 deletionsexamples/wave/wave-op-var-velocity.py
- grudge/dt_utils.py 83 additions, 17 deletionsgrudge/dt_utils.py
- grudge/models/__init__.py 25 additions, 12 deletionsgrudge/models/__init__.py
- grudge/models/advection.py 2 additions, 2 deletionsgrudge/models/advection.py
- grudge/models/em.py 1 addition, 2 deletionsgrudge/models/em.py
- grudge/models/wave.py 23 additions, 18 deletionsgrudge/models/wave.py
- test/test_dt_utils.py 6 additions, 3 deletionstest/test_dt_utils.py
- test/test_grudge.py 1 addition, 1 deletiontest/test_grudge.py
- test/test_mpi_communication.py 1 addition, 2 deletionstest/test_mpi_communication.py
Loading
Please register or sign in to comment