rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
rizer::PropertyTable Class Reference

#include <PropertyTable.h>

Public Member Functions

 PropertyTable ()=default
 
 PropertyTable (std::vector< double > T, std::vector< double > values)
 Construct from parallel T (strictly increasing, [K]) and value arrays.
 
bool empty () const
 True for a default-constructed (empty) table; eval() returns 0.0.
 
double eval (double T) const
 Linearly interpolated value at T; clamped to the table endpoints.
 

Static Public Member Functions

static PropertyTable constant (double value)
 A two-point constant table returning value for any T.
 

Detailed Description

Definition at line 31 of file PropertyTable.h.

Constructor & Destructor Documentation

◆ PropertyTable() [1/2]

rizer::PropertyTable::PropertyTable ( )
default

◆ PropertyTable() [2/2]

rizer::PropertyTable::PropertyTable ( std::vector< double > T,
std::vector< double > values )
inline

Construct from parallel T (strictly increasing, [K]) and value arrays.

Exceptions
std::invalid_argumentif sizes differ or fewer than 2 points.

Definition at line 37 of file PropertyTable.h.

Member Function Documentation

◆ constant()

static PropertyTable rizer::PropertyTable::constant ( double value)
inlinestatic

A two-point constant table returning value for any T.

Convenience factory used to set P_rad = 0 when radiation is disabled.

Definition at line 48 of file PropertyTable.h.

◆ empty()

bool rizer::PropertyTable::empty ( ) const
inline

True for a default-constructed (empty) table; eval() returns 0.0.

Definition at line 53 of file PropertyTable.h.

◆ eval()

double rizer::PropertyTable::eval ( double T) const
inline

Linearly interpolated value at T; clamped to the table endpoints.

Safe to call with T below or above the tabulated range — never NaN.

Definition at line 57 of file PropertyTable.h.


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