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

Mean velocity and Reynolds stress of an nscbc_inlet at given points: u (numbers or expressions in x, y, z), and with a [boundaries.turbulence] table its reynolds_stress (numbers or expressions), or both from its profile, a CSV file of plane averages (tools/plane_average.py: a coordinate column, MEAN_U_* and COV_U_*_U_*) interpolated linearly along that coordinate. More...

#include <synthetic_inflow.h>

Public Member Functions

 InletProfile (const toml::value &boundary, const std::string &where)
 
bool uniform () const
 Whether the mean velocity is the same everywhere.
 
std::array< double, N_DIM > velocity (const Point &x) const
 
std::array< double, N_STRESS > stress_at (const Point &x) const
 Reynolds stress in N_STRESS order (zero without turbulence).
 

Static Public Member Functions

static bool turbulent (const toml::value &boundary)
 Whether the boundary has a [boundaries.turbulence] table.
 

Detailed Description

Mean velocity and Reynolds stress of an nscbc_inlet at given points: u (numbers or expressions in x, y, z), and with a [boundaries.turbulence] table its reynolds_stress (numbers or expressions), or both from its profile, a CSV file of plane averages (tools/plane_average.py: a coordinate column, MEAN_U_* and COV_U_*_U_*) interpolated linearly along that coordinate.

Constructor & Destructor Documentation

◆ InletProfile()

InletProfile::InletProfile ( const toml::value &  boundary,
const std::string &  where 
)

Member Function Documentation

◆ stress_at()

std::array< double, N_STRESS > InletProfile::stress_at ( const Point &  x) const

Reynolds stress in N_STRESS order (zero without turbulence).

◆ turbulent()

static bool InletProfile::turbulent ( const toml::value &  boundary)
inlinestatic

Whether the boundary has a [boundaries.turbulence] table.

◆ uniform()

bool InletProfile::uniform ( ) const
inline

Whether the mean velocity is the same everywhere.

◆ velocity()

std::array< double, N_DIM > InletProfile::velocity ( const Point &  x) const

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