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

Public Member Functions

 RadialViscosityLookup (const std::string &filename, const MPI_Comm comm)
 
double radial_viscosity (double depth) 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 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 85 of file steinberger.h.

Constructor & Destructor Documentation

§ RadialViscosityLookup()

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

Constructor. Reads in the given file.

Member Function Documentation

§ radial_viscosity()

double aspect::MaterialModel::internal::RadialViscosityLookup::radial_viscosity ( double  depth) const

Return the viscosity for a given depth.

Member Data Documentation

§ values

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

Stored data values.

Definition at line 103 of file steinberger.h.

§ min_depth

double aspect::MaterialModel::internal::RadialViscosityLookup::min_depth
private

Depth bounds for the read in values.

Definition at line 108 of file steinberger.h.

§ delta_depth

double aspect::MaterialModel::internal::RadialViscosityLookup::delta_depth
private

Definition at line 109 of file steinberger.h.

§ max_depth

double aspect::MaterialModel::internal::RadialViscosityLookup::max_depth
private

Definition at line 110 of file steinberger.h.


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