Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
Reconstructions Struct Reference
Collaboration diagram for Reconstructions:

Public Member Functions

 Reconstructions (fsgrids::perbspan perB, fsgrids::constdperbspan dPerB, fsgrids::constbgbspan BgB, fsgrids::constmomentsspan moments, fsgrids::constdmomentsspan dMoments, size_t self, size_t nbr, const Limits &rhomLimits)
std::tuple< Real, RealperBCoeffs (size_t i, size_t j) const
std::tuple< Real, RealdPerBCoeffs (size_t i, size_t j) const
Real rhom (Real dir0, Real dir1, size_t i, size_t j, size_t k) const
Real p (Real dir0, Real dir1, size_t i, size_t j, size_t k) const

Static Public Member Functions

static Real squared (Real a, Real b)

Private Member Functions

template<size_t N>
std::tuple< Real, Realcompute (const std::array< Real, N > &nbr_arr, const std::array< Real, N > &arr, size_t i, size_t j, Real mul0, Real mul1) const
Real interpolateAndLimitMoments (Real dir0, Real dir1, size_t i, size_t j, size_t k, Real min, Real max) const

Private Attributes

const std::array< Real, fsgrids::bfield::N_BFIELD > & perb
const std::array< Real, fsgrids::bfield::N_BFIELD > & nbr_perb
const std::array< Real, fsgrids::dperb::N_DPERB > & dperb
const std::array< Real, fsgrids::dperb::N_DPERB > & nbr_dperb
const std::array< Real, fsgrids::bgbfield::N_BGB > & bgb
const std::array< Real, fsgrids::bgbfield::N_BGB > & nbr_bgb
const std::array< Real, fsgrids::moments::N_MOMENTS > & moment
const std::array< Real, fsgrids::dmoments::N_DMOMENTS > & dmoment
const LimitsrhomLimits

Detailed Description

Definition at line 105 of file ldz_electric_field.cpp.

Constructor & Destructor Documentation

◆ Reconstructions()

Reconstructions::Reconstructions ( fsgrids::perbspan perB,
fsgrids::constdperbspan dPerB,
fsgrids::constbgbspan BgB,
fsgrids::constmomentsspan moments,
fsgrids::constdmomentsspan dMoments,
size_t self,
size_t nbr,
const Limits & rhomLimits )
inline

Definition at line 141 of file ldz_electric_field.cpp.

Member Function Documentation

◆ compute()

template<size_t N>
std::tuple< Real, Real > Reconstructions::compute ( const std::array< Real, N > & nbr_arr,
const std::array< Real, N > & arr,
size_t i,
size_t j,
Real mul0,
Real mul1 ) const
inlineprivate

Interpolate the volume-averaged, i.e. cell-centred moment value by HALF a cell to the given cell edge.

Parameters
dir0+/-1 in the first direction
dir1+/-1 in the second direction
iindex into moment array
jindex into dmoment array for derivative of moment i in dir0
kindex into dmoment array for derivative of moment i in dir1
minlimit inteprolated result to no smaller than this
maxlimit interpolated result to no larger than this

Definition at line 118 of file ldz_electric_field.cpp.

◆ dPerBCoeffs()

std::tuple< Real, Real > Reconstructions::dPerBCoeffs ( size_t i,
size_t j ) const
inline

Definition at line 152 of file ldz_electric_field.cpp.

Here is the caller graph for this function:

◆ interpolateAndLimitMoments()

Real Reconstructions::interpolateAndLimitMoments ( Real dir0,
Real dir1,
size_t i,
size_t j,
size_t k,
Real min,
Real max ) const
inlineprivate

Definition at line 136 of file ldz_electric_field.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ p()

Real Reconstructions::p ( Real dir0,
Real dir1,
size_t i,
size_t j,
size_t k ) const
inline

Definition at line 158 of file ldz_electric_field.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ perBCoeffs()

std::tuple< Real, Real > Reconstructions::perBCoeffs ( size_t i,
size_t j ) const
inline

Definition at line 150 of file ldz_electric_field.cpp.

Here is the caller graph for this function:

◆ rhom()

Real Reconstructions::rhom ( Real dir0,
Real dir1,
size_t i,
size_t j,
size_t k ) const
inline

Definition at line 154 of file ldz_electric_field.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ squared()

Real Reconstructions::squared ( Real a,
Real b )
inlinestatic

Definition at line 162 of file ldz_electric_field.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ bgb

const std::array<Real, fsgrids::bgbfield::N_BGB>& Reconstructions::bgb
private

Definition at line 111 of file ldz_electric_field.cpp.

◆ dmoment

const std::array<Real, fsgrids::dmoments::N_DMOMENTS>& Reconstructions::dmoment
private

Definition at line 114 of file ldz_electric_field.cpp.

◆ dperb

const std::array<Real, fsgrids::dperb::N_DPERB>& Reconstructions::dperb
private

Definition at line 109 of file ldz_electric_field.cpp.

◆ moment

const std::array<Real, fsgrids::moments::N_MOMENTS>& Reconstructions::moment
private

Definition at line 113 of file ldz_electric_field.cpp.

◆ nbr_bgb

const std::array<Real, fsgrids::bgbfield::N_BGB>& Reconstructions::nbr_bgb
private

Definition at line 112 of file ldz_electric_field.cpp.

◆ nbr_dperb

const std::array<Real, fsgrids::dperb::N_DPERB>& Reconstructions::nbr_dperb
private

Definition at line 110 of file ldz_electric_field.cpp.

◆ nbr_perb

const std::array<Real, fsgrids::bfield::N_BFIELD>& Reconstructions::nbr_perb
private

Definition at line 108 of file ldz_electric_field.cpp.

◆ perb

const std::array<Real, fsgrids::bfield::N_BFIELD>& Reconstructions::perb
private

Definition at line 107 of file ldz_electric_field.cpp.

◆ rhomLimits

const Limits& Reconstructions::rhomLimits
private

Definition at line 115 of file ldz_electric_field.cpp.


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