SpECTRE  v2024.04.12
Burgers::fd Namespace Reference

Finite difference functionality for Burgers system. More...

Classes

struct  BoundaryConditionGhostData
 Computes finite difference ghost data for external boundary conditions. More...
 
class  MonotonisedCentral
 Monotonised central reconstruction. See fd::reconstruction::monotonised_central() for details. More...
 
class  Reconstructor
 The base class from which all reconstruction schemes must inherit. More...
 

Functions

bool operator== (const MonotonisedCentral &, const MonotonisedCentral &)
 
bool operator!= (const MonotonisedCentral &lhs, const MonotonisedCentral &rhs)
 
template<typename TagsList , typename Reconstructor >
void reconstruct_work (gsl::not_null< std::array< Variables< TagsList >, 1 > * > vars_on_lower_face, gsl::not_null< std::array< Variables< TagsList >, 1 > * > vars_on_upper_face, const Reconstructor &reconstruct, const Variables< tmpl::list< Tags::U > > volume_vars, const Element< 1 > &element, const DirectionalIdMap< 1, evolution::dg::subcell::GhostData > &ghost_data, const Mesh< 1 > &subcell_mesh, const size_t ghost_zone_size)
 Reconstructs \(U\). All results are written into vars_on_lower_face and vars_on_upper_face.
 
template<typename TagsList , typename ReconstructLower , typename ReconstructUpper >
void reconstruct_fd_neighbor_work (gsl::not_null< Variables< TagsList > * > vars_on_face, const ReconstructLower &reconstruct_lower_neighbor, const ReconstructUpper &reconstruct_upper_neighbor, const Variables< tmpl::list< Tags::U > > &subcell_volume_vars, const Element< 1 > &element, const DirectionalIdMap< 1, evolution::dg::subcell::GhostData > &ghost_data, const Mesh< 1 > &subcell_mesh, const Direction< 1 > &direction_to_reconstruct, const size_t ghost_zone_size)
 Reconstructs \(U\). All results are written into vars_on_face. More...
 
void register_derived_with_charm ()
 

Detailed Description

Finite difference functionality for Burgers system.

Function Documentation

◆ reconstruct_fd_neighbor_work()

template<typename TagsList , typename ReconstructLower , typename ReconstructUpper >
void Burgers::fd::reconstruct_fd_neighbor_work ( gsl::not_null< Variables< TagsList > * >  vars_on_face,
const ReconstructLower &  reconstruct_lower_neighbor,
const ReconstructUpper &  reconstruct_upper_neighbor,
const Variables< tmpl::list< Tags::U > > &  subcell_volume_vars,
const Element< 1 > &  element,
const DirectionalIdMap< 1, evolution::dg::subcell::GhostData > &  ghost_data,
const Mesh< 1 > &  subcell_mesh,
const Direction< 1 > &  direction_to_reconstruct,
const size_t  ghost_zone_size 
)

Reconstructs \(U\). All results are written into vars_on_face.

This is used on DG elements to reconstruct their subcell neighbors' solution on the shared faces.