sampling_utils Namespace Reference

AMR-Wind API: amr_wind::sampling::sampling_utils Namespace Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches
amr_wind::sampling::sampling_utils Namespace Reference

Enumerations

enum class  NormalRule { SIGMA1 , SIGMA2 , SIGMA3 , HALFPOWER }
 

Functions

vs::Vector reflect (vs::Vector line, vs::Vector vec)
 
vs::Vector rotate_euler_vec (vs::Vector axis, double angle, vs::Vector vec)
 
vs::Vector rotate_euler_vector (vs::Vector &axis, double &angle, vs::Vector &vec)
 
vs::Vector rotation (const vs::Vector &angles, const vs::Vector &data)
 
vs::Vector canon_rotator (const vs::Vector &angles, const vs::Vector &data)
 
vs::Tensor unit_projection_matrix (const vs::Vector &a)
 
vs::Tensor rotation_matrix (vs::Vector dst, vs::Vector src)
 
vs::Tensor skew_cross (vs::Vector a, vs::Vector b)
 
vs::Tensor scale (vs::Tensor v, double a)
 
void spherical_cap_quadrature (double gammav, int ntheta, std::vector< double > abscissae1D, std::vector< double > weights1D, std::vector< vs::Vector > &rays, std::vector< double > &weights)
 
void spherical_cap_truncated_normal (double gammav, int ntheta, NormalRule rule, std::vector< vs::Vector > &rays, std::vector< double > &weights)
 
std::pair< std::vector< double >, std::vector< double > > truncated_normal_rule (NormalRule rule)
 

Enumeration Type Documentation

◆ NormalRule

Utility functions available to advanced sampling techniques

Parameters
keyName of the PDE
termsList of identifiers for the source terms to be added
Enumerator
SIGMA1 
SIGMA2 
SIGMA3 
HALFPOWER 

Function Documentation

◆ canon_rotator()

vs::Vector amr_wind::sampling::sampling_utils::canon_rotator ( const vs::Vector & angles,
const vs::Vector & data )

◆ reflect()

vs::Vector amr_wind::sampling::sampling_utils::reflect ( vs::Vector line,
vs::Vector vec )

◆ rotate_euler_vec()

vs::Vector amr_wind::sampling::sampling_utils::rotate_euler_vec ( vs::Vector axis,
double angle,
vs::Vector vec )

◆ rotate_euler_vector()

vs::Vector amr_wind::sampling::sampling_utils::rotate_euler_vector ( vs::Vector & axis,
double & angle,
vs::Vector & vec )

◆ rotation()

vs::Vector amr_wind::sampling::sampling_utils::rotation ( const vs::Vector & angles,
const vs::Vector & data )

◆ rotation_matrix()

vs::Tensor amr_wind::sampling::sampling_utils::rotation_matrix ( vs::Vector dst,
vs::Vector src )

◆ scale()

vs::Tensor amr_wind::sampling::sampling_utils::scale ( vs::Tensor v,
double a )

◆ skew_cross()

vs::Tensor amr_wind::sampling::sampling_utils::skew_cross ( vs::Vector a,
vs::Vector b )

◆ spherical_cap_quadrature()

void amr_wind::sampling::sampling_utils::spherical_cap_quadrature ( double gammav,
int ntheta,
std::vector< double > abscissae1D,
std::vector< double > weights1D,
std::vector< vs::Vector > & rays,
std::vector< double > & weights )

◆ spherical_cap_truncated_normal()

void amr_wind::sampling::sampling_utils::spherical_cap_truncated_normal ( double gammav,
int ntheta,
NormalRule rule,
std::vector< vs::Vector > & rays,
std::vector< double > & weights )

◆ truncated_normal_rule()

std::pair< std::vector< double >, std::vector< double > > amr_wind::sampling::sampling_utils::truncated_normal_rule ( NormalRule rule)

◆ unit_projection_matrix()

vs::Tensor amr_wind::sampling::sampling_utils::unit_projection_matrix ( const vs::Vector & a)