ASPECT
Public Member Functions | Private Attributes | List of all members
aspect::MaterialModel::internal::LateralViscosityLookup Class Reference

Public Member Functions

 LateralViscosityLookup (const std::string &filename, const MPI_Comm comm)
 
double lateral_viscosity (double depth) const
 
int get_nslices () const
 

Private Attributes

std::vector< double > values
 
double min_depth
 
double delta_depth
 
double max_depth
 

Detailed Description

A class that reads in a text file that contains the temperature-dependency of viscosity for a set of equidistant depth layers. See the data/material-model/steinberger directory for an example data file. The class can return the value for a given depth.

Definition at line 46 of file steinberger.h.

Constructor & Destructor Documentation

§ LateralViscosityLookup()

aspect::MaterialModel::internal::LateralViscosityLookup::LateralViscosityLookup ( const std::string &  filename,
const MPI_Comm  comm 
)

Read in a file.

Member Function Documentation

§ lateral_viscosity()

double aspect::MaterialModel::internal::LateralViscosityLookup::lateral_viscosity ( double  depth) const

Returns a temperature-dependency for a given depth.

§ get_nslices()

int aspect::MaterialModel::internal::LateralViscosityLookup::get_nslices ( ) const

Number of depth slices of the read file.

Member Data Documentation

§ values

std::vector<double> aspect::MaterialModel::internal::LateralViscosityLookup::values
private

Stored values

Definition at line 68 of file steinberger.h.

§ min_depth

double aspect::MaterialModel::internal::LateralViscosityLookup::min_depth
private

Stored bounds an depths.

Definition at line 73 of file steinberger.h.

§ delta_depth

double aspect::MaterialModel::internal::LateralViscosityLookup::delta_depth
private

Definition at line 74 of file steinberger.h.

§ max_depth

double aspect::MaterialModel::internal::LateralViscosityLookup::max_depth
private

Definition at line 75 of file steinberger.h.


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