![]() |
Peano
|
#include "adiabatic_index.h"
#include "approx_math.h"
#include "cosmology.h"
#include "dimension.h"
#include "entropy_floor.h"
#include "equation_of_state.h"
#include "hydro_parameters.h"
#include "hydro_properties.h"
#include "kernel_hydro.h"
#include "minmax.h"
Go to the source code of this file.
Functions | |
__attribute__ ((always_inline)) INLINE static float hydro_get_comoving_internal_energy(const struct part *restrict p | |
Returns the comoving internal energy of a particle at the last time the particle was kicked. | |
Variables | |
const struct xpart *restrict | xp |
const struct xpart *restrict const struct cosmology * | cosmo |
float | m |
float | du_dt |
struct xpart const struct cosmology const float | entropy |
xp | u_full = gas_internal_energy_from_entropy(p->rho, comoving_entropy) |
struct xpart const struct cosmology const float | u |
const struct cosmology const struct pressure_floor_props * | pressure_floor |
const float | pressure = gas_pressure_from_internal_energy(p->rho, p->u) |
const float | soundspeed = gas_soundspeed_from_pressure(p->rho, pressure) |
p force | v_sig = MAX(p->force.v_sig, 2.f * soundspeed) |
const struct cosmology const float | dv_phys |
__attribute__ | ( | (always_inline) | ) | const |
Returns the comoving internal energy of a particle at the last time the particle was kicked.
Update the value of the viscosity alpha for the scheme.
Correct the signal velocity of the particle partaking in supernova (kinetic) feedback based on the velocity kick the particle receives.
Sets the drifted physical internal energy of a particle.
Sets the physical internal energy of a particle.
Sets the physical entropy of a particle.
Sets the time derivative of the co-moving internal energy of a particle.
Returns the time derivative of internal energy of a particle.
Returns the time derivative of co-moving internal energy of a particle.
Sets the mass of a particle.
Returns the mass of a particle.
Returns the comoving density of a particle.
Returns the physical sound speed of a particle.
Returns the comoving sound speed of a particle.
Returns the physical entropy of a particle drifted to the current time.
Returns the comoving entropy of a particle drifted to the current time.
Returns the physical entropy of a particle at the last time the particle was kicked.
Returns the comoving entropy of a particle at the last time the particle was kicked.
Returns the physical pressure of a particle.
Returns the comoving pressure of a particle.
Returns the physical internal energy of a particle drifted to the current time.
Returns the comoving internal energy of a particle drifted to the current time.
Returns the physical internal energy of a particle at the last time the particle was kicked.
p | The particle of interest |
xp | The extended data of the particle of interest. |
p | The particle of interest. |
xp | The extended data of the particle of interest. |
cosmo | The cosmological model. |
p | The particle of interest |
p | The particle of interest. |
cosmo | The cosmological model. |
Computes the pressure based on the particle's properties.
p | The particle of interest |
Computes the pressure based on the particle's properties and convert it to physical coordinates.
p | The particle of interest |
cosmo | The cosmological model. |
p | The particle of interest. |
xp | The extended data of the particle of interest. |
p | The particle of interest. |
p | The particle of interest |
cosmo | The cosmological model. |
p | The particle of interest |
m | The mass to set. |
We assume a constant density.
p | The particle of interest |
We assume a constant density.
p | The particle of interest |
cosmo | Cosmology data structure |
We assume a constant density for the conversion to entropy.
p | The particle of interest. |
du_dt | The new time derivative of the internal energy. |
We assume a constant density.
p | The particle of interest. |
cosmo | Cosmology data structure |
du_dt | The new time derivative of the internal energy. |
p | The particle of interest. |
xp | The extended particle data. |
cosmo | Cosmology data structure |
entropy | The physical entropy |
p | The particle of interest. |
xp | The extended particle data. |
cosmo | Cosmology data structure |
u | The physical internal energy |
p | The particle of interest. |
cosmo | Cosmology data structure |
u | The physical internal energy |
p | The particle of interest. |
cosmo | Cosmology data structure |
dv_phys | The velocity kick received by the particle expressed in physical units (note that dv_phys must be positive or equal to zero) |
p | the particle of interest |
alpha | the new value for the viscosity coefficient. |
const struct cosmology * cosmo |
const struct cosmology float du_dt |
const struct cosmology const float dv_phys |
float m |
Definition at line 257 of file hydro.h.
Referenced by applications::exahype2::euler::sphericalaccretion::SSInfall::add_mass(), examples::exahype2::mgccz4::admconstraints(), applications::exahype2::ccz4::admconstraints(), TP::TwoPunctures::allocate_derivs(), TP::Utilities::chebev(), TP::chebev_wrec(), Numerics::create_local_basis(), TP::TwoPunctures::free_derivs(), TP::Utilities::free_dmatrix(), TP::Utilities::free_imatrix(), TP::error::incase(), ContextCurvilinear< Shortcuts, basisSize >::initUnknownsPatch(), ContextDiffuse< Shortcuts, basisSize >::initUnknownsPatch(), ContextDiffuse< Shortcuts, basisSize >::initUnknownsPointwise(), Interpolation(), TP::TwoPunctures::LineRelax_al(), TP::TwoPunctures::LineRelax_be(), applications::exahype2::ccz4::ncp(), examples::exahype2::mgccz4::ncp(), kernels::idx5::operator()(), applications::exahype2::ccz4::Psi4Calc(), TP::recurrence(), TP::TwoPunctures::resid(), Numerics::rotate_into_orthogonal_basis(), Numerics::rotate_into_physical_basis(), applications::exahype2::ccz4::source(), examples::exahype2::mgccz4::source(), TP::TwoPunctures::SpecCoef(), applications::exahype2::ccz4::TestingOutput(), applications::exahype2::ccz4::ThetaOutputNCP(), applications::exahype2::swe::TopologyParser::transformIndexCDFRangeToArray(), applications::exahype2::swe::TopologyParser::transformIndexSimulationToCDFRange(), and TP::error::unless().
const struct cosmology const struct pressure_floor_props* pressure_floor |
Definition at line 365 of file hydro.h.
Referenced by runner_do_ghost().
const struct cosmology const struct pressure_floor_props const float u |
p force v_sig = MAX(p->force.v_sig, 2.f * soundspeed) |
Definition at line 379 of file hydro.h.
Referenced by swift2::kernels::legacy::force_kernel(), and swift2::kernels::legacy::hydro_compute_timestep().
struct xpart * xp |
Definition at line 58 of file hydro.h.
Referenced by TP::TwoPunctures::Interpolate(), and runner_do_ghost().