Prescription Class Reference
[Input/Output]
#include <Prescription.h>
Detailed Description
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.
Public Member Functions | |
| int | get (int type, Vect< double > &v, double time=0, size_t dof=0) |
| Read data in the given file and stores in a Vect instance for a chosen DOF. | |
| int | get (int type, SideVect< double > &v, double time=0) |
| Read data in the given file and stores in a SideVect instance. | |
| int | get (int type, NodeVect< double > &v, double time=0) |
| Read data in the given file and stores in a NodeVect instance. | |
| Prescription (Mesh &mesh, const string &file) | |
| Constructor that gives an instance of class Mesh and the data file name. | |
| Prescription () | |
| Default constructor. | |
| ~Prescription () | |
| Destructor. | |
Constructor & Destructor Documentation
| Prescription | ( | Mesh & | mesh, | |
| const string & | file | |||
| ) |
Member Function Documentation
| int get | ( | int | type, | |
| Vect< double > & | v, | |||
| double | time = 0, |
|||
| size_t | dof = 0 | |||
| ) |
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.
- Parameters:
-
[in] type Type of data to seek. To choose among the enumerated values: - BOUNDARY_CONDITION : Read values for (Dirichlet) boundary conditions
-
BOUNDARY_FORCE : Read values for boundary force (Neumann boundary condition).
The values TRACTION and FLUX have the same effect. -
BODY_FORCE : Read values for body (or volume) forces.
The value SOURCE has the same effect. - POINT_FORCE : Read values for pointwise forces
- INITIAL_FIELD : Read values for initial solution
[in,out] v NodeVect instance that is instantiatd on input and filled on output [in] time Value of time for which data is read (Default value is 0). [in] dof DOF to store (Default is 0: All DOFs are chosen).
| int get | ( | int | type, | |
| SideVect< double > & | v, | |||
| double | time = 0 | |||
| ) |
Read data in the given file and stores in a SideVect instance.
The input value type determines the type of data to read.
- Parameters:
-
[in] type Type of data to seek. To choose among the enumerated values: - BOUNDARY_CONDITION : Read values for (Dirichlet) boundary conditions
-
BOUNDARY_FORCE : Read values for boundary force (Neumann boundary condition).
The values TRACTION and FLUX have the same effect. -
BODY_FORCE : Read values for body (or volume) forces.
The value SOURCE has the same effect. - POINT_FORCE : Read values for pointwise forces
- INITIAL_FIELD : Read values for initial solution
[in,out] v NodeVect instance that is instantiatd on input and filled on output [in] time Value of time for which data is read.
| int get | ( | int | type, | |
| NodeVect< double > & | v, | |||
| double | time = 0 | |||
| ) |
Read data in the given file and stores in a NodeVect instance.
The input value type determines the type of data to read.
- Parameters:
-
[in] type Type of data to seek. To choose among the enumerated values: - BOUNDARY_CONDITION : Read values for (Dirichlet) boundary conditions
-
BOUNDARY_FORCE : Read values for boundary force (Neumann boundary condition).
The values TRACTION and FLUX have the same effect. -
BODY_FORCE : Read values for body (or volume) forces.
The value SOURCE has the same effect. - POINT_FORCE : Read values for pointwise forces
- INITIAL_FIELD : Read values for initial solution
[in,out] v NodeVect instance that is instantiatd on input and filled on output [in] time Value of time for which data is read.