Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/simulator/AbstractSimulator.hpp>
Public Member Functions | |
virtual bool | atEnd ()=0 |
virtual void | performStep ()=0 |
virtual void | callWriters ()=0 |
virtual void | addWriter (alsfvm::shared_ptr< io::Writer > writer)=0 |
addWriter adds a writer, this will be called every time callWriter is called More... | |
virtual real | getCurrentTime () const =0 |
virtual real | getEndTime () const =0 |
virtual const std::shared_ptr< grid::Grid > & | getGrid () const =0 |
Gets the current grid that is being used. More... | |
virtual std::shared_ptr< grid::Grid > & | getGrid ()=0 |
Gets the current grid that is being used. More... | |
virtual void | finalize ()=0 |
Finalizes the computation, should be called at the end. More... | |
virtual void | addTimestepAdjuster (alsfvm::shared_ptr< integrator::TimestepAdjuster > &adjuster)=0 |
This is an abstract interface for the simulator class for anyone wanting to use the uq component but with their own simulator class.
How to use:
|
pure virtual |
Adds a timestep adjuster.
The timestep adjuster is run as
the timestep adjuster is used to save at specific times.
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
addWriter adds a writer, this will be called every time callWriter is called
writer |
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Calls the writers.
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Finalizes the computation, should be called at the end.
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Gets the current grid that is being used.
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Gets the current grid that is being used.
Implemented in alsfvm::simulator::Simulator.
|
pure virtual |
Performs one timestep
Implemented in alsfvm::simulator::Simulator.