![]() |
Shamrock 2025.10.0
Astrophysical Code
|
namespace for the basegodunov model More...
Namespaces | |
| namespace | modules |
| namespace for the basegodunov model modules | |
Classes | |
| struct | AMRMode |
| struct | AMRStencilCache |
| struct | BCConfig |
| struct | DragConfig |
| alphas is the dust collision rate (the inverse of the stopping time) More... | |
| struct | DustConfig |
| class | GhostZonesData |
| Class to hold information related to ghost zones. More... | |
| struct | GravityConfig |
| class | Model |
| struct | PassiveScalarGasConfig |
| Npscal_gas is the number of gas passive scalars. More... | |
| class | Solver |
| struct | SolverConfig |
| struct | SolverStatusVar |
| class | SolverStorage |
Typedefs | |
| using | Direction = shammodels::basegodunov::modules::Direction |
| template<class T > | |
| using | Component = shambase::StorageComponent< T > |
Enumerations | |
| enum | DragSolverMode { NoDrag = 0 , IRK1 = 1 , IRK2 = 2 , EXPO = 3 } |
| enum | DustRiemannSolverMode { NoDust = 0 , DHLL = 1 , HB = 2 } |
| Dust Riemann solver mode enum. More... | |
| enum | GravityMode { NoGravity = 0 , CG = 1 , PCG = 2 , BICGSTAB = 3 , MULTIGRID = 4 } |
| enum | RiemannSolverMode { Rusanov = 0 , HLL = 1 , HLLC = 2 } |
| enum | SlopeMode { None = 0 , VanLeer_f = 1 , VanLeer_std = 2 , VanLeer_sym = 3 , Minmod = 4 } |
| Slope limiter modes. More... | |
Functions | |
| SHAMROCK_JSON_SERIALIZE_ENUM (DragSolverMode, {{DragSolverMode::NoDrag, "no_drag"}, {DragSolverMode::IRK1, "irk1"}, {DragSolverMode::IRK2, "irk2"}, {DragSolverMode::EXPO, "expo"}}) | |
| SHAMROCK_JSON_SERIALIZE_ENUM (DustRiemannSolverMode, {{DustRiemannSolverMode::NoDust, "no_dust"}, {DustRiemannSolverMode::DHLL, "dhll"}, {DustRiemannSolverMode::HB, "hb"}}) | |
| SHAMROCK_JSON_SERIALIZE_ENUM (GravityMode, {{GravityMode::NoGravity, "no_gravity"}, {GravityMode::CG, "cg"}, {GravityMode::PCG, "pcg"}, {GravityMode::BICGSTAB, "bicgstab"}, {GravityMode::MULTIGRID, "multigrid"}}) | |
| SHAMROCK_JSON_SERIALIZE_ENUM (RiemannSolverMode, {{RiemannSolverMode::Rusanov, "rusanov"}, {RiemannSolverMode::HLL, "hll"}, {RiemannSolverMode::HLLC, "hllc"}}) | |
| SHAMROCK_JSON_SERIALIZE_ENUM (SlopeMode, {{SlopeMode::None, "none"}, {SlopeMode::VanLeer_f, "vanleer_f"}, {SlopeMode::VanLeer_std, "vanleer_std"}, {SlopeMode::VanLeer_sym, "vanleer_sym"}, {SlopeMode::Minmod, "minmod"}}) | |
| template<class T , class Tvec , class ACCField > | |
| T | laplacian_7pt (const u32 cell_global_id, const shambase::VecComponent< Tvec > delta_cell, const AMRGraphLinkiterator &graph_iter_xp, const AMRGraphLinkiterator &graph_iter_xm, const AMRGraphLinkiterator &graph_iter_yp, const AMRGraphLinkiterator &graph_iter_ym, const AMRGraphLinkiterator &graph_iter_zp, const AMRGraphLinkiterator &graph_iter_zm, ACCField &&field_access) |
| Get the discretized laplacian. | |
| template<class Tvec > | |
| void | to_json (nlohmann::json &j, const SolverStatusVar< Tvec > &p) |
| template<class Tvec > | |
| void | from_json (const nlohmann::json &j, SolverStatusVar< Tvec > &p) |
| template<class Tvec , class TgridVec > | |
| void | to_json (nlohmann::json &j, const SolverConfig< Tvec, TgridVec > &p) |
| Serialize a SolverConfig to a JSON object. | |
| template<class Tvec , class TgridVec > | |
| void | from_json (const nlohmann::json &j, SolverConfig< Tvec, TgridVec > &p) |
| Deserializes a SolverConfig object from a JSON object. | |
| template<class Tvec , class TgridVec > | |
| void | add_instance (py::module &m, std::string name_config, std::string name_model) |
| template void | to_json< f64_3, i64_3 > (nlohmann::json &j, const SolverConfig< f64_3, i64_3 > &p) |
| template void | from_json< f64_3, i64_3 > (const nlohmann::json &j, SolverConfig< f64_3, i64_3 > &p) |
namespace for the basegodunov model
| using shammodels::basegodunov::Component = typedef shambase::StorageComponent<T> |
Definition at line 57 of file SolverStorage.hpp.
| using shammodels::basegodunov::Direction = typedef shammodels::basegodunov::modules::Direction |
Definition at line 27 of file CGLaplacianStencil.hpp.
| enum shammodels::basegodunov::DragSolverMode |
Definition at line 26 of file enum_DragSolverMode.hpp.
Dust Riemann solver mode enum.
Definition at line 27 of file enum_DustRiemannSolverMode.hpp.
| enum shammodels::basegodunov::GravityMode |
Definition at line 25 of file enum_GravityMode.hpp.
| enum shammodels::basegodunov::RiemannSolverMode |
Definition at line 25 of file enum_RiemannSolverMode.hpp.
Slope limiter modes.
Definition at line 25 of file enum_SlopeMode.hpp.
| void shammodels::basegodunov::add_instance | ( | py::module & | m, |
| std::string | name_config, | ||
| std::string | name_model | ||
| ) |
Definition at line 33 of file pyRamsesModel.cpp.
| void shammodels::basegodunov::from_json | ( | const nlohmann::json & | j, |
| SolverConfig< Tvec, TgridVec > & | p | ||
| ) |
Deserializes a SolverConfig object from a JSON object.
| j | The JSON object to deserialize from. |
| p | The SolverConfig object to populate. |
Definition at line 75 of file SolverConfig.cpp.
Here is the call graph for this function:
|
inline |
Definition at line 311 of file SolverConfig.hpp.
|
inline |
Get the discretized laplacian.
| T | |
| Tvec | |
| ACCField |
| cell_global_id | |
| delta_cell | |
| graph_iter_xp | |
| graph_iter_xm | |
| graph_iter_yp | |
| graph_iter_ym | |
| graph_iter_zp | |
| graph_iter_zm | |
| field_access |
Definition at line 47 of file CGLaplacianStencil.hpp.
| void shammodels::basegodunov::to_json | ( | nlohmann::json & | j, |
| const SolverConfig< Tvec, TgridVec > & | p | ||
| ) |
Serialize a SolverConfig to a JSON object.
| [out] | j | The JSON object to write to |
| [in] | p | The SolverConfig to serialize |
Definition at line 56 of file SolverConfig.cpp.
Here is the call graph for this function:
|
inline |
Definition at line 306 of file SolverConfig.hpp.