Public Member Functions | List of all members
openFoamTableReader< Type > Class Template Reference

Reads an interpolation table from a file - OpenFOAM-format. More...

Inheritance diagram for openFoamTableReader< Type >:
Inheritance graph
[legend]
Collaboration diagram for openFoamTableReader< Type >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("openFoam")
 Runtime type information. More...
 
 openFoamTableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< tableReader< Type > > clone () const
 Construct and return a copy. More...
 
virtual ~openFoamTableReader ()
 Destructor. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, Type >> &)
 Read the table. More...
 
virtual void operator() (const fileName &, List< Tuple2< scalar, List< Tuple2< scalar, Type >>>> &)
 Read 2D table. More...
 
- Public Member Functions inherited from tableReader< Type >
 TypeName ("tableReader")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 
 tableReader (const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~tableReader ()
 Destructor. More...
 
virtual void write (Ostream &os) const
 Write additional information. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from tableReader< Type >
static autoPtr< tableReaderNew (const dictionary &spec)
 Return a reference to the selected tableReader. More...
 

Detailed Description

template<class Type>
class Foam::openFoamTableReader< Type >

Reads an interpolation table from a file - OpenFOAM-format.

Source files

Definition at line 49 of file openFoamTableReader.H.

Constructor & Destructor Documentation

◆ openFoamTableReader()

openFoamTableReader ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file openFoamTableReader.C.

◆ ~openFoamTableReader()

~openFoamTableReader ( )
virtual

Destructor.

Definition at line 41 of file openFoamTableReader.C.

Referenced by openFoamTableReader< Type >::clone().

Here is the caller graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "openFoam"  )

Runtime type information.

◆ clone()

virtual autoPtr<tableReader<Type> > clone ( ) const
inlinevirtual

Construct and return a copy.

Implements tableReader< Type >.

Definition at line 66 of file openFoamTableReader.H.

References openFoamTableReader< Type >::operator()(), and openFoamTableReader< Type >::~openFoamTableReader().

Here is the call graph for this function:

◆ operator()() [1/2]

void operator() ( const fileName fName,
List< Tuple2< scalar, Type >> &  data 
)
virtual

Read the table.

Implements tableReader< Type >.

Definition at line 49 of file openFoamTableReader.C.

References Foam::fileHandler(), and fileOperation::NewIFstream().

Referenced by openFoamTableReader< Type >::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [2/2]

void operator() ( const fileName fName,
List< Tuple2< scalar, List< Tuple2< scalar, Type >>>> &  data 
)
virtual

Read 2D table.

Implements tableReader< Type >.

Definition at line 61 of file openFoamTableReader.C.

References Foam::fileHandler(), and fileOperation::NewIFstream().

Here is the call graph for this function:

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