ASPECT
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
aspect::MaterialModel::Rheology::ConstantViscosity Class Reference

Public Member Functions

 ConstantViscosity ()
 
void parse_parameters (ParameterHandler &prm)
 
double compute_viscosity () const
 

Static Public Member Functions

static void declare_parameters (ParameterHandler &prm, const double default_viscosity=1e21)
 

Private Attributes

double viscosity
 

Detailed Description

Definition at line 34 of file constant_viscosity.h.

Constructor & Destructor Documentation

§ ConstantViscosity()

aspect::MaterialModel::Rheology::ConstantViscosity::ConstantViscosity ( )

Constructor. Initializes viscosity to NaN.

Member Function Documentation

§ declare_parameters()

static void aspect::MaterialModel::Rheology::ConstantViscosity::declare_parameters ( ParameterHandler &  prm,
const double  default_viscosity = 1e21 
)
static

Declare the parameters this function takes through input files.

§ parse_parameters()

void aspect::MaterialModel::Rheology::ConstantViscosity::parse_parameters ( ParameterHandler &  prm)

Read the parameters from the parameter file.

§ compute_viscosity()

double aspect::MaterialModel::Rheology::ConstantViscosity::compute_viscosity ( ) const

Compute the viscosity, in this case just a constant.

Member Data Documentation

§ viscosity

double aspect::MaterialModel::Rheology::ConstantViscosity::viscosity
private

The constant viscosity that defines this rheology. It is read from the input file by the parse_parameters() function.

Definition at line 68 of file constant_viscosity.h.


The documentation for this class was generated from the following file: