|
NSF Postdoctoral Research
A set of C++ code developed by Andrew E. Slaughter
|
A class containing methods for accessing libMesh::Systems This class is meant to be a inherited from other classes; hence, the constructors are all protected. More...
#include <eq_core.h>

Public Member Functions | |
| string | name () |
| The name of the system. | |
| Type & | get_system () |
| Returns a reference to the system created by this class. | |
| template<typename ParamType > | |
| ParamType | get_constant (string name) |
| Template function for extracting heat equation parameter. | |
| template<typename ParamType > | |
| void | set_constant (string name, ParamType var) |
| Template function for setting a heat equation parameter. | |
Protected Member Functions | |
| EqCore (EquationSystems &sys, string name) | |
| General class constructor for non-existing systems. | |
| EqCore (EquationSystems &sys) | |
| A private constructor for existing systems. | |
Protected Attributes | |
| EquationSystems & | eq_sys |
| A reference to the equation system passed in at construction. | |
| string | name_ |
| The name of the system created by the class. | |
A class containing methods for accessing libMesh::Systems This class is meant to be a inherited from other classes; hence, the constructors are all protected.
| SlaughterFEM::EqCore< Type >::EqCore | ( | EquationSystems & | sys, |
| string | name | ||
| ) | [inline, protected] |
General class constructor for non-existing systems.
This constructor takes the system name as an argument, as such it automatically creates the system.
| Type | The type of libMesh::System (e.g., ExplicitSystem) |
| sys | libMesh::EquationSystems object that will contain the libMesh::System created |
| name | A string containing the system name to be created |
| SlaughterFEM::EqCore< Type >::EqCore | ( | EquationSystems & | sys | ) | [inline, protected] |
A private constructor for existing systems.
This constructor is useful for inherited classes that extract the use an existing system, as is the case with the EqVariableLinker class.
| Type | The type of libMesh::System (e.g., ExplicitSystem) |
| sys | libMesh::EquationSystems object that will contain the libMesh::System created |
| ParamType SlaughterFEM::EqCore< Type >::get_constant | ( | string | name | ) | [inline] |
Template function for extracting heat equation parameter.
| ParamType | The type of parameter being extracted (e.g., double) |
| name | The name of the parameter (e.g., "density") |
The primary reason for this is for future expansion to allow for parameters that vary with space and time.
| Type& SlaughterFEM::EqCore< Type >::get_system | ( | ) | [inline] |
Returns a reference to the system created by this class.
This function simply acts a short-cut for gathering the system that was generated in the class constructor rather than getting it from the supplied EquationSystems object.
| string SlaughterFEM::EqCore< Type >::name | ( | ) | [inline] |
The name of the system.
| void SlaughterFEM::EqCore< Type >::set_constant | ( | string | name, |
| ParamType | var | ||
| ) | [inline] |
Template function for setting a heat equation parameter.
| ParamType | The type of parameter being added (e.g., double) |
| name | The name of the parameter (e.g., "density") |
| var | The value of the parameter (e.g., 123) |
The primary reason for this is for future expansion to allow for parameters that vary with space and time.