Abstract class to define by user various problem data. More...
Public Member Functions | |
| UserData () | |
| Default Constructor. | |
| UserData (const class Mesh &mesh) | |
| Constructor using mesh instance. | |
| virtual | ~UserData () |
| Destructor. | |
| void | setTime (double time) |
| Set time value. | |
| void | setDBC (Vect< T_ > &b) |
| Set Dirichlet Boundary Conditions. | |
| void | setInitialData (Vect< T_ > &b) |
| Set initial data. | |
| void | setBodyForce (Vect< T_ > &b) |
| Set Nodewise Body Force using a Vect instance. | |
| void | setSurfaceForce (Vect< T_ > &b) |
| Set Surface Force. | |
| virtual T_ | BoundaryCondition (const Point< double > &x, int code, double time=0., size_t dof=1) |
| Define boundary condition to impose at point of coordinate x, with code code at time time, for DOF dof. | |
| virtual T_ | BodyForce (const Point< double > &x, double time=0., size_t dof=1) |
| Define body force to impose at point of coordinate x, with code code at time time, for DOF dof. | |
| virtual T_ | SurfaceForce (const Point< double > &x, int code, double time=0., size_t dof=1) |
| Define surface force to impose at point of coordinate x, with code code at time time, for DOF dof. | |
| virtual T_ | InitialData (const Point< double > &x, size_t dof=1) |
| Define initial data to impose at point of coordinate x, for DOF dof. | |
Detailed Description
template<class T_>
class OFELI::UserData< T_ >
Abstract class to define by user various problem data.
The user has to implement a class that derives from the present one where the virtual functions are implemented.
- Template Parameters:
-
<T_> Data type (double, float, complex<double>, ...)
Member Function Documentation
| void setBodyForce | ( | Vect< T_ > & | b | ) |
Set Nodewise Body Force using a Vect instance.
- Parameters:
-
[in] b Vector containing body forces at nodes to impose
| virtual T_ BoundaryCondition | ( | const Point< double > & | x, |
| int | code, | ||
| double | time = 0., |
||
| size_t | dof = 1 |
||
| ) | [virtual] |
Define boundary condition to impose at point of coordinate x, with code code at time time, for DOF dof.
Function to implement by user
Define body force to impose at point of coordinate x, with code code at time time, for DOF dof.
Function to implement by user
| virtual T_ SurfaceForce | ( | const Point< double > & | x, |
| int | code, | ||
| double | time = 0., |
||
| size_t | dof = 1 |
||
| ) | [virtual] |
Define surface force to impose at point of coordinate x, with code code at time time, for DOF dof.
Function to implement by user
| virtual T_ InitialData | ( | const Point< double > & | x, |
| size_t | dof = 1 |
||
| ) | [virtual] |
Define initial data to impose at point of coordinate x, for DOF dof.
Function to implement by user
- OFELI
- UserData