Loading...
Searching...
No Matches
openFoamTableReader< Type > Class Template Reference

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

#include <openFoamTableReader.H>

Inheritance diagram for openFoamTableReader< Type >:
Collaboration diagram for openFoamTableReader< Type >:

Public Member Functions

 TypeName ("openFoam")
 Declare type-name, virtual type (with debug switch).
 openFoamTableReader ()=default
 Default construct.
virtual ~openFoamTableReader ()=default
 Destructor.
 openFoamTableReader (const dictionary &dict)
 Construct from dictionary.
virtual autoPtr< tableReader< Type > > clone () const
 Construct and return a copy.
virtual void operator() (const fileName &fName, List< Tuple2< scalar, Type > > &data)
 Read 1D table.
virtual void operator() (const fileName &fName, List< Tuple2< scalar, List< Tuple2< scalar, Type > > > > &data)
 Read 2D table.
Public Member Functions inherited from tableReader< Type >
 TypeName ("tableReader")
 Declare type-name, virtual type (with debug switch).
 declareRunTimeSelectionTable (autoPtr, tableReader, dictionary,(const dictionary &dict),(dict))
 tableReader ()=default
 Default construct.
 tableReader (const dictionary &dict)
 Construct from dictionary.
virtual ~tableReader ()=default
 Destructor.
virtual void write (Ostream &os) const
 Write additional information.

Additional Inherited Members

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

Detailed Description

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

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

Source files

Definition at line 48 of file openFoamTableReader.H.

Constructor & Destructor Documentation

◆ openFoamTableReader() [1/2]

template<class Type>
openFoamTableReader ( )
default

Default construct.

Referenced by clone().

Here is the caller graph for this function:

◆ ~openFoamTableReader()

template<class Type>
virtual ~openFoamTableReader ( )
virtualdefault

Destructor.

References dict.

◆ openFoamTableReader() [2/2]

template<class Type>
openFoamTableReader ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 27 of file openFoamTableReader.C.

References dict, and tableReader< Type >::tableReader().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

template<class Type>
TypeName ( "openFoam" )

Declare type-name, virtual type (with debug switch).

◆ clone()

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

Construct and return a copy.

Implements tableReader< Type >.

Definition at line 83 of file openFoamTableReader.H.

References openFoamTableReader().

Here is the call graph for this function:

◆ operator()() [1/2]

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

Read 1D table.

Implements tableReader< Type >.

Definition at line 36 of file openFoamTableReader.C.

References Foam::fileHandler.

◆ operator()() [2/2]

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

Read 2D table.

Implements tableReader< Type >.

Definition at line 51 of file openFoamTableReader.C.

References Foam::fileHandler.


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