The FixedIntervalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals.
More...
#include <alsfvm/io/FixedIntervalWriter.hpp>
The FixedIntervalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals.
This class is useful if you only want to save every x seconds of simulation.
◆ FixedIntervalWriter()
alsfvm::io::FixedIntervalWriter::FixedIntervalWriter |
( |
alsfvm::shared_ptr< Writer > & |
writer, |
|
|
real |
timeInterval, |
|
|
real |
endTime, |
|
|
bool |
writeInitialTimestep = true , |
|
|
real |
startTime = 0 |
|
) |
| |
- Parameters
-
writer | the underlying writer to actually use. |
timeInterval | the time interval (will save for every time n*timeInterval) |
endTime | the final time for the simulation. |
writeInitialTimestep | write the initial timestep |
startTime | the start time to start writing |
◆ ~FixedIntervalWriter()
virtual alsfvm::io::FixedIntervalWriter::~FixedIntervalWriter |
( |
| ) |
|
|
inlinevirtual |
◆ adjustTimestep()
adjustTimestep returns the new timestep that the simulator should use
- Parameters
-
dt | the current timestep being used |
timestepInformation | timesteps information |
- Returns
- the new timestep
Implements alsfvm::integrator::TimestepAdjuster.
◆ finalize()
This method should be called at the end of the simulation.
Reimplemented from alsfvm::io::Writer.
◆ write()
write writes the data to disk
- Parameters
-
conservedVariables | the conservedVariables to write |
grid | the grid that is used (describes the whole domain) |
timestepInformation | |
Implements alsfvm::io::Writer.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/include/alsfvm/io/FixedIntervalWriter.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsfvm/src/io/FixedIntervalWriter.cpp