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

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

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:

  • Cha, S.-H. & Whitworth, A.P. (2003) "Implementations and tests of Godunov-type particle hydrodynamics"
  • Inutsuka, S. (2002) "Reformulation of Smoothed Particle Hydrodynamics with Riemann Solver"

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.