ElmerFoamFSI  2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
SerialDriverProgram Class Reference

Implementation of the basic parts of the serial program example. More...

Detailed Description

Implementation of the basic parts of the serial program example.

This object encapsulates the example serial program. It inherits from the IRAD::Global::Program type.

The program itself just copies a specified input file to the specified output file (or stdout if no file is given). The command line usage goes:

       elmerfsidriver Usage:

       elmerfsidriver [-h] [-v [arg] -o <filename> ] <input> 

       -h,--help
          Prints this long version of help.

              -v,--verbosity [arg]

       -o,--output <filename>
          Specifies the name of the output file.

              <input>
          Mode-dependent input: input <filename> for serial example
          program, or <number of divisions> for parallel example.

Definition at line 163 of file Driver.H.

#include <Driver.H>

Public Member Functions

 SerialDriverProgram ()
 Default constructor. More...
 
 SerialDriverProgram (int nargs, char **args)
 Constructor designed to take the commandline args. More...
 
virtual int Initialize ()
 Initializes native data structures from commandline args. More...
 
int VerbLevel () const
 Returns verbosity level. More...
 
virtual ~SerialDriverProgram ()
 Destructor. More...
 
int DriverRun ()
 This function implements the main function executed by the program. More...
 

Protected Attributes

std::string output_name
 Name of file for output. More...
 
std::string input_name
 Name of input file. More...
 
int verblevel
 Verbosity level. More...
 
std::ofstream Ouf
 Outfile stream for output. More...
 
std::ifstream Inf
 Infile stream for input. More...
 
int fluidsInitHandle
 Handle/identifier for fluids init. More...
 
int fluidsRunHandle
 Handle/identifier for fluids run. More...
 
int fluidsStepHandle
 Handle/identifier for fluids step. More...
 
int fluidsFinalizeHandle
 Handle/identifier for fluids finalize. More...
 
int structuresInitHandle
 Handle/identifier for structures init. More...
 
int structuresRunHandle
 Handle/identifier for structures run. More...
 
int structuresFinalizeHandle
 Handle/identifier for structures finalize. More...
 
int argc
 Object-local copy for argc. More...
 
char ** argv
 Object-local copy for argv. More...
 
Inheritance diagram for SerialDriverProgram:
[legend]
Collaboration diagram for SerialDriverProgram:
[legend]

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