ORB5X 1.0.0
Performance-portable global electromagnetic gyrokinetic PIC code
 
Loading...
Searching...
No Matches
orb5x::MathUtil Class Reference

#include "math_util.hpp"

+ Collaboration diagram for orb5x::MathUtil:

Public Types

using HostRealView = Kokkos::View< Real *, Kokkos::LayoutStride, Kokkos::HostSpace >
 

Static Public Member Functions

static int computeMapping2to1 (int i, int j, int nj)
 
static int computeMapping2to1_0 (int i, int j, int nj)
 
template<typename PointsView , typename WeightsView >
static void computeQuadraturePoints (Real x1, Real x2, PointsView points, WeightsView weights, int nbq, int method)
 
static void computeVelocitySpaceDiscretization (Real dx, int nqw, int nqa, Real lw, int &nw, int &na)
 
static Real gaussian_number ()
 
static Real plusminus ()
 
static void seed (unsigned int s)
 
static Real uniform ()
 

Static Public Attributes

static constexpr Real coeffsc [3] = {5.0, -4.0, -1.0}
 
static constexpr Real coeffsq [2] = {1.0, -1.0}
 
static constexpr Complex CPONE = Complex(1.0, 0.0)
 
static constexpr Complex CPZERO = Complex(0.0, 0.0)
 
static constexpr int QUAD_EQUID = 2
 
static constexpr int QUAD_GAUSS = 1
 
static constexpr Real Tlc [3][3]
 
static constexpr Real Tlc_deboor [3][3]
 
static constexpr Real Tlc_inv [3][3]
 
static constexpr Real Tlc_tr [3][3]
 
static constexpr Real Tlq [2][2]
 
static constexpr Real Tlq_inv [2][2]
 
static constexpr Real Tlq_tr [2][2]
 
static constexpr Real Trc [3][3]
 
static constexpr Real Trc_deboor [3][3]
 
static constexpr Real Trc_inv [3][3]
 
static constexpr Real Trc_tr [3][3]
 
static constexpr Real Trq [2][2]
 
static constexpr Real Trq_inv [2][2]
 
static constexpr Real Trq_tr [2][2]
 

Member Typedef Documentation

◆ HostRealView

using orb5x::MathUtil::HostRealView = Kokkos::View<Real*, Kokkos::LayoutStride, Kokkos::HostSpace>

Member Function Documentation

◆ computeMapping2to1()

static int orb5x::MathUtil::computeMapping2to1 ( int  i,
int  j,
int  nj 
)
static

◆ computeMapping2to1_0()

static int orb5x::MathUtil::computeMapping2to1_0 ( int  i,
int  j,
int  nj 
)
static

◆ computeQuadraturePoints()

template<typename PointsView , typename WeightsView >
static void orb5x::MathUtil::computeQuadraturePoints ( Real  x1,
Real  x2,
PointsView  points,
WeightsView  weights,
int  nbq,
int  method 
)
inlinestatic

◆ computeVelocitySpaceDiscretization()

static void orb5x::MathUtil::computeVelocitySpaceDiscretization ( Real  dx,
int  nqw,
int  nqa,
Real  lw,
int &  nw,
int &  na 
)
static

◆ gaussian_number()

static Real orb5x::MathUtil::gaussian_number ( )
static

◆ plusminus()

static Real orb5x::MathUtil::plusminus ( )
static

◆ seed()

static void orb5x::MathUtil::seed ( unsigned int  s)
static

◆ uniform()

static Real orb5x::MathUtil::uniform ( )
static

Member Data Documentation

◆ coeffsc

constexpr Real orb5x::MathUtil::coeffsc[3] = {5.0, -4.0, -1.0}
staticconstexpr

◆ coeffsq

constexpr Real orb5x::MathUtil::coeffsq[2] = {1.0, -1.0}
staticconstexpr

◆ CPONE

constexpr Complex orb5x::MathUtil::CPONE = Complex(1.0, 0.0)
staticconstexpr

