Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
Expression Class Reference

An exprtk expression in the variables x, y, z and t. More...

#include <expression.h>

Public Member Functions

 Expression (const std::string &name, const std::string &text)
 
bool depends_on_time () const
 Whether the value can depend on t.
 
double operator() (double x, double y, double t=0.0) const
 Evaluate at (x, y, z = 0, t).
 
double operator() (double x, double y, double z, double t) const
 Evaluate at (x, y, z, t).
 
template<typename T >
double at (const T &x, const int n_dim, double t=0.0) const
 Evaluate at the point with coordinates x[0..n_dim) (z = 0 if n_dim = 2).
 

Detailed Description

An exprtk expression in the variables x, y, z and t.

Constructor & Destructor Documentation

◆ Expression()

Expression::Expression ( const std::string &  name,
const std::string &  text 
)
inline

Member Function Documentation

◆ at()

template<typename T >
double Expression::at ( const T &  x,
const int  n_dim,
double  t = 0.0 
) const
inline

Evaluate at the point with coordinates x[0..n_dim) (z = 0 if n_dim = 2).

◆ depends_on_time()

bool Expression::depends_on_time ( ) const
inline

Whether the value can depend on t.

◆ operator()() [1/2]

double Expression::operator() ( double  x,
double  y,
double  t = 0.0 
) const
inline

Evaluate at (x, y, z = 0, t).

◆ operator()() [2/2]

double Expression::operator() ( double  x,
double  y,
double  z,
double  t 
) const
inline

Evaluate at (x, y, z, t).


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