eos.c file
Functions
-
auto vm_eos_ideal_n_avx2(vm_
float_ t* p, vm_ float_ t* c, const vm_ ideal_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool -
auto vm_eos_stiffened_n_avx2(vm_
float_ t* p, vm_ float_ t* c, const vm_ stiff_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool -
auto vm_eos_ideal_n_neon(vm_
float_ t* p, vm_ float_ t* c, const vm_ ideal_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool -
auto vm_eos_stiffened_n_neon(vm_
float_ t* p, vm_ float_ t* c, const vm_ stiff_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool -
static auto eos_fail_item(const vm_
eos_ state* st) -> bool -
static auto finish(vm_
eos_ state* out, const vm_ float_ t p, const vm_ float_ t c2) -> bool -
auto vm_eos_ideal(vm_
eos_ state* out, const vm_ ideal_ gas* eos, vm_ float_ t rho, vm_ float_ t e) -> bool - Ideal-gas pressure and sound speed.
-
auto vm_eos_stiffened(vm_
eos_ state* out, const vm_ stiff_ gas* eos, vm_ float_ t rho, vm_ float_ t e) -> bool - Stiffened-gas pressure and sound speed.
-
auto vm_eos_mie(vm_
eos_ state* out, const vm_ mie* eos, vm_ float_ t rho, vm_ float_ t e) -> bool - Mie–Grüneisen pressure and sound speed on a linear Hugoniot.
-
auto vm_eos_jwl(vm_
eos_ state* out, const vm_ jwl* eos, vm_ float_ t rho, vm_ float_ t e) -> bool - Jones–Wilkins–Lee pressure and sound speed.
-
auto vm_eos_ideal_n(vm_
float_ t* p, vm_ float_ t* c, const vm_ ideal_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool - Batched ideal gas.
-
auto vm_eos_stiffened_n(vm_
float_ t* p, vm_ float_ t* c, const vm_ stiff_ gas* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool - Batched stiffened gas.
-
auto vm_eos_mie_n(vm_
float_ t* p, vm_ float_ t* c, const vm_ mie* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool - Batched Mie–Grüneisen.
-
auto vm_eos_jwl_n(vm_
float_ t* p, vm_ float_ t* c, const vm_ jwl* eos, const vm_ float_ t* rho, int rho_stride, const vm_ float_ t* e, int e_stride, int n) -> bool - Batched Jones–Wilkins–Lee.
Function documentation
bool vm_eos_ideal(vm_ eos_ state* out,
const vm_ ideal_ gas* eos,
vm_ float_ t rho,
vm_ float_ t e)
Ideal-gas pressure and sound speed.
| Returns | false if density is non-positive, gamma is not > 1, or $c^2 < 0$. |
|---|
bool vm_eos_stiffened(vm_ eos_ state* out,
const vm_ stiff_ gas* eos,
vm_ float_ t rho,
vm_ float_ t e)
Stiffened-gas pressure and sound speed.
| Returns | false if density is non-positive, gamma is not > 1, or $c^2 < 0$. |
|---|
bool vm_eos_mie(vm_ eos_ state* out,
const vm_ mie* eos,
vm_ float_ t rho,
vm_ float_ t e)
Mie–Grüneisen pressure and sound speed on a linear Hugoniot.
| Returns | false if density or reference density is non-positive, or $c^2 < 0$. |
|---|
bool vm_eos_jwl(vm_ eos_ state* out,
const vm_ jwl* eos,
vm_ float_ t rho,
vm_ float_ t e)
Jones–Wilkins–Lee pressure and sound speed.
| Returns | false if density or reference density is non-positive, or $c^2 < 0$. |
|---|
bool vm_eos_ideal_n(vm_ float_ t* p,
vm_ float_ t* c,
const vm_ ideal_ gas* eos,
const vm_ float_ t* rho,
int rho_stride,
const vm_ float_ t* e,
int e_stride,
int n)
Batched ideal gas.
| Returns | false if n is non-positive, gamma is not > 1, or any item fails. |
|---|
bool vm_eos_stiffened_n(vm_ float_ t* p,
vm_ float_ t* c,
const vm_ stiff_ gas* eos,
const vm_ float_ t* rho,
int rho_stride,
const vm_ float_ t* e,
int e_stride,
int n)
Batched stiffened gas.
| Returns | false if n is non-positive, gamma is not > 1, or any item fails. |
|---|
bool vm_eos_mie_n(vm_ float_ t* p,
vm_ float_ t* c,
const vm_ mie* eos,
const vm_ float_ t* rho,
int rho_stride,
const vm_ float_ t* e,
int e_stride,
int n)
Batched Mie–Grüneisen.
| Returns | false if n is non-positive or any item fails. |
|---|
Scalar; the per-item branch stays.
bool vm_eos_jwl_n(vm_ float_ t* p,
vm_ float_ t* c,
const vm_ jwl* eos,
const vm_ float_ t* rho,
int rho_stride,
const vm_ float_ t* e,
int e_stride,
int n)
Batched Jones–Wilkins–Lee.
| Returns | false if n is non-positive or any item fails. |
|---|
Scalar.