Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
cpu_face_estimates.hpp File Reference
#include "vec.h"
#include "cpu_slope_limiters.hpp"
#include "../definitions.h"
#include "../arch/arch_device_api.h"
Include dependency graph for cpu_face_estimates.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  face_estimate_order { h4 , h5 , h6 , h8 }

Functions

void compute_h8_left_face_value (const Vec *const values, uint k, Vec &fv_l)
void compute_h7_left_face_derivative (const Vec *const values, uint k, Vec &fd_l)
void compute_h6_left_face_value (const Vec *const values, uint k, Vec &fv_l)
void compute_h5_left_face_derivative (const Vec *const values, uint k, Vec &fd_l)
void compute_h5_face_values (const Vec *const values, uint k, Vec &fv_l, Vec &fv_r)
void compute_h4_left_face_derivative (const Vec *const values, uint k, Vec &fd_l)
void compute_h4_left_face_value (const Vec *const values, uint k, Vec &fv_l)
void compute_h4_left_face_value_nonuniform (const Realf *const h, const Vec *const u, uint k, Vec &fv_l)
void compute_h3_left_face_derivative (const Vec *const values, uint k, Vec &fv_l)
void compute_filtered_face_values_derivatives (const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, Vec &fd_l, Vec &fd_r, const Realf threshold)
void compute_filtered_face_values (const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, const Realf threshold)
void compute_filtered_face_values_nonuniform (const Realf *const dv, const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, const Realf threshold)
Vec get_D2aLim (const Realf *h, const Vec *values, const uint k, const Vec C, const Vec &fv)
void constrain_face_values (const Realf *h, const Vec *values, const uint k, Vec &fv_l, Vec &fv_r)
void compute_filtered_face_values_nonuniform_conserving (const Realf *const dv, const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, const Realf threshold)

Enumeration Type Documentation

◆ face_estimate_order

Enumerator
h4 
h5 
h6 
h8 

Definition at line 34 of file cpu_face_estimates.hpp.

Function Documentation

◆ compute_filtered_face_values()

void compute_filtered_face_values ( const Vec *const values,
const uint k,
const face_estimate_order order,
Vec & fv_l,
Vec & fv_r,
const Realf threshold )
inline

Definition at line 278 of file cpu_face_estimates.hpp.

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

◆ compute_filtered_face_values_derivatives()

void compute_filtered_face_values_derivatives ( const Vec *const values,
const uint k,
const face_estimate_order order,
Vec & fv_l,
Vec & fv_r,
Vec & fd_l,
Vec & fd_r,
const Realf threshold )
inline

Definition at line 215 of file cpu_face_estimates.hpp.

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

◆ compute_filtered_face_values_nonuniform()

void compute_filtered_face_values_nonuniform ( const Realf *const dv,
const Vec *const values,
const uint k,
const face_estimate_order order,
Vec & fv_l,
Vec & fv_r,
const Realf threshold )
inline

Definition at line 327 of file cpu_face_estimates.hpp.

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

◆ compute_filtered_face_values_nonuniform_conserving()

void compute_filtered_face_values_nonuniform_conserving ( const Realf *const dv,
const Vec *const values,
const uint k,
const face_estimate_order order,
Vec & fv_l,
Vec & fv_r,
const Realf threshold )
inline

Definition at line 437 of file cpu_face_estimates.hpp.

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

◆ compute_h3_left_face_derivative()

void compute_h3_left_face_derivative ( const Vec *const values,
uint k,
Vec & fv_l )
inline

Compute left face value based on the explicit h4 estimate.

Right face value can be obtained as left face value of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i

Definition at line 204 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h4_left_face_derivative()

void compute_h4_left_face_derivative ( const Vec *const values,
uint k,
Vec & fd_l )
inline

Compute left face derivative based on the explicit h4 estimate.

Right face derivative can be obtained as left face derivative of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face derivativeis computed
fd_lFace derivative on left face of cell i

Definition at line 146 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h4_left_face_value()

void compute_h4_left_face_value ( const Vec *const values,
uint k,
Vec & fv_l )
inline

Compute left face value based on the explicit h4 estimate.

Right face value can be obtained as left face value of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i

Definition at line 160 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h4_left_face_value_nonuniform()

void compute_h4_left_face_value_nonuniform ( const Realf *const h,
const Vec *const u,
uint k,
Vec & fv_l )
inline

Compute left face value based on the explicit h4 estimate for nonuniform grid. Eqn 45 in White et. al. 2008

Parameters
uArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i
hArray with cell widths. Can be in abritrary units since they always cancel. Maybe 1/refinement ratio?

Definition at line 179 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h5_face_values()

void compute_h5_face_values ( const Vec *const values,
uint k,
Vec & fv_l,
Vec & fv_r )
inline

Compute left and right face value based on the explicit h5 estimate.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i

Definition at line 123 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h5_left_face_derivative()

void compute_h5_left_face_derivative ( const Vec *const values,
uint k,
Vec & fd_l )
inline

Compute left face derivative based on the explicit h5 estimate.

Right face derivative can be obtained as left face derivative of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face derivativeis computed
fd_lFace derivative on left face of cell i

Definition at line 109 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h6_left_face_value()

void compute_h6_left_face_value ( const Vec *const values,
uint k,
Vec & fv_l )
inline

Compute left face value based on the explicit h6 estimate.

Right face value can be obtained as left face value of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i

Definition at line 89 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h7_left_face_derivative()

void compute_h7_left_face_derivative ( const Vec *const values,
uint k,
Vec & fd_l )
inline

Compute left face derivative based on the explicit h7 estimate.

Right face derivative can be obtained as left face derivative of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face derivativeis computed
fd_lFace derivative on left face of cell i

Definition at line 68 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ compute_h8_left_face_value()

void compute_h8_left_face_value ( const Vec *const values,
uint k,
Vec & fv_l )
inline

Compute left face value based on the explicit h8 estimate.

Right face value can be obtained as left face value of cell i + 1.

Parameters
valuesArray with volume averages. It is assumed a large enough stencil is defined around i.
iIndex of cell in values for which the left face is computed
fv_lFace value on left face of cell i

Definition at line 45 of file cpu_face_estimates.hpp.

Here is the caller graph for this function:

◆ constrain_face_values()

void constrain_face_values ( const Realf * h,
const Vec * values,
const uint k,
Vec & fv_l,
Vec & fv_r )
inline

Definition at line 397 of file cpu_face_estimates.hpp.

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

◆ get_D2aLim()

Vec get_D2aLim ( const Realf * h,
const Vec * values,
const uint k,
const Vec C,
const Vec & fv )
inline

Definition at line 380 of file cpu_face_estimates.hpp.

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