Foam::TableReaders Namespace Reference

Classes

struct  CsvLabelType
 
struct  CsvLabelType< Type, CsvVoid< typename pTraits< Type >::labelType > >
 
class  Csv
 Reads an interpolation table from a file in CSV-format. Entries govern the layout of the CSV file. The indices of the columns of the table that are to be used are given by the columns entry. This is a tuple for which the first part is the index of the column used for the x-axis, and the second part is the column index used for the scalar values, or a list of column indices used for the components of vector, tensor, etc..., values. More...
 
class  Embedded
 Reads an interpolation table from the values entry in OpenFOAM-format. More...
 
class  Foam
 Reads an interpolation table from a file in OpenFOAM-format. This is a list of Tuples in which complex types are delimited by parentheses. By default, a Tuple2 is assumed in which the first column is the (scalar) x-axis and the second column is the y-axis. But finer control over a n-component Tuple can be achieved by specifying the column indices. More...
 

Typedefs

template<typename T >
using CsvVoid = void
 

Functions

template<class Type >
Type CsvReadValue (const typename CsvLabelType< Type >::type &columns, const List< string > &split)
 
template<>
label CsvReadValue< label > (const typename CsvLabelType< scalar >::type &columns, const List< string > &split)
 
template<>
scalar CsvReadValue< scalar > (const typename CsvLabelType< scalar >::type &columns, const List< string > &split)
 

Typedef Documentation

◆ CsvVoid

using CsvVoid = void

Definition at line 65 of file CsvTableReader.H.

Function Documentation

◆ CsvReadValue()

Type Foam::TableReaders::CsvReadValue ( const typename CsvLabelType< Type >::type columns,
const List< string > &  split 
)

Definition at line 40 of file CsvTableReader.C.

References Foam::component(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::readScalar(), and List< T >::size().

Here is the call graph for this function:

◆ CsvReadValue< label >()

label Foam::TableReaders::CsvReadValue< label > ( const typename CsvLabelType< scalar >::type columns,
const List< string > &  split 
)
inline

Definition at line 69 of file CsvTableReader.C.

References Foam::component(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::readLabel(), and List< T >::size().

Here is the call graph for this function:

◆ CsvReadValue< scalar >()

scalar Foam::TableReaders::CsvReadValue< scalar > ( const typename CsvLabelType< scalar >::type columns,
const List< string > &  split 
)
inline

Definition at line 87 of file CsvTableReader.C.

References Foam::component(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::readScalar(), and List< T >::size().

Here is the call graph for this function: