ASPECT
Public Member Functions | Private Attributes | List of all members
aspect::MaterialModel::Simpler< dim > Class Template Reference
Inheritance diagram for aspect::MaterialModel::Simpler< dim >:
Inheritance graph
[legend]

Public Member Functions

virtual bool is_compressible () const
 
virtual double reference_viscosity () const
 
virtual void evaluate (const MaterialModel::MaterialModelInputs< dim > &in, MaterialModel::MaterialModelOutputs< dim > &out) const
 
- Public Member Functions inherited from aspect::MaterialModel::Interface< dim >
virtual ~Interface ()
 
virtual void initialize ()
 
virtual void update ()
 
virtual void create_additional_named_outputs (MaterialModelOutputs &outputs) const
 
virtual void fill_additional_material_model_inputs (MaterialModel::MaterialModelInputs< dim > &input, const LinearAlgebra::BlockVector &solution, const FEValuesBase< dim > &fe_values, const Introspection< dim > &introspection) const
 
const NonlinearDependence::ModelDependenceget_model_dependence () const
 

Private Attributes

double reference_rho
 
double reference_T
 
double eta
 
double thermal_alpha
 
double reference_specific_heat
 
double k_value
 

Functions used in dealing with run-time parameters

virtual void parse_parameters (ParameterHandler &prm)
 
static void declare_parameters (ParameterHandler &prm)
 

Additional Inherited Members

- Public Types inherited from aspect::MaterialModel::Interface< dim >
typedef MaterialModel::MaterialModelInputs< dim > MaterialModelInputs
 
typedef MaterialModel::MaterialModelOutputs< dim > MaterialModelOutputs
 
- Static Public Member Functions inherited from aspect::MaterialModel::Interface< dim >
static void declare_parameters (ParameterHandler &prm)
 
- Protected Attributes inherited from aspect::MaterialModel::Interface< dim >
NonlinearDependence::ModelDependence model_dependence
 

Detailed Description

template<int dim>
class aspect::MaterialModel::Simpler< dim >

A material model that consists of globally constant values for all material parameters except the density, which depends linearly on the temperature. The model is considered incompressible.

This material model implements what the "Simple" model was originally intended to do, before it got too complicated.

Definition at line 43 of file simpler.h.

Member Function Documentation

§ is_compressible()

template<int dim>
virtual bool aspect::MaterialModel::Simpler< dim >::is_compressible ( ) const
virtual

Return whether the model is compressible or not. Incompressibility does not necessarily imply that the density is constant; rather, it may still depend on temperature or pressure. In the current context, compressibility means whether we should solve the continuity equation as $\nabla \cdot (\rho \mathbf u)=0$ (compressible Stokes) or as $\nabla \cdot \mathbf{u}=0$ (incompressible Stokes).

Implements aspect::MaterialModel::Interface< dim >.

§ reference_viscosity()

template<int dim>
virtual double aspect::MaterialModel::Simpler< dim >::reference_viscosity ( ) const
virtual

Return a reference value typical of the viscosities that appear in this model. This value is not actually used in the material description itself, but is used in scaling variables to the same numerical order of magnitude when solving linear systems. Specifically, the reference viscosity appears in the factor scaling the pressure against the velocity. It is also used in computing dimension-less quantities. You may want to take a look at the Kronbichler, Heister, Bangerth 2012 paper that describes the design of ASPECT for a description of this pressure scaling.

Note
The reference viscosity should take into account the complete constitutive relationship, defined as the scalar viscosity times the constitutive tensor. In most cases, the constitutive tensor will simply be the identity tensor (this is the default case), but this may become important for material models with anisotropic viscosities, if the constitutive tensor is not normalized.

Implements aspect::MaterialModel::Interface< dim >.

§ evaluate()

template<int dim>
virtual void aspect::MaterialModel::Simpler< dim >::evaluate ( const MaterialModel::MaterialModelInputs< dim > &  in,
MaterialModel::MaterialModelOutputs< dim > &  out 
) const
virtual

Function to compute the material properties in out given the inputs in in. If MaterialModelInputs.strain_rate has the length 0, then the viscosity does not need to be computed.

Implements aspect::MaterialModel::Interface< dim >.

§ declare_parameters()

template<int dim>
static void aspect::MaterialModel::Simpler< dim >::declare_parameters ( ParameterHandler prm)
static

Declare the parameters this class takes through input files.

§ parse_parameters()

template<int dim>
virtual void aspect::MaterialModel::Simpler< dim >::parse_parameters ( ParameterHandler prm)
virtual

Read the parameters this class declares from the parameter file.

Reimplemented from aspect::MaterialModel::Interface< dim >.

Member Data Documentation

§ reference_rho

template<int dim>
double aspect::MaterialModel::Simpler< dim >::reference_rho
private

Definition at line 77 of file simpler.h.

§ reference_T

template<int dim>
double aspect::MaterialModel::Simpler< dim >::reference_T
private

Definition at line 78 of file simpler.h.

§ eta

template<int dim>
double aspect::MaterialModel::Simpler< dim >::eta
private

Definition at line 79 of file simpler.h.

§ thermal_alpha

template<int dim>
double aspect::MaterialModel::Simpler< dim >::thermal_alpha
private

Definition at line 80 of file simpler.h.

§ reference_specific_heat

template<int dim>
double aspect::MaterialModel::Simpler< dim >::reference_specific_heat
private

Definition at line 81 of file simpler.h.

§ k_value

template<int dim>
double aspect::MaterialModel::Simpler< dim >::k_value
private

Definition at line 82 of file simpler.h.


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