HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Simulation Class Referenceabstract

Base class for a simulation. More...

#include <simulation.h>

Inheritance diagram for Simulation:
EnsembleSimulation SingleSimulation SparseGridsSimulation

Public Member Functions

 Simulation ()
 
virtual ~Simulation ()
 
virtual int define (int, int)=0
 
virtual int ReadInputs ()=0
 
virtual int Initialize ()=0
 
virtual int InitialSolution ()=0
 
virtual int InitializeBoundaries ()=0
 
virtual int InitializeImmersedBoundaries ()=0
 
virtual int InitializePhysics ()=0
 
virtual int InitializePhysicsData ()=0
 
virtual int InitializeSolvers ()=0
 
virtual int InitializationWrapup ()
 
virtual int Solve ()=0
 
virtual void WriteErrors (double, double)=0
 
virtual bool isDefined () const =0
 
virtual int mpiCommDup ()=0
 
virtual void usePetscTS (PetscBool)=0
 
virtual int SolvePETSc ()=0
 

Detailed Description

Base class for a simulation.

Base class for a simulation This is a purely virtual base class describing a simulation.

This is a purely virtual base class describing a simulation.

Definition at line 46 of file simulation.h.

Constructor & Destructor Documentation

Simulation ( )
inline

Default constructor

Definition at line 51 of file simulation.h.

51 { }
virtual ~Simulation ( )
inlinevirtual

Destructor

Definition at line 53 of file simulation.h.

53 { }

Member Function Documentation

virtual int define ( int  ,
int   
)
pure virtual

Define function

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int ReadInputs ( )
pure virtual

Read solver inputs

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int Initialize ( )
pure virtual

Initialize the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitialSolution ( )
pure virtual

Read initial solution for each simulation

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializeBoundaries ( )
pure virtual

Initialize the boundary conditions of the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializeImmersedBoundaries ( )
pure virtual

Initialize the immersed boundary conditions of the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializePhysics ( )
pure virtual

Initialize the physics of the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializePhysicsData ( )
pure virtual

Initialize the physics data of the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializeSolvers ( )
pure virtual

Initialize the numerical solvers of the simulations

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int InitializationWrapup ( )
inlinevirtual

Wrap up initializations

Reimplemented in SparseGridsSimulation.

Definition at line 83 of file simulation.h.

84  {
85  return 0;
86  }
virtual int Solve ( )
pure virtual

Run the simulation using native time integrators

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual void WriteErrors ( double  ,
double   
)
pure virtual

Write simulation errors and wall times to file

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual bool isDefined ( ) const
pure virtual

Function to indicate if object is defined

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int mpiCommDup ( )
pure virtual

Duplicate MPI communicators

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual void usePetscTS ( PetscBool  )
pure virtual

Set flag whether to use PETSc time integration

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.

virtual int SolvePETSc ( )
pure virtual

Run the simulation using PETSc time integrators

Implemented in SparseGridsSimulation, EnsembleSimulation, and SingleSimulation.


The documentation for this class was generated from the following file: