![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Configuration for the Artificial Viscosity (AV) More...
Public Types | |
| using | Tscal = shambase::VecComponent< Tvec > |
| Type of the components of the vector of coordinates. | |
| using | None = AVConfig_None< Tscal > |
| using | Constant = AVConfig_Constant< Tscal > |
| using | VaryingMM97 = AVConfig_VaryingMM97< Tscal > |
| using | VaryingCD10 = AVConfig_VaryingCD10< Tscal > |
| using | ConstantDisc = AVConfig_ConstantDisc< Tscal > |
| using | Variant = std::variant< None, Constant, VaryingMM97, VaryingCD10, ConstantDisc > |
| Variant of all types of artificial viscosity possible. | |
Public Member Functions | |
| void | set (Variant v) |
| Set the configuration. | |
| void | set_varying_cd10 (Tscal alpha_min, Tscal alpha_max, Tscal sigma_decay, Tscal alpha_u, Tscal beta_AV) |
| Sets the configuration to use a varying Cullen & Dehnen 2010 artificial viscosity. | |
| bool | has_alphaAV_field () |
| Checks if the current configuration has an alpha artificial viscosity field. | |
| bool | has_divv_field () |
| Checks if the current configuration need the divergence of the velocity field. | |
| bool | has_curlv_field () |
| Checks if the current configuration need the curl of the velocity field. | |
| bool | has_dtdivv_field () |
| Checks if the current configuration has a dtdivv field. | |
| bool | has_field_soundspeed () |
| Checks if the current configuration requires the soundspeed field. | |
| void | print_status () |
| Prints the status of the artificial viscosity configuration. | |
| std::optional< Tscal > | get_alpha_u () |
Public Attributes | |
| Variant | config = Constant{} |
| The actual configuration (default to constant viscosity) | |
Static Public Attributes | |
| static constexpr u32 | dim = shambase::VectorProperties<Tvec>::dimension |
| Number of dimensions of the problem. | |
Configuration for the Artificial Viscosity (AV)
This struct contains the information needed to configure the Artificial Viscosity in the SPH algorithm. It is a variant of two possible types of artificial viscosity:
| Tvec | type of the vector of coordinates |
Definition at line 189 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::Constant = AVConfig_Constant<Tscal> |
Definition at line 197 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::ConstantDisc = AVConfig_ConstantDisc<Tscal> |
Definition at line 200 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::None = AVConfig_None<Tscal> |
Definition at line 196 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::Tscal = shambase::VecComponent<Tvec> |
Type of the components of the vector of coordinates.
Definition at line 192 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::Variant = std::variant<None, Constant, VaryingMM97, VaryingCD10, ConstantDisc> |
Variant of all types of artificial viscosity possible.
Definition at line 203 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::VaryingCD10 = AVConfig_VaryingCD10<Tscal> |
Definition at line 199 of file AVConfig.hpp.
| using shammodels::sph::AVConfig< Tvec >::VaryingMM97 = AVConfig_VaryingMM97<Tscal> |
Definition at line 198 of file AVConfig.hpp.
|
inline |
Definition at line 328 of file AVConfig.hpp.
|
inline |
Checks if the current configuration has an alpha artificial viscosity field.
Definition at line 230 of file AVConfig.hpp.
|
inline |
Checks if the current configuration need the curl of the velocity field.
Definition at line 254 of file AVConfig.hpp.
|
inline |
Checks if the current configuration need the divergence of the velocity field.
Definition at line 242 of file AVConfig.hpp.
|
inline |
Checks if the current configuration has a dtdivv field.
Definition at line 264 of file AVConfig.hpp.
|
inline |
Checks if the current configuration requires the soundspeed field.
Definition at line 274 of file AVConfig.hpp.
|
inline |
Prints the status of the artificial viscosity configuration.
Definition at line 290 of file AVConfig.hpp.
Here is the call graph for this function:
|
inline |
Set the configuration.
Definition at line 209 of file AVConfig.hpp.
|
inline |
Sets the configuration to use a varying Cullen & Dehnen 2010 artificial viscosity.
| alpha_min | the minimum value of alpha |
| alpha_max | the maximum value of alpha |
| sigma_decay | the decay rate of sigma |
| alpha_u | the value of alpha_u |
| beta_AV | the value of beta_AV |
Definition at line 220 of file AVConfig.hpp.
Here is the call graph for this function:| Variant shammodels::sph::AVConfig< Tvec >::config = Constant{} |
The actual configuration (default to constant viscosity)
Definition at line 206 of file AVConfig.hpp.
|
staticconstexpr |
Number of dimensions of the problem.
Definition at line 194 of file AVConfig.hpp.