namespace for models
More...
|
| namespace | basegodunov |
| | namespace for the basegodunov model
|
| |
| namespace | sph |
| | namespace for the sph model
|
| |
| namespace | zeus |
| | namespace for the zeus model
|
| |
|
| template<class Tvec > |
| void | to_json (nlohmann::json &j, const EOSConfig< Tvec > &p) |
| | Serialize EOSConfig to json.
|
| |
| template<class Tvec > |
| void | from_json (const nlohmann::json &j, EOSConfig< Tvec > &p) |
| | Deserializes an EOSConfig<Tvec> from a JSON object.
|
| |
| template<class Tvec > |
| void | to_json (nlohmann::json &j, const ExtForceVariant< Tvec > &p) |
| |
| template<class Tvec > |
| void | from_json (const nlohmann::json &j, ExtForceVariant< Tvec > &p) |
| |
| template<class Tvec > |
| void | to_json (nlohmann::json &j, const ExtForceConfig< Tvec > &p) |
| |
| template<class Tvec > |
| void | from_json (const nlohmann::json &j, ExtForceConfig< Tvec > &p) |
| |
| std::string | report_perf_timestep (f64 rate, u64 nobj, u64 npatch, f64 tcompute, f64 mpi_timer, f64 alloc_time_device, f64 alloc_time_host, size_t max_mem_device, size_t max_mem_host, shamsys::SystemMetrics system_metrics={}, bool report_power_usage=false) |
| |
|
template void | to_json< f64_3 > (nlohmann::json &j, const EOSConfig< f64_3 > &p) |
| |
|
template void | from_json< f64_3 > (const nlohmann::json &j, EOSConfig< f64_3 > &p) |
| |
◆ from_json() [1/3]
template<class Tvec >
| void shammodels::from_json |
( |
const nlohmann::json & |
j, |
|
|
EOSConfig< Tvec > & |
p |
|
) |
| |
◆ from_json() [2/3]
template<class Tvec >
| void shammodels::from_json |
( |
const nlohmann::json & |
j, |
|
|
ExtForceConfig< Tvec > & |
p |
|
) |
| |
|
inline |
◆ from_json() [3/3]
template<class Tvec >
| void shammodels::from_json |
( |
const nlohmann::json & |
j, |
|
|
ExtForceVariant< Tvec > & |
p |
|
) |
| |
|
inline |
◆ report_perf_timestep()
| std::string shammodels::report_perf_timestep |
( |
f64 |
rate, |
|
|
u64 |
nobj, |
|
|
u64 |
npatch, |
|
|
f64 |
tcompute, |
|
|
f64 |
mpi_timer, |
|
|
f64 |
alloc_time_device, |
|
|
f64 |
alloc_time_host, |
|
|
size_t |
max_mem_device, |
|
|
size_t |
max_mem_host, |
|
|
shamsys::SystemMetrics |
system_metrics = {}, |
|
|
bool |
report_power_usage = false |
|
) |
| |
◆ to_json() [1/3]
template<class Tvec >
| void shammodels::to_json |
( |
nlohmann::json & |
j, |
|
|
const EOSConfig< Tvec > & |
p |
|
) |
| |
Serialize EOSConfig to json.
This function serializes an EOSConfig to a json object with the following format:
{
"Tvec": "f32_3"|"f64_3",
"eos_type": "adiabatic"|"locally_isothermal"|"locally_isothermal_lp07",
"gamma"?: number,
"cs0"?: number,
"q"?: number,
"r0"?: number
}
- Parameters
-
Definition at line 43 of file EOSConfig.cpp.
◆ to_json() [2/3]
template<class Tvec >
| void shammodels::to_json |
( |
nlohmann::json & |
j, |
|
|
const ExtForceConfig< Tvec > & |
p |
|
) |
| |
|
inline |
◆ to_json() [3/3]
template<class Tvec >
| void shammodels::to_json |
( |
nlohmann::json & |
j, |
|
|
const ExtForceVariant< Tvec > & |
p |
|
) |
| |
|
inline |