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

#include <nodalload.h>

Inheritance diagram for oofem::NodalLoad:
Collaboration diagram for oofem::NodalLoad:

Public Member Functions

 NodalLoad (int n, Domain *d)
const char * giveInputRecordName () const override
void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
CoordSystType giveCoordSystMode () override
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
const char * giveClassName () const override
bcGeomType giveBCGeoType () const override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
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)
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 bcType giveType () 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

CoordSystType coordSystemType
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

Class implementing a concentrated load (force, moment,...) that acts directly on a dof manager (node or element side, if it has associated DOFs). This load could not be applied on an element. A nodal load is usually attribute of one or more nodes or element sides.

The component array, which size should be same as number of DOFs in particular node/side is read from input.

The attribute componentArray contains, for example for the case of a plane beam structure, 2 forces and 1 moment on a right place. (6 dof per node is assumed)

Note
{Load is not restricted to structural problems. For example, in thermal analysis, a nodal load would be a concentrated heat source.}

Definition at line 67 of file nodalload.h.

Constructor & Destructor Documentation

◆ NodalLoad()

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

Constructor. Creates nodal load object with given number, belonging to given domain.

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

Definition at line 83 of file nodalload.h.

References oofem::Load::Load().

Member Function Documentation

◆ computeValueAt()

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

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 86 of file nodalload.h.

References oofem::Load::computeComponentArrayAt().

◆ giveBCGeoType()

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

Returns geometry character of boundary condition. For available values see cltypes.h file. Derived classes should always overload, default implementation returns UnknownLoadGT value.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 93 of file nodalload.h.

References oofem::NodalLoadBGT.

Referenced by oofem::Node::computeLoadVector().

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 92 of file nodalload.h.

◆ giveCoordSystMode()

CoordSystType oofem::NodalLoad::giveCoordSystMode ( )
inlineoverridevirtual

Returns receiver's coordinate system.

Reimplemented from oofem::Load.

Definition at line 88 of file nodalload.h.

References coordSystemType.

Referenced by oofem::Node::computeLoadVector().

◆ giveInputRecord()

void oofem::NodalLoad::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 54 of file nodalload.C.

References _IFT_NodalLoad_cstype, coordSystemType, and oofem::DynamicInputRecord::setField().

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 85 of file nodalload.h.

References _IFT_NodalLoad_Name.

◆ initializeFrom()

void oofem::NodalLoad::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 45 of file nodalload.C.

References _IFT_NodalLoad_cstype, coordSystemType, and IR_GIVE_OPTIONAL_FIELD.

◆ restoreContext()

void oofem::NodalLoad::restoreContext ( DataStream & stream,
ContextMode mode )
overridevirtual

Restores the receiver state previously written in stream.

See also
saveContext
Parameters
streamInput stream.
modeDetermines amount of info available in stream (state, definition, ...).
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::Load.

Definition at line 75 of file nodalload.C.

References oofem::CIO_IOERR, CM_Definition, coordSystemType, oofem::DataStream::read(), and THROW_CIOERR.

◆ saveContext()

void oofem::NodalLoad::saveContext ( DataStream & stream,
ContextMode mode )
overridevirtual

Stores receiver state to output stream.

Parameters
streamOutput stream.
modeDetermines amount of info required in stream (state, definition, ...).
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::Load.

Definition at line 62 of file nodalload.C.

References oofem::CIO_IOERR, CM_Definition, coordSystemType, THROW_CIOERR, and oofem::DataStream::write().

Member Data Documentation

◆ coordSystemType

CoordSystType oofem::NodalLoad::coordSystemType
protected

Load coordinate system. It is actually used only when local coordinate system in node is defined and load is specified in global coordinate system

Definition at line 75 of file nodalload.h.

Referenced by giveCoordSystMode(), giveInputRecord(), initializeFrom(), restoreContext(), and saveContext().


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