ASPECT
|
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 |
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.
aspect::MaterialModel::internal::LateralViscosityLookup::LateralViscosityLookup | ( | const std::string & | filename, |
const MPI_Comm | comm | ||
) |
Read in a file.
double aspect::MaterialModel::internal::LateralViscosityLookup::lateral_viscosity | ( | double | depth | ) | const |
Returns a temperature-dependency for a given depth.
int aspect::MaterialModel::internal::LateralViscosityLookup::get_nslices | ( | ) | const |
Number of depth slices of the read file.
|
private |
Stored values
Definition at line 68 of file steinberger.h.
|
private |
Stored bounds an depths.
Definition at line 73 of file steinberger.h.
|
private |
Definition at line 74 of file steinberger.h.
|
private |
Definition at line 75 of file steinberger.h.