OOFEM 3.0
Loading...
Searching...
No Matches
oofem::PointLoad Class Reference

#include <pointload.h>

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

Public Member Functions

 PointLoad (int n, Domain *d)
void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
const FloatArraygiveCoordinates () const
CoordSystType giveCoordSystMode () override
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
bcType giveType () const override
bcGeomType giveBCGeoType () const override
const char * giveClassName () const override
const char * giveInputRecordName () const override
Public Member Functions inherited from oofem::BodyLoad
 BodyLoad (int i, Domain *d)
Public Member Functions inherited from oofem::Load
 Load (int n, Domain *d)
virtual ~Load ()
 Destructor.
virtual void computeComponentArrayAt (FloatArray &answer, TimeStep *tStep, ValueModeType mode)
virtual void computeValueAt (FloatArray &answer, TimeStep *tStep, GaussPoint *gp, ValueModeType mode)
virtual void computeValues (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, const IntArray &dofids, ValueModeType mode)
int isDofExcluded (int index)
void scale (double s) override
virtual FormulationType giveFormulationType ()
virtual int giveApproxOrder ()
virtual double giveProperty (int aProperty, TimeStep *tStep) const override
const FloatArraygiveComponentArray () const
void setComponentArray (FloatArray &arry)
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
Public Member Functions inherited from oofem::GeneralBoundaryCondition
 GeneralBoundaryCondition (int n, Domain *d)
virtual ~GeneralBoundaryCondition ()
 Destructor.
int giveSetNumber () const
virtual int giveNumberOfInternalDofManagers ()
 Gives the number of internal dof managers.
virtual DofManagergiveInternalDofManager (int i)
 Gives an internal dof manager from receiver.
FunctiongiveTimeFunction ()
int getIsImposedTimeFunctionNumber () const
void setIsImposedTimeFunctionNumber (int funcIndx)
virtual bcValType giveBCValType () const
virtual bool isImposed (TimeStep *tStep)
virtual const IntArraygiveDofIDs () const
virtual void updateYourself (TimeStep *tStep)
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
virtual void initializeFrom (InputRecord &ir, int priority)
virtual void initializeFinish ()
virtual void postInitialize ()
 Performs post initialization steps. Called after all components are created and initialized.
virtual int checkConsistency ()
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging.
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Attributes

bcType lType
 Load type (its physical meaning).
CoordSystType coordSystemType
 Load coordinate system.
FloatArray coords
 Additional properties (coordinates, point of application).
Protected Attributes inherited from oofem::Load
FloatArray componentArray
 Components of boundary condition.
IntArray dofExcludeMask
Protected Attributes inherited from oofem::GeneralBoundaryCondition
int timeFunction
 Associated load time function.
bcValType valType
 Physical meaning of BC value.
IntArray dofs
 Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s).
int isImposedTimeFunction
int set
 Set number for boundary condition to be applied to.
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Additional Inherited Members

Public Types inherited from oofem::Load
enum  CoordSystType { CST_Global , CST_Local , CST_UpdatedGlobal }
enum  FormulationType { FT_Entity , FT_Global }
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.

Note
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

◆ PointLoad()

oofem::PointLoad::PointLoad ( int n,
Domain * d )
inline

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

Parameters
nLoad number.
dDomain to which new object will belongs.

Definition at line 79 of file pointload.h.

References oofem::BodyLoad::BodyLoad(), coordSystemType, and oofem::Load::CST_Global.

Member Function Documentation

◆ computeValueAt()

void oofem::PointLoad::computeValueAt ( FloatArray & answer,
TimeStep * tStep,
const FloatArray & coords,
ValueModeType mode )
overridevirtual

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

Parameters
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 coords, oofem::GeneralBoundaryCondition::giveTimeFunction(), and oofem::FloatArray::times().

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

◆ giveBCGeoType()

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

Returns receiver's load geometry type.

Returns
BodyLoadBGT.

Reimplemented from oofem::BodyLoad.

Definition at line 94 of file pointload.h.

References oofem::PointLoadBGT.

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 95 of file pointload.h.

◆ giveCoordinates()

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

Gives coordinates of the receiver

Definition at line 85 of file pointload.h.

References coords.

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

◆ giveCoordSystMode()

CoordSystType oofem::PointLoad::giveCoordSystMode ( )
inlineoverridevirtual

Returns receiver's coordinate system.

Reimplemented from oofem::Load.

Definition at line 87 of file pointload.h.

References coordSystemType.

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

◆ giveInputRecord()

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

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::Load.

Definition at line 76 of file pointload.C.

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

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 96 of file pointload.h.

References _IFT_PointLoad_Name.

◆ giveType()

bcType oofem::PointLoad::giveType ( ) const
inlineoverridevirtual
Returns
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 93 of file pointload.h.

References lType.

◆ initializeFrom()

void oofem::PointLoad::initializeFrom ( InputRecord & ir)
overridevirtual

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. Note that initializeFrom may be called mutiple times.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization

Reimplemented from oofem::Load.

Definition at line 57 of file pointload.C.

References _IFT_PointLoad_coords, _IFT_PointLoad_cstype, _IFT_PointLoad_loadtype, coords, coordSystemType, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, and lType.

Member Data Documentation

◆ coords

FloatArray oofem::PointLoad::coords
protected

Additional properties (coordinates, point of application).

Definition at line 71 of file pointload.h.

Referenced by computeValueAt(), giveCoordinates(), giveInputRecord(), and initializeFrom().

◆ coordSystemType

CoordSystType oofem::PointLoad::coordSystemType
protected

Load coordinate system.

Definition at line 69 of file pointload.h.

Referenced by giveCoordSystMode(), giveInputRecord(), initializeFrom(), and PointLoad().

◆ lType

bcType oofem::PointLoad::lType
protected

Load type (its physical meaning).

Definition at line 67 of file pointload.h.

Referenced by giveInputRecord(), giveType(), and initializeFrom().


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011