◆ CPZERO

constexpr Complex orb5x::MathUtil::CPZERO = Complex(0.0, 0.0)
staticconstexpr

◆ QUAD_EQUID

constexpr int orb5x::MathUtil::QUAD_EQUID = 2
staticconstexpr

◆ QUAD_GAUSS

constexpr int orb5x::MathUtil::QUAD_GAUSS = 1
staticconstexpr

◆ Tlc

constexpr Real orb5x::MathUtil::Tlc[3][3]
staticconstexpr
Initial value:
= {
{ 6.0, 0.0, 0.0},
{-4.0, 1.0, 0.0},
{-1.0, 0.0, 1.0}
}

◆ Tlc_deboor

constexpr Real orb5x::MathUtil::Tlc_deboor[3][3]
staticconstexpr
Initial value:
= {
{1.0/6.0, 0.0, 0.0},
{2.0/3.0, 2.0/3.0, 0.0},
{1.0/6.0, 1.0/3.0, 1.0}
}

◆ Tlc_inv

constexpr Real orb5x::MathUtil::Tlc_inv[3][3]
staticconstexpr
Initial value:
= {
{1.0/6.0, 0.0, 0.0},
{2.0/3.0, 1.0, 0.0},
{1.0/6.0, 0.0, 1.0}
}

◆ Tlc_tr

constexpr Real orb5x::MathUtil::Tlc_tr[3][3]
staticconstexpr
Initial value:
= {
{ 6.0, -4.0, -1.0},
{ 0.0, 1.0, 0.0},
{ 0.0, 0.0, 1.0}
}

◆ Tlq

constexpr Real orb5x::MathUtil::Tlq[2][2]
staticconstexpr
Initial value:
= {
{ 2.0, 0.0},
{-1.0, 1.0}
}

◆ Tlq_inv

constexpr Real orb5x::MathUtil::Tlq_inv[2][2]
staticconstexpr
Initial value:
= {
{0.5, 0.0},
{0.5, 1.0}
}

◆ Tlq_tr

constexpr Real orb5x::MathUtil::Tlq_tr[2][2]
staticconstexpr
Initial value:
= {
{ 2.0, -1.0},
{ 0.0, 1.0}
}

◆ Trc

constexpr Real orb5x::MathUtil::Trc[3][3]
staticconstexpr
Initial value:
= {
{1.0, 0.0, -1.0},
{0.0, 1.0, -4.0},
{0.0, 0.0, 6.0}
}

◆ Trc_deboor

constexpr Real orb5x::MathUtil::Trc_deboor[3][3]
staticconstexpr
Initial value:
= {
{1.0, 1.0/3.0, 1.0/6.0},
{0.0, 2.0/3.0, 2.0/3.0},
{0.0, 0.0, 1.0/6.0}
}

◆ Trc_inv

constexpr Real orb5x::MathUtil::Trc_inv[3][3]
staticconstexpr
Initial value:
= {
{1.0, 0.0, 1.0/6.0},
{0.0, 1.0, 2.0/3.0},
{0.0, 0.0, 1.0/6.0}
}

◆ Trc_tr

constexpr Real orb5x::MathUtil::Trc_tr[3][3]
staticconstexpr
Initial value:
= {
{ 1.0, 0.0, 0.0},
{ 0.0, 1.0, 0.0},
{-1.0, -4.0, 6.0}
}

◆ Trq

constexpr Real orb5x::MathUtil::Trq[2][2]
staticconstexpr
Initial value:
= {
{1.0, -1.0},
{0.0, 2.0}
}

◆ Trq_inv

constexpr Real orb5x::MathUtil::Trq_inv[2][2]
staticconstexpr
Initial value:
= {
{1.0, 0.5},
{0.0, 0.5}
}

◆ Trq_tr

constexpr Real orb5x::MathUtil::Trq_tr[2][2]
staticconstexpr
Initial value:
= {
{ 1.0, 0.0},
{-1.0, 2.0}
}

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