IBAMR
An adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method
|
Class AppInitializer provides functionality to simplify the initialization code in an application code. More...
#include </home/runner/work/IBAMR/IBAMR/ibtk/include/ibtk/AppInitializer.h>
Class AppInitializer provides functionality to simplify the initialization code in an application code.
IBTK::AppInitializer::AppInitializer | ( | int | argc, |
char * | argv[], | ||
const std::string & | default_log_file_name = "IBAMR.log" |
||
) |
Constructor for class AppInitializer parses command line arguments, sets up input and restart databases, and enables SAMRAI logging.
|
virtual |
Destructor for class AppInitializer frees the SAMRAI manager objects used to set up input and restart databases.
bool IBTK::AppInitializer::dumpPostProcessingData | ( | ) | const |
Return a boolean value indicating whether to write post processing data.
bool IBTK::AppInitializer::dumpRestartData | ( | ) | const |
Return a boolean value indicating whether to write restart data.
bool IBTK::AppInitializer::dumpTimerData | ( | ) | const |
Return a boolean value indicating whether to write timer data.
bool IBTK::AppInitializer::dumpVizData | ( | ) | const |
Return a boolean value indicating whether to write visualization data.
Pointer< Database > IBTK::AppInitializer::getComponentDatabase | ( | const std::string & | component_name, |
bool | suppress_warning = false |
||
) |
Return initialization database for the requested solver component. This is equivalent to: getInputDatabase()->getDatabase(component_name).
If the requested component is not found in the input database, this method emits a warning message and returns a NullDatabse.
std::string IBTK::AppInitializer::getExodusIIFilename | ( | const std::string & | prefix = "" | ) | const |
Return the ExodusII visualization file name.
If the application is not configured to use ExodusII, an empty string will be returned.
std::string IBTK::AppInitializer::getGMVFilename | ( | const std::string & | prefix = "" | ) | const |
Return the GMV visualization file name.
If the application is not configured to use GMV, an empty string will be returned.
Return a pointer to the input database.
Pointer< LSiloDataWriter > IBTK::AppInitializer::getLSiloDataWriter | ( | ) | const |
Return a VisIt data writer object to be used to output Lagrangian data.
If the application is not configured to use VisIt, a nullptr pointer will be returned.
std::string IBTK::AppInitializer::getPostProcessingDataDumpDirectory | ( | ) | const |
Return the post processing data dump directory name.
int IBTK::AppInitializer::getPostProcessingDataDumpInterval | ( | ) | const |
Return the post processing data dump interval.
Return a pointer to the restart database. If there is no restart database for the application, this method emits a warning message and returns a NullDatabse.
std::string IBTK::AppInitializer::getRestartDumpDirectory | ( | ) | const |
Return the restart dump directory name. This is set in the Main database of the input file. This can be defined in the input file as restart_dump_dirname, restart_dirname, or restart_write_dirname.
int IBTK::AppInitializer::getRestartDumpInterval | ( | ) | const |
Return the restart dump interval. This is set in the Main database of the input file. This can be defined in the input file as restart_interval, restart_dump_interval, or restart_write_interval.
const std::string & IBTK::AppInitializer::getRestartReadDirectory | ( | ) | const |
Return the restart directory. If we are not starting from restart, this method returns an empty string. This value is set by the second command line argument to the executable.
int IBTK::AppInitializer::getRestartRestoreNumber | ( | ) | const |
Return the restart restore number. If we are not starting from restart, this method returns 0. This value is set by the third command line argument to the executable.
int IBTK::AppInitializer::getTimerDumpInterval | ( | ) | const |
Return the timer dump interval.
Pointer< VisItDataWriter< NDIM > > IBTK::AppInitializer::getVisItDataWriter | ( | ) | const |
Return a VisIt data writer object to be used to output Cartesian grid data.
If the application is not configured to use VisIt, a nullptr pointer will be returned.
std::string IBTK::AppInitializer::getVizDumpDirectory | ( | ) | const |
Return the visualization dump directory name.
int IBTK::AppInitializer::getVizDumpInterval | ( | ) | const |
Return the visualization dump interval.
std::vector< std::string > IBTK::AppInitializer::getVizWriters | ( | ) | const |
Return the visualization writers to be used in the simulation.
bool IBTK::AppInitializer::isFromRestart | ( | ) | const |
Return a boolean value indicating whether this is a restarted run. This is defined as true when the program recognizes command line arguments for restart_restore_num and restart_dump_dirname.