OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::PointLoad Class Reference

Abstract base class representing a point load (force, momentum, ...) that acts directly on or inside of some finite element. More...

#include <pointload.h>

+ Inheritance diagram for oofem::PointLoad:
+ Collaboration diagram for oofem::PointLoad:

Public Member Functions

 PointLoad (int n, Domain *d)
 Constructor. More...
virtual void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode)
 Computes components values of load at given point - global coordinates (coordinates given). More...
const FloatArraygiveCoordinates () const
 Gives coordinates of the receiver. More...
virtual CoordSystType giveCoordSystMode ()
 Returns receiver's coordinate system. More...
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 bcType giveType () const
virtual bcGeomType giveBCGeoType () const
 Returns receiver's load geometry type. More...
virtual const char * giveClassName () const
virtual const char * giveInputRecordName () const
- Public Member Functions inherited from oofem::BodyLoad
 BodyLoad (int i, Domain *d)
 Constructor. More...
- Public Member Functions inherited from oofem::Load
 Load (int n, Domain *d)
 Constructor. More...
virtual ~Load ()
 Destructor. More...
virtual void computeComponentArrayAt (FloatArray &answer, TimeStep *tStep, ValueModeType mode)
 Computes boundary condition value - its components values at given time. More...
virtual void computeValues (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, const IntArray &dofids, ValueModeType mode)
 Computes components values for specified dof ids. More...
int isDofExcluded (int index)
 Returns the value of dofExcludeMask corresponding to given index. More...
virtual void scale (double s)
 Scales the receiver according to given value. More...
virtual FormulationType giveFormulationType ()
 Specifies is load should take local or global coordinates. More...
virtual int giveApproxOrder ()
virtual double giveProperty (int aProperty, TimeStep *tStep)
 Returns the value of a property 'aProperty'. More...
const FloatArraygiveComponentArray () const
void setComponentArray (FloatArray &arry)
- 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 DofManagergiveInternalDofManager (int i)
 Gives an internal dof manager from receiver. More...
FunctiongiveTimeFunction ()
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 IntArraygiveDofIDs () const
 Array with default dofs which b.c. More...
virtual void postInitialize ()
 Performs post initialization steps. 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::FEMComponent
 FEMComponent (int n, Domain *d)
 Regular constructor, creates component with given number and belonging to given domain. More...
virtual ~FEMComponent ()
 Virtual destructor. More...
DomaingiveDomain () 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 InterfacegiveInterface (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

bcType lType
 Load type (its physical meaning). More...
CoordSystType coordSystemType
 Load coordinate system. More...
FloatArray coords
 Additional properties (coordinates, point of application). More...
- Protected Attributes inherited from oofem::Load
FloatArray componentArray
 Components of boundary condition. More...
IntArray dofExcludeMask
 The load is specified for all dofs of object to which is associated. 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...
 Link to domain object, useful for communicating with other FEM components. More...

Additional Inherited Members

- Public Types inherited from oofem::Load
enum  CoordSystType { CST_Global, CST_Local, CST_UpdatedGlobal }
 Load coordinate system type. More...
enum  FormulationType { FT_Entity, FT_Global }
 Type determining the type of formulation (entity local or global one). More...
- Public Attributes inherited from oofem::Load
bool reference

Detailed Description

Abstract base class representing a point load (force, momentum, ...) that acts directly on or inside of some finite element.

Methods for returning values of load components and returning the position of load are provided.

This class is not restricted to structural problems. For example, in thermal analysis, a point load load could be a point heat source.

Definition at line 63 of file pointload.h.

Constructor & Destructor Documentation

oofem::PointLoad::PointLoad ( int  n,
Domain d 


Creates Boundary Load object with given number, belonging to given domain.

nLoad number.
dDomain to which new object will belongs.

Definition at line 79 of file pointload.h.

Member Function Documentation

void oofem::PointLoad::computeValueAt ( FloatArray answer,
TimeStep tStep,
const FloatArray coords,
ValueModeType  mode 

Computes components values of load at given point - global coordinates (coordinates given).

answerComponent values at given point and time.
tStepTime step representing time.
coordsGlobal (or local) problem coordinates, which are used to evaluate components values.
modeDetermines response mode.

Implements oofem::Load.

Definition at line 45 of file pointload.C.

References oofem::Load::computeComponentArrayAt(), oofem::Function::evaluate(), oofem::GeneralBoundaryCondition::giveTimeFunction(), and oofem::FloatArray::times().

Referenced by oofem::StructuralElement::computePointLoadVectorAt().

virtual bcGeomType oofem::PointLoad::giveBCGeoType ( ) const

Returns receiver's load geometry type.


Reimplemented from oofem::BodyLoad.

Definition at line 96 of file pointload.h.

References oofem::PointLoadBGT.

virtual const char* oofem::PointLoad::giveClassName ( ) const
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 97 of file pointload.h.

const FloatArray& oofem::PointLoad::giveCoordinates ( ) const

Gives coordinates of the receiver.

Definition at line 87 of file pointload.h.

Referenced by oofem::StructuralElement::computeLoadVector(), and oofem::StructuralElement::computePointLoadVectorAt().

virtual CoordSystType oofem::PointLoad::giveCoordSystMode ( )

Returns receiver's coordinate system.

Reimplemented from oofem::Load.

Definition at line 89 of file pointload.h.

Referenced by oofem::StructuralElement::computePointLoadVectorAt().

void oofem::PointLoad::giveInputRecord ( DynamicInputRecord input)

Setups the input record string of receiver.

inputDynamic input record to be filled by receiver.

Reimplemented from oofem::Load.

Definition at line 78 of file pointload.C.

References _IFT_PointLoad_coords, _IFT_PointLoad_cstype, _IFT_PointLoad_loadtype, coords, coordSystemType, oofem::Load::giveInputRecord(), lType, and oofem::DynamicInputRecord::setField().

virtual const char* oofem::PointLoad::giveInputRecordName ( ) const
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 98 of file pointload.h.

References _IFT_PointLoad_Name.

virtual bcType oofem::PointLoad::giveType ( ) const
Type of boundary condition. It allows to distinguish BC according its mathematical meaning, ie. like Dirichlet, Neumann, or Newton type.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 95 of file pointload.h.

IRResultType oofem::PointLoad::initializeFrom ( InputRecord ir)

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.

See also
irInput record to initialize from.

Reimplemented from oofem::Load.

Definition at line 57 of file pointload.C.

References _IFT_PointLoad_coords, _IFT_PointLoad_cstype, _IFT_PointLoad_loadtype, coords, coordSystemType, oofem::Load::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, and lType.

Member Data Documentation

FloatArray oofem::PointLoad::coords

Additional properties (coordinates, point of application).

Definition at line 71 of file pointload.h.

Referenced by giveInputRecord(), and initializeFrom().

CoordSystType oofem::PointLoad::coordSystemType

Load coordinate system.

Definition at line 69 of file pointload.h.

Referenced by giveInputRecord(), and initializeFrom().

bcType oofem::PointLoad::lType

Load type (its physical meaning).

Definition at line 67 of file pointload.h.

Referenced by giveInputRecord(), and initializeFrom().

The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011