OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
#include <userdefdirichletbc.h>
Public Member Functions | |
UserDefDirichletBC (int i, Domain *d) | |
Constructor. More... | |
virtual | ~UserDefDirichletBC () |
Destructor. More... | |
virtual double | give (Dof *dof, ValueModeType mode, double time) |
virtual bcType | giveType () const |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | giveInputRecord (DynamicInputRecord &input) |
Setups the input record string of receiver. More... | |
virtual void | scale (double s) |
Scales the receiver according to given value. More... | |
virtual const char * | giveClassName () const |
virtual const char * | giveInputRecordName () const |
Public Member Functions inherited from oofem::BoundaryCondition | |
BoundaryCondition (int i, Domain *d) | |
Constructor. More... | |
virtual | ~BoundaryCondition () |
Destructor. More... | |
virtual double | give (Dof *dof, ValueModeType mode, TimeStep *tStep) |
Returns the value of a prescribed unknown, respecting requested mode for given time. More... | |
void | setPrescribedValue (double s) |
Set prescribed value at the input record string of receiver. More... | |
virtual contextIOResultType | saveContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Stores receiver state to output stream. More... | |
virtual contextIOResultType | restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Restores the receiver state previously written in stream. More... | |
Public Member Functions inherited from oofem::GeneralBoundaryCondition | |
GeneralBoundaryCondition (int n, Domain *d) | |
Constructor. More... | |
virtual | ~GeneralBoundaryCondition () |
Destructor. More... | |
int | giveSetNumber () |
Gives the set number which boundary condition is applied to. More... | |
virtual int | giveNumberOfInternalDofManagers () |
Gives the number of internal dof managers. More... | |
virtual DofManager * | giveInternalDofManager (int i) |
Gives an internal dof manager from receiver. More... | |
Function * | giveTimeFunction () |
virtual bcValType | giveBCValType () const |
Returns receiver load type. More... | |
virtual bool | isImposed (TimeStep *tStep) |
Returns nonzero if receiver representing BC is imposed at given time, otherwise returns zero. More... | |
virtual const IntArray & | giveDofIDs () const |
Array with default dofs which b.c. More... | |
virtual bcGeomType | giveBCGeoType () const |
Returns geometry character of boundary condition. More... | |
virtual void | postInitialize () |
Performs post initialization steps. More... | |
Public Member Functions inherited from oofem::FEMComponent | |
FEMComponent (int n, Domain *d) | |
Regular constructor, creates component with given number and belonging to given domain. More... | |
virtual | ~FEMComponent () |
Virtual destructor. More... | |
Domain * | giveDomain () const |
virtual void | setDomain (Domain *d) |
Sets associated Domain. More... | |
int | giveNumber () const |
void | setNumber (int num) |
Sets number of receiver. More... | |
virtual void | updateLocalNumbering (EntityRenumberingFunctor &f) |
Local renumbering support. More... | |
virtual int | checkConsistency () |
Allows programmer to test some internal data, before computation begins. More... | |
virtual void | printOutputAt (FILE *file, TimeStep *tStep) |
Prints output of receiver to stream, for given time step. More... | |
virtual void | printYourself () |
Prints receiver state on stdout. Useful for debugging. More... | |
virtual Interface * | giveInterface (InterfaceType t) |
Interface requesting service. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
FloatArray | values |
Prescribed values for each resp. dof. More... | |
PyObject * | mpModule |
PyObject * | mpFunc |
std::string | mFileName |
Protected Attributes inherited from oofem::BoundaryCondition | |
FloatArray | values |
Prescribed values for each resp. dof. More... | |
Protected Attributes inherited from oofem::GeneralBoundaryCondition | |
int | timeFunction |
Associated load time function. More... | |
bcValType | valType |
Physical meaning of BC value. More... | |
IntArray | dofs |
Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s). More... | |
int | isImposedTimeFunction |
Zero by default - the BC is than always imposed. More... | |
int | set |
Set number for boundary condition to be applied to. More... | |
Protected Attributes inherited from oofem::FEMComponent | |
int | number |
Component number. More... | |
Domain * | domain |
Link to domain object, useful for communicating with other FEM components. More... | |
Definition at line 75 of file userdefdirichletbc.h.
oofem::UserDefDirichletBC::UserDefDirichletBC | ( | int | i, |
Domain * | d | ||
) |
Constructor.
Creates boundary condition with given number, belonging to given domain.
i | Boundary condition number. |
d | Domain to which new object will belongs. |
Definition at line 52 of file userdefdirichletbc.C.
|
virtual |
|
virtual |
Reimplemented from oofem::BoundaryCondition.
Definition at line 63 of file userdefdirichletbc.C.
References oofem::Function::evaluateAccelerationAtTime(), oofem::Function::evaluateAtTime(), oofem::Function::evaluateVelocityAtTime(), oofem::DofManager::giveCoordinate(), oofem::DofManager::giveCoordinates(), oofem::Dof::giveDofID(), oofem::Dof::giveDofManager(), oofem::FloatArray::giveSize(), oofem::GeneralBoundaryCondition::giveTimeFunction(), mpFunc, and OOFEM_ERROR.
|
inlinevirtual |
Reimplemented from oofem::BoundaryCondition.
Definition at line 104 of file userdefdirichletbc.h.
|
virtual |
Setups the input record string of receiver.
input | Dynamic input record to be filled by receiver. |
Reimplemented from oofem::BoundaryCondition.
Definition at line 167 of file userdefdirichletbc.C.
References _IFT_UserDefDirichletBC_filename, oofem::GeneralBoundaryCondition::giveInputRecord(), mFileName, and oofem::DynamicInputRecord::setField().
|
inlinevirtual |
Reimplemented from oofem::BoundaryCondition.
Definition at line 105 of file userdefdirichletbc.h.
References _IFT_UserDefDirichletBC_Name.
|
inlinevirtual |
Reimplemented from oofem::BoundaryCondition.
Definition at line 100 of file userdefdirichletbc.h.
References oofem::DirichletBT.
|
virtual |
Initializes receiver according to object description stored in input record.
This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.
ir | Input record to initialize from. |
Reimplemented from oofem::BoundaryCondition.
Definition at line 132 of file userdefdirichletbc.C.
References _IFT_UserDefDirichletBC_filename, oofem::GeneralBoundaryCondition::initializeFrom(), IR_GIVE_FIELD, oofem::IRRT_BAD_FORMAT, oofem::IRRT_OK, mFileName, mpFunc, mpModule, and OOFEM_WARNING.
|
virtual |
Scales the receiver according to given value.
Typically used in nondimensional analysis to scale down BCs and ICs.
s | Scale factor. |
Reimplemented from oofem::BoundaryCondition.
Definition at line 175 of file userdefdirichletbc.C.
References oofem::FloatArray::times(), and values.
|
protected |
Definition at line 84 of file userdefdirichletbc.h.
Referenced by giveInputRecord(), and initializeFrom().
|
protected |
Definition at line 82 of file userdefdirichletbc.h.
Referenced by give(), and initializeFrom().
|
protected |
Definition at line 81 of file userdefdirichletbc.h.
Referenced by initializeFrom(), and ~UserDefDirichletBC().
|
protected |
Prescribed values for each resp. dof.
Definition at line 79 of file userdefdirichletbc.h.
Referenced by scale().