ASPECT
|
Namespaces | |
aspect::MaterialModel | |
Macros | |
#define | ASPECT_REGISTER_MATERIAL_MODEL(classname, name, description) |
Functions | |
template<int dim> | |
void | aspect::MaterialModel::register_material_model (const std::string &name, const std::string &description, void(*declare_parameters_function)(ParameterHandler &), std::unique_ptr< Interface< dim >>(*factory_function)()) |
template<int dim> | |
std::unique_ptr< Interface< dim > > | aspect::MaterialModel::create_material_model (const std::string &model_name) |
template<int dim> | |
std::unique_ptr< Interface< dim > > | aspect::MaterialModel::create_material_model (ParameterHandler &prm) |
template<int dim> | |
void | aspect::MaterialModel::declare_parameters (ParameterHandler &prm) |
This group contains all classes, namespaces and functions that have to do with modeling the material properties of the fluid under consideration, as well as all of the other variables in use such as compositional fields. This includes handling all input parameters related to the material, as well as describing how density, viscosity, and many other parameters depend on pressure, temperature, and/or position within the fluid.
#define ASPECT_REGISTER_MATERIAL_MODEL | ( | classname, | |
name, | |||
description | |||
) |
Given a class name, a name, and a description for the parameter file for a material model, register it with the functions that can declare their parameters and create these objects.
Definition at line 1528 of file interface.h.
void aspect::MaterialModel::register_material_model | ( | const std::string & | name, |
const std::string & | description, | ||
void(*)(ParameterHandler &) | declare_parameters_function, | ||
std::unique_ptr< Interface< dim >>(*)() | factory_function | ||
) |
Register a material model so that it can be selected from the parameter file.
name | A string that identifies the material model |
description | A text description of what this model does and that will be listed in the documentation of the parameter file. |
declare_parameters_function | A pointer to a function that can be used to declare the parameters that this material model wants to read from input files. |
factory_function | A pointer to a function that can create an object of this material model. |
std::unique_ptr<Interface<dim> > aspect::MaterialModel::create_material_model | ( | const std::string & | model_name | ) |
A function that given the name of a model returns a pointer to an object that describes it. Ownership of the pointer is transferred to the caller.
The material model object returned is not yet initialized and has not read its runtime parameters yet.
std::unique_ptr<Interface<dim> > aspect::MaterialModel::create_material_model | ( | ParameterHandler & | prm | ) |
A function that reads the name of a model from the parameter object and then returns a pointer to an object that describes this model. Ownership of the pointer is transferred to the caller.
The material model object returned is not yet initialized and has not read its runtime parameters yet.
void aspect::MaterialModel::declare_parameters | ( | ParameterHandler & | prm | ) |
Declare the runtime parameters of the registered material models.