#include <alsfvm/integrator/RungeKutta4.hpp>
◆ RungeKutta4()
alsfvm::integrator::RungeKutta4::RungeKutta4 |
( |
alsfvm::shared_ptr< System > |
system | ) |
|
◆ getNumberOfSubsteps()
size_t alsfvm::integrator::RungeKutta4::getNumberOfSubsteps |
( |
| ) |
const |
|
virtual |
Returns the number of substeps this integrator uses. For ForwardEuler this is 1, for RK4 this is 4, etc.
- Returns
- 4
Returns the number of substeps this integrator uses. Since this is third order RK, we need three subtimesteps
- Returns
- 3
Implements alsfvm::integrator::Integrator.
◆ performSubstep()
Performs one substep and stores the result to output.
- Parameters
-
inputConserved | should have the output from the previous invocations in this substep, if this is the first invocation, then this will have one element, second timestep 2 elements, etc. |
spatialCellSizes | should be the cell size in each direction |
dt | is the timestep |
substep | is the currently computed substep, starting at 0. |
output | where to write the output |
cfl | the cfl number to use. |
timestepInformation | the current timestepInformation (needed for current time) |
- Note
- the next invocation to performSubstep will get as input the previuosly calculated outputs
- Returns
- the newly computed timestep (each integrator may choose to change the timestep)
Performs one substep and stores the result to output.
- Parameters
-
inputConserved | should have the output from the previous invocations in this substep, if this is the first invocation, then this will have one element, second timestep 2 elements, etc. |
spatialCellSizes | should be the cell size in each direction |
dt | is the timestep |
output | where to write the output |
- Note
- the next invocation to performSubstep will get as input the previuosly calculated outputs
Implements alsfvm::integrator::Integrator.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/latest/alsfvm/include/alsfvm/integrator/RungeKutta4.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/latest/alsfvm/src/integrator/RungeKutta4.cpp