To prescribe various types of data by an algebraic expression. Data may consist in boundary conditions, forces, tractions, fluxes, initial condition. All these data types can be defined through an enumerated variable. More...
Public Member Functions | |
Prescription () | |
Default constructor. | |
Prescription (Mesh &mesh, const string &file) | |
Constructor that gives an instance of class Mesh and the data file name. More... | |
~Prescription () | |
Destructor. | |
int | get (EType type, Vect< real_t > &v, real_t time=0, size_t dof=0) |
Vect< real_t > & | get (EType type, real_t time=0, size_t dof=0) |
To prescribe various types of data by an algebraic expression. Data may consist in boundary conditions, forces, tractions, fluxes, initial condition. All these data types can be defined through an enumerated variable.
Prescription | ( | Mesh & | mesh, |
const string & | file | ||
) |
Constructor that gives an instance of class Mesh and the data file name.
It reads parameters in Prescription Format from this file.
[in] | mesh | Mesh instance |
[in] | file | Name of Prescription file |
Read data in the given file and stores in a Vect instance for a chosen DOF. The input value type determines the type of data to read.
[in] | type | Type of data to seek. To choose among the enumerated values:
|
[in,out] | v | Vect instance that is instantiated on input and filled on output |
[in] | time | Value of time for which data is read [Default: 0 ]. |
[in] | dof | DOF to store (Default is 0 : All DOFs are chosen). |
Read data in the given file and returns as a Vect instance for a chosen DOF. The input value type determines the type of data to read.
[in] | type | Type of data to seek. To choose among the enumerated values:
|
[in] | time | Value of time for which data is read [Default: 0 ]. |
[in] | dof | DOF to store (Default is 0 : All DOFs are chosen). |