|
ASPECT
|

Static Public Member Functions | |
| static void | declare_parameters (ParameterHandler &prm) |
Static Public Member Functions inherited from aspect::SimulatorAccess< dim > | |
| static void | get_composition_values_at_q_point (const std::vector< std::vector< double >> &composition_values, const unsigned int q, std::vector< double > &composition_values_at_q_point) |
Private Attributes | |
| std::vector< double > | constant_viscosity_prefactors |
A class that handles multiplication of viscosity for a given compositional field. The multiplication factors for each composition (constant viscosity prefactors) are also declared and parsed in this class.
Definition at line 40 of file constant_viscosity_prefactors.h.
| aspect::MaterialModel::Rheology::ConstantViscosityPrefactors< dim >::ConstantViscosityPrefactors | ( | ) |
Constructor.
|
static |
Declare the parameters this function takes through input files.
| void aspect::MaterialModel::Rheology::ConstantViscosityPrefactors< dim >::parse_parameters | ( | ParameterHandler & | prm | ) |
Read the parameters from the parameter file.
| double aspect::MaterialModel::Rheology::ConstantViscosityPrefactors< dim >::compute_viscosity | ( | const double | base_viscosity, |
| const unsigned int | composition_index | ||
| ) | const |
Compute the viscosity.
|
private |
The constant viscosity prefactors, which are read in from the input file by the parse_parameters() function. The total number of prefactors will be equal to one plus the number of compositional fields. The prefactor for a given compositional field is multiplied with a base_viscosity value provided by the material model, which is then returned to the material model.
Definition at line 78 of file constant_viscosity_prefactors.h.