UserData< T_ > Class Template Reference
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 (real_t 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. More... | |
void | setSurfaceForce (Vect< T_ > &b) |
Set Surface Force. | |
virtual T_ | BoundaryCondition (const Point< real_t > &x, int code, real_t time=0., size_t dof=1) |
Define boundary condition to impose at point of coordinates x , with code code at time time , for DOF dof More... | |
virtual T_ | BodyForce (const Point< real_t > &x, real_t time=0., size_t dof=1) |
Define body force to impose at point of coordinates x , with code code at time time , for DOF dof More... | |
virtual T_ | SurfaceForce (const Point< real_t > &x, int code, real_t time=0., size_t dof=1) |
Define surface force to impose at point of coordinates x , with code code at time time , for DOF dof More... | |
virtual T_ | InitialData (const Point< real_t > &x, size_t dof=1) |
Define initial data to impose at point of coordinates x , for DOF dof More... | |
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 (real_t, float, complex<real_t>, ...)
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 |
Define boundary condition to impose at point of coordinates x
, with code code
at time time
, for DOF dof
Function to implement by user
Define body force to impose at point of coordinates x
, with code code
at time time
, for DOF dof
Function to implement by user
|
virtual |
Define surface force to impose at point of coordinates x
, with code code
at time time
, for DOF dof
Function to implement by user