Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
PhantomDumpEOSUtils.hpp File Reference
#include "shammodels/sph/io/PhantomDump.hpp"
+ Include dependency graph for PhantomDumpEOSUtils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shammodels
 namespace for models
 
namespace  shammodels::sph
 namespace for the sph model
 

Functions

bool shammodels::sph::phdump::is_maxvxyzu_at_least_4 (const PhantomDump &dump)
 check if alphau is set in the header, which is the case for (maxvxyzu >= 4)
 
void shammodels::sph::phdump::eos1_load (const PhantomDump &dump, f64 &cs)
 Load the EOS1 from the phantom dump.
 
void shammodels::sph::phdump::eos1_write (PhantomDump &dump, const f64 &cs)
 Write the EOS1 to the phantom dump.
 
void shammodels::sph::phdump::eos2_load (const PhantomDump &dump, f64 &gamma)
 Load the EOS2 from the phantom dump.
 
void shammodels::sph::phdump::eos2_write (PhantomDump &dump, const f64 &gamma)
 Write the EOS2 to the phantom dump.
 
void shammodels::sph::phdump::eos3_load (const PhantomDump &dump, f64 &cs0, f64 &q, f64 &r0)
 Load the EOS3 from the phantom dump.
 
void shammodels::sph::phdump::eos3_write (PhantomDump &dump, const f64 &cs0, const f64 &q, const f64 &r0)
 Write the EOS3 to the phantom dump.
 
void shammodels::sph::phdump::eos13_load (const PhantomDump &dump, f64 &cs0, f64 &q, f64 &r0)
 Load the EOS13 from the phantom dump.
 
void shammodels::sph::phdump::eos13_write (PhantomDump &dump, const f64 &cs0, const f64 &q, const f64 &r0)
 Write the EOS13 to the phantom dump.
 
void shammodels::sph::phdump::eos14_load (const PhantomDump &dump, f64 &cs0, f64 &q, f64 &r0)
 Load the EOS14 from the phantom dump.
 
void shammodels::sph::phdump::eos14_write (PhantomDump &dump, const f64 &cs0, const f64 &q, const f64 &r0)
 Write the EOS14 to the phantom dump.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file PhantomDumpEOSUtils.hpp.

Function Documentation

◆ eos13_load()

void shammodels::sph::phdump::eos13_load ( const PhantomDump dump,
f64 cs0,
f64 q,
f64 r0 
)

Load the EOS13 from the phantom dump.

Parameters
[in]dumpPhantom dump file
[out]cs0Sound speed at the reference radius
[out]qPower law index
[out]r0Reference radius

Definition at line 259 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos13_write()

void shammodels::sph::phdump::eos13_write ( PhantomDump dump,
const f64 cs0,
const f64 q,
const f64 r0 
)

Write the EOS13 to the phantom dump.

Parameters
[out]dumpPhantom dump file
[in]cs0Sound speed at the reference radius
[in]qPower law index
[in]r0Reference radius

Definition at line 268 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos14_load()

void shammodels::sph::phdump::eos14_load ( const PhantomDump dump,
f64 cs0,
f64 q,
f64 r0 
)

Load the EOS14 from the phantom dump.

Parameters
[in]dumpPhantom dump file
[out]cs0Sound speed at the reference radius
[out]qPower law index
[out]r0Reference radius

Definition at line 287 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos14_write()

void shammodels::sph::phdump::eos14_write ( PhantomDump dump,
const f64 cs0,
const f64 q,
const f64 r0 
)

Write the EOS14 to the phantom dump.

Parameters
[out]dumpPhantom dump file
[in]cs0Sound speed at the reference radius
[in]qPower law index
[in]r0Reference radius

Definition at line 296 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos1_load()

void shammodels::sph::phdump::eos1_load ( const PhantomDump dump,
f64 cs 
)

Load the EOS1 from the phantom dump.

Parameters
[in]dumpPhantom dump file
[out]csSound speed

Definition at line 164 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos1_write()

void shammodels::sph::phdump::eos1_write ( PhantomDump dump,
const f64 cs 
)

Write the EOS1 to the phantom dump.

Parameters
[out]dumpPhantom dump file
[in]csSound speed

Definition at line 171 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos2_load()

void shammodels::sph::phdump::eos2_load ( const PhantomDump dump,
f64 gamma 
)

Load the EOS2 from the phantom dump.

Parameters
[in]dumpPhantom dump file
[out]gammaAdiabatic index

Definition at line 196 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos2_write()

void shammodels::sph::phdump::eos2_write ( PhantomDump dump,
const f64 gamma 
)

Write the EOS2 to the phantom dump.

Parameters
[out]dumpPhantom dump file
[in]gammaAdiabatic index

Definition at line 203 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos3_load()

void shammodels::sph::phdump::eos3_load ( const PhantomDump dump,
f64 cs0,
f64 q,
f64 r0 
)

Load the EOS3 from the phantom dump.

Parameters
[in]dumpPhantom dump file
[out]cs0Sound speed at the reference radius
[out]qPower law index
[out]r0Reference radius

Definition at line 229 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ eos3_write()

void shammodels::sph::phdump::eos3_write ( PhantomDump dump,
const f64 cs0,
const f64 q,
const f64 r0 
)

Write the EOS3 to the phantom dump.

Parameters
[out]dumpPhantom dump file
[in]cs0Sound speed at the reference radius
[in]qPower law index
[in]r0Reference radius

Definition at line 238 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function:

◆ is_maxvxyzu_at_least_4()

bool shammodels::sph::phdump::is_maxvxyzu_at_least_4 ( const PhantomDump dump)

check if alphau is set in the header, which is the case for (maxvxyzu >= 4)

Definition at line 140 of file PhantomDumpEOSUtils.cpp.

+ Here is the call graph for this function: