SpECTRE
v2025.03.17
|
Items related to solving for irrotational bns initial data See e.g. [14] Ch. 15 (P. 523) More...
Functions | |
template<typename DataType > | |
void | rotational_shift (gsl::not_null< tnsr::I< DataType, 3 > * > result, const tnsr::I< DataType, 3 > &shift, const tnsr::I< DataType, 3 > &spatial_rotational_killing_vector) |
Compute the shift plus a spatial vector | |
template<typename DataType > | |
tnsr::I< DataType, 3 > | rotational_shift (const tnsr::I< DataType, 3 > &shift, const tnsr::I< DataType, 3 > &spatial_rotational_killing_vector) |
Compute the shift plus a spatial vector | |
template<typename DataType > | |
void | rotational_shift_stress (gsl::not_null< tnsr::II< DataType, 3 > * > result, const tnsr::I< DataType, 3 > &rotational_shift, const Scalar< DataType > &lapse) |
Compute the stress-energy corresponding to the rotation shift. (this has no corresponding equation number in [14], it is defined for convenience in evaluating fluxes and sources for the DG scheme.) More... | |
template<typename DataType > | |
tnsr::II< DataType, 3 > | rotational_shift_stress (const tnsr::I< DataType, 3 > &rotational_shift, const Scalar< DataType > &lapse) |
Compute the stress-energy corresponding to the rotation shift. (this has no corresponding equation number in [14], it is defined for convenience in evaluating fluxes and sources for the DG scheme.) More... | |
template<typename DataType > | |
void | derivative_rotational_shift_over_lapse_squared (gsl::not_null< tnsr::iJ< DataType, 3 > * > result, const tnsr::I< DataType, 3 > &rotational_shift, const tnsr::iJ< DataType, 3 > &deriv_of_shift, const Scalar< DataType > &lapse, const tnsr::i< DataType, 3 > &deriv_of_lapse, const tnsr::iJ< DataType, 3 > &deriv_of_spatial_rotational_killing_vector) |
Compute derivative | |
template<typename DataType > | |
tnsr::iJ< DataType, 3 > | derivative_rotational_shift_over_lapse_squared (const tnsr::I< DataType, 3 > &rotational_shift, const tnsr::iJ< DataType, 3 > &deriv_of_shift, const Scalar< DataType > &lapse, const tnsr::i< DataType, 3 > &deriv_of_lapse, const tnsr::iJ< DataType, 3 > &deriv_of_spatial_rotational_killing_vector) |
Compute derivative | |
template<typename DataType > | |
void | specific_enthalpy_squared (gsl::not_null< Scalar< DataType > * > result, const tnsr::I< DataType, 3 > &rotational_shift, const Scalar< DataType > &lapse, const tnsr::i< DataType, 3 > &velocity_potential_gradient, const tnsr::II< DataType, 3 > &inverse_spatial_metric, double euler_enthalpy_constant) |
Compute the specific enthalpy squared from other hydro variables and the spacetime. More... | |
template<typename DataType > | |
Scalar< DataType > | specific_enthalpy_squared (const tnsr::I< DataType, 3 > &rotational_shift, const Scalar< DataType > &lapse, const tnsr::i< DataType, 3 > &velocity_potential_gradient, const tnsr::II< DataType, 3 > &inverse_spatial_metric, double euler_enthalpy_constant) |
Compute the specific enthalpy squared from other hydro variables and the spacetime. More... | |
template<typename DataType > | |
void | spatial_rotational_killing_vector (gsl::not_null< tnsr::I< DataType, 3 > * > result, const tnsr::I< DataType, 3 > &x, double orbital_angular_velocity, const Scalar< DataType > &sqrt_det_spatial_metric) |
Compute the spatial rotational killing vector associated with uniform rotation around the z-axis. More... | |
template<typename DataType > | |
tnsr::I< DataType, 3 > | spatial_rotational_killing_vector (const tnsr::I< DataType, 3 > &x, double orbital_angular_velocity, const Scalar< DataType > &sqrt_det_spatial_metric) |
Compute the spatial rotational killing vector associated with uniform rotation around the z-axis. More... | |
template<typename DataType > | |
void | divergence_spatial_rotational_killing_vector (gsl::not_null< Scalar< DataType > * > result, const tnsr::I< DataType, 3 > &x, double orbital_angular_velocity, const Scalar< DataType > &sqrt_det_spatial_metric) |
The spatial derivative of the spatial rotational killing vector. More... | |
template<typename DataType > | |
Scalar< DataType > | divergence_spatial_rotational_killing_vector (const tnsr::I< DataType, 3 > &x, double orbital_angular_velocity, const Scalar< DataType > &sqrt_det_spatial_metric) |
The spatial derivative of the spatial rotational killing vector. More... | |
Items related to solving for irrotational bns initial data See e.g. [14] Ch. 15 (P. 523)
tnsr::iJ< DataType, 3 > hydro::initial_data::irrotational_bns::derivative_rotational_shift_over_lapse_squared | ( | const tnsr::I< DataType, 3 > & | rotational_shift, |
const tnsr::iJ< DataType, 3 > & | deriv_of_shift, | ||
const Scalar< DataType > & | lapse, | ||
const tnsr::i< DataType, 3 > & | deriv_of_lapse, | ||
const tnsr::iJ< DataType, 3 > & | deriv_of_spatial_rotational_killing_vector | ||
) |
Compute derivative
Here
void hydro::initial_data::irrotational_bns::derivative_rotational_shift_over_lapse_squared | ( | gsl::not_null< tnsr::iJ< DataType, 3 > * > | result, |
const tnsr::I< DataType, 3 > & | rotational_shift, | ||
const tnsr::iJ< DataType, 3 > & | deriv_of_shift, | ||
const Scalar< DataType > & | lapse, | ||
const tnsr::i< DataType, 3 > & | deriv_of_lapse, | ||
const tnsr::iJ< DataType, 3 > & | deriv_of_spatial_rotational_killing_vector | ||
) |
Compute derivative
Here
Scalar< DataType > hydro::initial_data::irrotational_bns::divergence_spatial_rotational_killing_vector | ( | const tnsr::I< DataType, 3 > & | x, |
double | orbital_angular_velocity, | ||
const Scalar< DataType > & | sqrt_det_spatial_metric | ||
) |
The spatial derivative of the spatial rotational killing vector.
As for spatial_rotational_killing_vector
, assumes uniform rotation around the z-axis
void hydro::initial_data::irrotational_bns::divergence_spatial_rotational_killing_vector | ( | gsl::not_null< Scalar< DataType > * > | result, |
const tnsr::I< DataType, 3 > & | x, | ||
double | orbital_angular_velocity, | ||
const Scalar< DataType > & | sqrt_det_spatial_metric | ||
) |
The spatial derivative of the spatial rotational killing vector.
As for spatial_rotational_killing_vector
, assumes uniform rotation around the z-axis
tnsr::II< DataType, 3 > hydro::initial_data::irrotational_bns::rotational_shift_stress | ( | const tnsr::I< DataType, 3 > & | rotational_shift, |
const Scalar< DataType > & | lapse | ||
) |
Compute the stress-energy corresponding to the rotation shift. (this has no corresponding equation number in [14], it is defined for convenience in evaluating fluxes and sources for the DG scheme.)
void hydro::initial_data::irrotational_bns::rotational_shift_stress | ( | gsl::not_null< tnsr::II< DataType, 3 > * > | result, |
const tnsr::I< DataType, 3 > & | rotational_shift, | ||
const Scalar< DataType > & | lapse | ||
) |
Compute the stress-energy corresponding to the rotation shift. (this has no corresponding equation number in [14], it is defined for convenience in evaluating fluxes and sources for the DG scheme.)
tnsr::I< DataType, 3 > hydro::initial_data::irrotational_bns::spatial_rotational_killing_vector | ( | const tnsr::I< DataType, 3 > & | x, |
double | orbital_angular_velocity, | ||
const Scalar< DataType > & | sqrt_det_spatial_metric | ||
) |
Compute the spatial rotational killing vector associated with uniform rotation around the z-axis.
Taking
void hydro::initial_data::irrotational_bns::spatial_rotational_killing_vector | ( | gsl::not_null< tnsr::I< DataType, 3 > * > | result, |
const tnsr::I< DataType, 3 > & | x, | ||
double | orbital_angular_velocity, | ||
const Scalar< DataType > & | sqrt_det_spatial_metric | ||
) |
Compute the spatial rotational killing vector associated with uniform rotation around the z-axis.
Taking
Scalar< DataType > hydro::initial_data::irrotational_bns::specific_enthalpy_squared | ( | const tnsr::I< DataType, 3 > & | rotational_shift, |
const Scalar< DataType > & | lapse, | ||
const tnsr::i< DataType, 3 > & | velocity_potential_gradient, | ||
const tnsr::II< DataType, 3 > & | inverse_spatial_metric, | ||
double | euler_enthalpy_constant | ||
) |
Compute the specific enthalpy squared from other hydro variables and the spacetime.
The eqn. is identical in content to [14] 15.76, it computes the specific enthalpy
Where
void hydro::initial_data::irrotational_bns::specific_enthalpy_squared | ( | gsl::not_null< Scalar< DataType > * > | result, |
const tnsr::I< DataType, 3 > & | rotational_shift, | ||
const Scalar< DataType > & | lapse, | ||
const tnsr::i< DataType, 3 > & | velocity_potential_gradient, | ||
const tnsr::II< DataType, 3 > & | inverse_spatial_metric, | ||
double | euler_enthalpy_constant | ||
) |
Compute the specific enthalpy squared from other hydro variables and the spacetime.
The eqn. is identical in content to [14] 15.76, it computes the specific enthalpy
Where