HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Class describing a single simulation. More...
#include <single_simulation.h>
Public Member Functions | |
SingleSimulation () | |
~SingleSimulation () | |
int | define (int, int) |
int | ReadInputs () |
int | Initialize () |
int | InitialSolution () |
int | InitializeBoundaries () |
int | InitializeImmersedBoundaries () |
int | InitializePhysics () |
int | InitializePhysicsData () |
int | InitializeSolvers () |
int | Solve () |
void | WriteErrors (double a_wt_solver, double a_wt_total) |
bool | isDefined () const |
int | mpiCommDup () |
void | usePetscTS (PetscBool a_flag) |
int | SolvePETSc () |
Public Member Functions inherited from Simulation | |
Simulation () | |
virtual | ~Simulation () |
virtual int | InitializationWrapup () |
Protected Attributes | |
bool | m_is_defined |
int | m_rank |
int | m_nproc |
SimulationObject * | m_sim |
Class describing a single simulation.
Class describing a single simulation This class contains all data and functions needed to run a single simulation.
This class contains all data and functions needed to run a single simulation.
Definition at line 26 of file single_simulation.h.
|
inline |
|
inline |
|
virtual |
Define this object
Define the single simulation object
a_rank | MPI rank of this process |
a_nproc | Total number of MPI ranks |
Implements Simulation.
Definition at line 10 of file SingleSimulationDefine.cpp.
|
inlinevirtual |
|
inlinevirtual |
Initialize the simulations
Implements Simulation.
Definition at line 66 of file single_simulation.h.
|
inlinevirtual |
Read initial solution for each simulation
Implements Simulation.
Definition at line 74 of file single_simulation.h.
|
inlinevirtual |
Initialize the boundary conditions of the simulations
Implements Simulation.
Definition at line 82 of file single_simulation.h.
|
inlinevirtual |
Initialize the immersed boundary conditions of the simulations
Implements Simulation.
Definition at line 90 of file single_simulation.h.
|
inlinevirtual |
Initialize the physics of the simulations
Implements Simulation.
Definition at line 98 of file single_simulation.h.
|
inlinevirtual |
Initialize the physics data of the simulations
Implements Simulation.
Definition at line 106 of file single_simulation.h.
|
inlinevirtual |
Initialize the numerical solvers of the simulations
Implements Simulation.
Definition at line 114 of file single_simulation.h.
|
inlinevirtual |
Run the simulation using native time integrators
Implements Simulation.
Definition at line 122 of file single_simulation.h.
|
inlinevirtual |
Write simulation errors and wall times to file
Implements Simulation.
Definition at line 132 of file single_simulation.h.
|
inlinevirtual |
Return whether object is defined or not
Implements Simulation.
Definition at line 144 of file single_simulation.h.
|
inlinevirtual |
Create duplicate MPI communicators
Implements Simulation.
Definition at line 148 of file single_simulation.h.
|
inlinevirtual |
Set flag whether to use PETSc time integration
Implements Simulation.
Definition at line 157 of file single_simulation.h.
|
inlinevirtual |
Run the simulation using PETSc time integrators
Implements Simulation.
Definition at line 163 of file single_simulation.h.
|
protected |
Boolean to show if this object is defined
Definition at line 175 of file single_simulation.h.
|
protected |
MPI rank of this process
Definition at line 176 of file single_simulation.h.
|
protected |
Total number of MPI ranks
Definition at line 176 of file single_simulation.h.
|
protected |
Definition at line 179 of file single_simulation.h.