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
SerialProgram 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:

       sep Usage:

       sep [-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 158 of file Third_Party_Modules/ElmerFSI/trunk/include/ExampleProgram.H.

#include <ExampleProgram.H>

Public Member Functions

 SerialProgram ()
 Default constructor. More...
 
 SerialProgram (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 ~SerialProgram ()
 Destructor. More...
 
virtual int Run ()
 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...
 
Inheritance diagram for SerialProgram:
[legend]
Collaboration diagram for SerialProgram:
[legend]

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