Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
SolverConfig.hpp File Reference

Configuration for the Godunov SPH (GSPH) solver. More...

#include "shambase/exception.hpp"
#include "shambackends/math.hpp"
#include "shambackends/typeAliasVec.hpp"
#include "shambackends/type_traits.hpp"
#include "shambackends/vec.hpp"
#include "shamcomm/worldInfo.hpp"
#include "shammath/sphkernels.hpp"
#include "shammodels/common/EOSConfig.hpp"
#include "shammodels/common/ExtForceConfig.hpp"
#include "shammodels/gsph/config/ReconstructConfig.hpp"
#include "shammodels/gsph/config/RiemannConfig.hpp"
#include "shammodels/sph/config/BCConfig.hpp"
#include "shamrock/io/json_std_optional.hpp"
#include "shamrock/io/json_utils.hpp"
#include "shamrock/io/units_json.hpp"
#include "shamrock/patch/PatchDataLayerLayout.hpp"
#include "shamrock/scheduler/PatchScheduler.hpp"
#include "shamsys/NodeInstance.hpp"
#include "shamsys/legacy/log.hpp"
#include "shamtree/CompressedLeafBVH.hpp"
#include <nlohmann/json.hpp>
#include <shamunits/Constants.hpp>
#include <shamunits/UnitSystem.hpp>
#include <variant>
#include <vector>
+ Include dependency graph for SolverConfig.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  shammodels::gsph::CFLConfig< Tscal >
 The configuration for the CFL condition in GSPH. More...
 
struct  shammodels::gsph::SolverStatusVar< Tvec >
 Solver status variables for GSPH. More...
 
struct  shammodels::gsph::SolverConfig< Tvec, SPHKernel >
 The configuration for a GSPH solver. More...
 

Namespaces

namespace  shammodels
 namespace for models
 

Functions

template<class Tscal >
void shammodels::gsph::to_json (nlohmann::json &j, const CFLConfig< Tscal > &p)
 
template<class Tscal >
void shammodels::gsph::from_json (const nlohmann::json &j, CFLConfig< Tscal > &p)
 
template<class Tvec >
void shammodels::gsph::to_json (nlohmann::json &j, const SolverStatusVar< Tvec > &p)
 
template<class Tvec >
void shammodels::gsph::from_json (const nlohmann::json &j, SolverStatusVar< Tvec > &p)
 
template<class Tvec , template< class > class SPHKernel>
void shammodels::gsph::to_json (nlohmann::json &j, const SolverConfig< Tvec, SPHKernel > &p)
 
template<class Tvec , template< class > class SPHKernel>
void shammodels::gsph::from_json (const nlohmann::json &j, SolverConfig< Tvec, SPHKernel > &p)
 

Detailed Description

Configuration for the Godunov SPH (GSPH) solver.

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 main configuration structure for the GSPH solver. GSPH uses Riemann solvers at particle interfaces instead of artificial viscosity.

References:

Definition in file SolverConfig.hpp.

Function Documentation

◆ from_json() [1/3]

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

Definition at line 348 of file SolverConfig.hpp.

◆ from_json() [2/3]

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

Definition at line 400 of file SolverConfig.hpp.

◆ from_json() [3/3]

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

Definition at line 362 of file SolverConfig.hpp.

◆ to_json() [1/3]

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

Definition at line 340 of file SolverConfig.hpp.

◆ to_json() [2/3]

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

Definition at line 369 of file SolverConfig.hpp.

◆ to_json() [3/3]

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

Definition at line 354 of file SolverConfig.hpp.