moltres
Loading...
Searching...
No Matches
MoltresUtils Namespace Reference

Functions

std::vector< Real > points (unsigned int N)
 
std::vector< Real > weights (unsigned int N)
 
RealEigenMatrix permute_octant (RealEigenMatrix m, unsigned int idx, Real mu1, Real mu2, Real mu3, Real w)
 
RealEigenMatrix level_symmetric (unsigned int N)
 
unsigned int x_reflection_map (unsigned int i)
 
unsigned int y_reflection_map (unsigned int i)
 
unsigned int z_reflection_map (unsigned int i)
 
Real sph_harmonics (int l, int m, Real mu, Real eta, Real xi)
 
RealEigenMatrix sph_harmonics_mat (int L, RealEigenMatrix ordinates)
 
int factorial (int n)
 

Function Documentation

◆ factorial()

int MoltresUtils::factorial ( int n)

◆ level_symmetric()

RealEigenMatrix MoltresUtils::level_symmetric ( unsigned int N)

Returns a (N*(N+2))-by-4 RealEigenMatrix with each row consisting of the three components of the Cartesian direction vector and its associated level-symmetric weight.

◆ permute_octant()

RealEigenMatrix MoltresUtils::permute_octant ( RealEigenMatrix m,
unsigned int idx,
Real mu1,
Real mu2,
Real mu3,
Real w )

Returns all possible signed permutations of mu1,mu2,mu3.

◆ points()

std::vector< Real > MoltresUtils::points ( unsigned int N)

Returns possible Cartesian direction vector components under the level-symmetric quadrature for a given order N.

◆ sph_harmonics()

Real MoltresUtils::sph_harmonics ( int l,
int m,
Real mu,
Real eta,
Real xi )

Returns the output of the real spherical harmonic function of degree l and order m, given an input Cartesian direction vector (mu, eta, xi).

◆ sph_harmonics_mat()

RealEigenMatrix MoltresUtils::sph_harmonics_mat ( int L,
RealEigenMatrix ordinates )

Returns the output of sph_harmonics for all combinations of l and m for an array of Cartesian direction vectors as a matrix.

◆ weights()

std::vector< Real > MoltresUtils::weights ( unsigned int N)

Returns possible weight values under the level-symmetric quadrature for a given order N.

◆ x_reflection_map()

unsigned int MoltresUtils::x_reflection_map ( unsigned int i)

Cartesian reflected flux ID maps. Refer to permute_octant for the permutation order of all flux variables with the same direction vector components.

◆ y_reflection_map()

unsigned int MoltresUtils::y_reflection_map ( unsigned int i)

◆ z_reflection_map()

unsigned int MoltresUtils::z_reflection_map ( unsigned int i)