Peano
Loading...
Searching...
No Matches
hydro.h File Reference
#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"
Include dependency graph for hydro.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 cosmologycosmo
 
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
 

Function Documentation

◆ __attribute__()

__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.

Parameters
pThe particle of interest
xpThe extended data of the particle of interest.
pThe particle of interest.
xpThe extended data of the particle of interest.
cosmoThe cosmological model.
pThe particle of interest
pThe particle of interest.
cosmoThe cosmological model.

Computes the pressure based on the particle's properties.

Parameters
pThe particle of interest

Computes the pressure based on the particle's properties and convert it to physical coordinates.

Parameters
pThe particle of interest
cosmoThe cosmological model.
pThe particle of interest.
xpThe extended data of the particle of interest.
pThe particle of interest.
pThe particle of interest
cosmoThe cosmological model.
pThe particle of interest
mThe mass to set.

We assume a constant density.

Parameters
pThe particle of interest

We assume a constant density.

Parameters
pThe particle of interest
cosmoCosmology data structure

We assume a constant density for the conversion to entropy.

Parameters
pThe particle of interest.
du_dtThe new time derivative of the internal energy.

We assume a constant density.

Parameters
pThe particle of interest.
cosmoCosmology data structure
du_dtThe new time derivative of the internal energy.
pThe particle of interest.
xpThe extended particle data.
cosmoCosmology data structure
entropyThe physical entropy
pThe particle of interest.
xpThe extended particle data.
cosmoCosmology data structure
uThe physical internal energy
pThe particle of interest.
cosmoCosmology data structure
uThe physical internal energy
pThe particle of interest.
cosmoCosmology data structure
dv_physThe velocity kick received by the particle expressed in physical units (note that dv_phys must be positive or equal to zero)
pthe particle of interest
alphathe new value for the viscosity coefficient.

Definition at line 85 of file hydro.h.

Variable Documentation

◆ cosmo

const struct cosmology * cosmo
Initial value:
{
return xp->u_full * cosmo->a_factor_internal_energy
const struct xpart *restrict const struct cosmology * cosmo
Definition hydro.h:74
const struct xpart *restrict xp
Definition hydro.h:58
float u_full
Definition hydro_part.h:70

Definition at line 74 of file hydro.h.

Referenced by runner_do_ghost().

◆ du_dt

const struct cosmology float du_dt
Initial value:
{
p->u_dt = du_dt
float du_dt
Definition hydro.h:300

Definition at line 300 of file hydro.h.

◆ dv_phys

const struct cosmology const float dv_phys
Initial value:
{
const float dv = dv_phys / cosmo->a_factor_sound_speed
const struct cosmology const float dv_phys
Definition hydro.h:394
float dv[3]
Definition hydro_iact.h:98

Definition at line 394 of file hydro.h.

◆ entropy

struct xpart const struct cosmology const float entropy
Initial value:
{
const float comoving_entropy = entropy
struct xpart const struct cosmology const float entropy
Definition hydro.h:332

Definition at line 332 of file hydro.h.

◆ m

◆ pressure

p force pressure = gas_pressure_from_internal_energy(p->rho, p->u)

Definition at line 372 of file hydro.h.

◆ pressure_floor

const struct cosmology const struct pressure_floor_props* pressure_floor

Definition at line 365 of file hydro.h.

Referenced by runner_do_ghost().

◆ soundspeed

◆ u

const struct cosmology const struct pressure_floor_props const float u
Initial value:
{
xp->u_full = u / cosmo->a_factor_internal_energy
struct xpart const struct cosmology const float u
Definition hydro.h:350

Definition at line 350 of file hydro.h.

◆ u_full

xp u_full = gas_internal_energy_from_entropy(p->rho, comoving_entropy)

Definition at line 336 of file hydro.h.

◆ v_sig

p force v_sig = MAX(p->force.v_sig, 2.f * soundspeed)

◆ xp

struct xpart * xp
Initial value:
{
return xp->u_full

Definition at line 58 of file hydro.h.

Referenced by TP::TwoPunctures::Interpolate(), and runner_do_ghost().