Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ReconstructConfig.hpp File Reference

Configuration for reconstruction methods in GSPH. More...

#include "shambackends/type_traits.hpp"
#include "shambackends/vec.hpp"
#include "shamsys/legacy/log.hpp"
#include <nlohmann/json.hpp>
#include <variant>
Include dependency graph for ReconstructConfig.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  shammodels::gsph::ReconstructConfig< Tvec >
 Configuration for reconstruction methods in GSPH. More...
struct  shammodels::gsph::ReconstructConfig< Tvec >::PiecewiseConstant
 Piecewise constant (1st order). More...
struct  shammodels::gsph::ReconstructConfig< Tvec >::MUSCL
 MUSCL reconstruction (2nd order). More...

Namespaces

namespace  shammodels
 namespace for models

Functions

template<class Tvec>
void shammodels::gsph::to_json (nlohmann::json &j, const ReconstructConfig< Tvec > &p)
template<class Tvec>
void shammodels::gsph::from_json (const nlohmann::json &j, ReconstructConfig< Tvec > &p)

Detailed Description

Configuration for reconstruction methods in GSPH.

Author
Guo Yansong (guo.y.nosp@m.anso.nosp@m.ng.ng.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om)
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Yona Lapeyre (yona..nosp@m.lape.nosp@m.yre@e.nosp@m.ns-l.nosp@m.yon.f.nosp@m.r)

This file contains the configuration structures for spatial reconstruction methods used in Godunov SPH (GSPH). Reconstruction extrapolates primitive variables to particle interfaces for higher-order accuracy.

Definition in file ReconstructConfig.hpp.

Function Documentation

◆ from_json()

template<class Tvec>
void shammodels::gsph::from_json ( const nlohmann::json & j,
ReconstructConfig< Tvec > & p )
inline

Definition at line 151 of file ReconstructConfig.hpp.

◆ to_json()

template<class Tvec>
void shammodels::gsph::to_json ( nlohmann::json & j,
const ReconstructConfig< Tvec > & p )
inline

Definition at line 123 of file ReconstructConfig.hpp.