SpECTRE  v2021.12.06
Burgers::fd Namespace Reference

Finite difference functionality for Burgers system. More...

Classes

class  MonotisedCentral
 Monotised central reconstruction. See fd::reconstruction::monotised_central() for details. More...
 
class  Reconstructor
 The base class from which all reconstruction schemes must inherit. More...
 

Functions

bool operator== (const MonotisedCentral &, const MonotisedCentral &)
 
bool operator!= (const MonotisedCentral &lhs, const MonotisedCentral &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 FixedHashMap< maximum_number_of_neighbors(1)+1, std::pair< Direction< 1 >, ElementId< 1 > >, evolution::dg::subcell::NeighborData, boost::hash< std::pair< Direction< 1 >, ElementId< 1 > > > > neighbor_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 FixedHashMap< maximum_number_of_neighbors(1)+1, std::pair< Direction< 1 >, ElementId< 1 > >, evolution::dg::subcell::NeighborData, boost::hash< std::pair< Direction< 1 >, ElementId< 1 > > > > neighbor_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 FixedHashMap< maximum_number_of_neighbors(1)+1, std::pair< Direction< 1 >, ElementId< 1 > >, evolution::dg::subcell::NeighborData, boost::hash< std::pair< Direction< 1 >, ElementId< 1 > > > >  neighbor_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.