IFEM  90A354
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SIMSolverAdapImpl< T1, AdapSim > Class Template Reference

Template class for stationary adaptive simulator drivers. More...

#include <SIMSolverAdap.h>

Inheritance diagram for SIMSolverAdapImpl< T1, AdapSim >:
Inheritance graph
[legend]
Collaboration diagram for SIMSolverAdapImpl< T1, AdapSim >:
Collaboration graph
[legend]

Public Member Functions

 SIMSolverAdapImpl (T1 &s1)
 The constructor forwards to the parent class constructor.
 
virtual ~SIMSolverAdapImpl ()
 Empty destructor.
 
virtual bool read (const char *file)
 Reads solver data from the specified input file.
 
virtual int solveProblem (char *infile, const char *=nullptr)
 Solves the problem on a sequence of adaptively refined meshes.
 
void setExporterName (const std::string &name)
 Set name of data exporter registration to use.
 
- Public Member Functions inherited from SIMSolverStat< T1 >
 SIMSolverStat (T1 &s1, const char *head=nullptr)
 The constructor initializes the reference to the actual solver.
 
virtual ~SIMSolverStat ()
 The destructor deletes the results data exporter object.
 
void handleDataOutput (const std::string &hdf5file, const ProcessAdm &modelAdm, int saveInterval=1)
 Handles application data output. More...
 
- Public Member Functions inherited from SIMadmin
virtual ~SIMadmin ()
 Empty destructor.
 
virtual bool preprocess (const IntVec &ignored={}, bool fixDup=false)
 Performs some pre-processing tasks on the FE model.
 
virtual bool preprocessC (const IntVec &, bool, double=0.0)
 Performs some pre-processing tasks on the FE model.
 
const ProcessAdmgetProcessAdm () const
 Returns the parallel process administrator.
 
int getGlobalProcessID () const
 Returns the global process ID. More...
 
const std::string & getHeading () const
 Returns the simulator heading.
 
void setHeading (const std::string &heading)
 Defines the simulator heading.
 
void printHeading (int &supStep) const
 Prints the heading of this simulator, if any, to IFEM::cout.
 
- Public Member Functions inherited from XMLInputBase
bool readXML (const char *fileName, bool verbose=true)
 Reads an XML input file. More...
 
bool loadXML (const char *xml)
 Loads data from an XML-formatted text string. More...
 

Protected Member Functions

virtual bool parse (char *kyw, std::istream &is)
 Parses a data section from an input stream.
 
virtual bool parse (const tinyxml2::XMLElement *elem)
 Parses a data section from an XML element.
 
- Protected Member Functions inherited from SIMSolverStat< T1 >
void printHeading (const char *heading)
 Writes an application-specific heading, if provided.
 
- Protected Member Functions inherited from SIMadmin
 SIMadmin (const char *heading=nullptr)
 The default constructor initializes the process administrator.
 
 SIMadmin (SIMadmin &anotherSIM)
 Copy constructor.
 
- Protected Member Functions inherited from XMLInputBase
const tinyxml2::XMLElement * loadFile (tinyxml2::XMLDocument &doc, const char *fileName, bool verbose=false)
 Loads an XML input file into a tinyxml2::XMLDocument object. More...
 
virtual const char ** getPrioritizedTags () const
 Returns a list of prioritized XML-tags.
 

Protected Attributes

AdapSim aSim
 Adaptive simulation driver.
 
std::string exporterName = "u"
 Name for data exporter registration to use.
 
- Protected Attributes inherited from SIMSolverStat< T1 >
T1S1
 The actual solver.
 
DataExporterexporter
 Administrator for result output to HDF5 file.
 
int startExpLevel
 Initial time level for the DataExporter.
 
- Protected Attributes inherited from SIMadmin
ProcessAdm adm
 Parallel administrator.
 
int myPid
 Processor ID in parallel simulations.
 
int nProc
 Number of processors in parallel simulations.
 
std::string myHeading
 Heading written before reading the input file.
 

Additional Inherited Members

- Public Attributes inherited from SIMadmin
SIMoptionsopt
 Simulation control parameters.
 
- Static Public Attributes inherited from SIMadmin
static int msgLevel = 2
 Controls the console output amount during solving.
 
- Protected Types inherited from SIMadmin
using IntVec = std::vector< int >
 Convenience alias.
 

Detailed Description

template<class T1, class AdapSim>
class SIMSolverAdapImpl< T1, AdapSim >

Template class for stationary adaptive simulator drivers.

This template can be instantiated over any type implementing the ISolver interface. It provides an adaptive loop with data output.


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