Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
FirstOrder Class Reference

#include <face_reconstruction.h>

Inheritance diagram for FirstOrder:
FaceReconstruction

Public Member Functions

 FirstOrder ()
 Construct a new First Order object.
 
 ~FirstOrder ()
 Destroy the First Order object.
 
void init (const toml::value &input) override
 Initialize the first order face reconstruction.
 
uint8_t n_face_quadrature_points () const override
 Get the number of quadrature points per face.
 
void calc_face_values (Kokkos::View< rtype *[N_CONSERVATIVE]> solution, Kokkos::View< rtype **[2][N_CONSERVATIVE]> face_solution) override
 Reconstruct the face values.
 
- Public Member Functions inherited from FaceReconstruction
 FaceReconstruction ()
 Construct a new Face Reconstruction object.
 
virtual ~FaceReconstruction ()
 Destroy the Face Reconstruction object.
 
virtual logging::Items summary () const
 Display lines for the run log.
 
void set_mesh (std::shared_ptr< Mesh > mesh)
 Set the mesh.
 
void set_boundaries (const BoundaryData &boundaries)
 Set the boundary data used for ghost states.
 
FaceReconstructionType get_type () const
 Get the face reconstruction type.
 
virtual std::vector< uint32_t > cells_independent_of_halo (uint32_t n_owned) const
 Cells below n_owned whose reconstruction reads no cell at or above n_owned, so that calc_cell_face_values can reconstruct them before the halo is filled. Empty if this reconstruction cannot be split by cells.
 
virtual void calc_cell_face_values (const Kokkos::DefaultExecutionSpace &exec, Kokkos::View< rtype *[N_CONSERVATIVE]> solution, Kokkos::View< rtype **[2][N_CONSERVATIVE]> face_solution, Kokkos::View< uint32_t * > cells)
 Reconstruct the listed cells' sides of their faces, on the given execution space instance, as far as each cell can on its own (see cells_independent_of_halo()). Once every reconstructed cell went through this and those instances are fenced, finish_cell_face_values() completes the face values.
 
virtual void finish_cell_face_values (Kokkos::View< rtype *[N_CONSERVATIVE]> solution, Kokkos::View< rtype **[2][N_CONSERVATIVE]> face_solution)
 Complete the face values after calc_cell_face_values().
 
virtual bool cell_gradients (Kokkos::View< rtype *[N_CONSERVATIVE]>, Kokkos::View< rtype *[N_CONSERVATIVE][N_DIM]>, uint32_t)
 Gradients of W = [rho, u, p] at the centroids of the first n_cells cells from the reconstruction polynomials, if the scheme has higher-order ones than least squares on face neighbors.
 
virtual void axisymmetric_source (Kokkos::View< rtype *[N_CONSERVATIVE]>, Kokkos::View< rtype *, Kokkos::LayoutStride >, Kokkos::View< rtype * >, uint32_t)
 Axisymmetric runs: for each of the first n_cells cells whose reconstruction has a smooth polynomial, replace source(c) by int (p - tau_thetatheta) dA over the planar cell, with p and the velocity of the polynomial at cell quadrature points and the cell viscosity mu(c) (inviscid if mu is empty). Other cells keep their source, which the caller set from cell values.
 
void init_face_quadrature_3d (uint8_t degree)
 Set up per-face quadrature (3D): Dunavant rules on triangles and Gauss rules mapped bilinearly onto quadrilaterals, exact for polynomials of the given degree on planar faces (degree <= 1 uses the face centroid). Also maps each quadrature point of a transmissive boundary face to the matching point of its image face (BoundaryData::face_image_quad).
 
void init_face_quadrature_2d_curved ()
 Curved meshes in 2D: per-face quadrature points, weights and normals for quadrature_face's Gauss rule on every face, the curved faces' mapped onto their curves (nothing otherwise).
 

Additional Inherited Members

- Public Attributes inherited from FaceReconstruction
Quadrature quadrature_face
 
Kokkos::View< rtype *** > face_quad_points
 
Kokkos::View< rtype ** > face_quad_weights
 
Kokkos::View< rtype *** > face_quad_normals
 
- Protected Attributes inherited from FaceReconstruction
FaceReconstructionType type
 
std::shared_ptr< Mesh > mesh
 
BoundaryData boundaries
 

Constructor & Destructor Documentation

◆ FirstOrder()

FirstOrder::FirstOrder ( )

Construct a new First Order object.

◆ ~FirstOrder()

FirstOrder::~FirstOrder ( )

Destroy the First Order object.

Member Function Documentation

◆ calc_face_values()

void FirstOrder::calc_face_values ( Kokkos::View< rtype *[N_CONSERVATIVE]>  solution,
Kokkos::View< rtype **[2][N_CONSERVATIVE]>  face_solution 
)
overridevirtual

Reconstruct the face values.

Parameters
solutionCell states W = [rho, u_x, u_y, p].
face_solutionFace states W, indexed (face, quadrature point, side, variable). Side 1 of boundary faces is left untouched.

Implements FaceReconstruction.

◆ init()

void FirstOrder::init ( const toml::value &  input)
overridevirtual

Initialize the first order face reconstruction.

Implements FaceReconstruction.

◆ n_face_quadrature_points()

uint8_t FirstOrder::n_face_quadrature_points ( ) const
overridevirtual

Get the number of quadrature points per face.

Returns
Number of quadrature points per face.

Implements FaceReconstruction.


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