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

#include <neumannmomentload.h>

Inheritance diagram for oofem::NeumannMomentLoad:
Collaboration diagram for oofem::NeumannMomentLoad:

Public Member Functions

 NeumannMomentLoad (int i, Domain *d)
virtual ~NeumannMomentLoad ()
void computeValueAt (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
int giveApproxOrder () override
FormulationType giveFormulationType () override
void computeValueAtBoundary (FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode, Element *e, int boundary)
void updateLoad (const FloatArray &newValue)
void initializeFrom (InputRecord &ir) override
bcGeomType giveBCGeoType () const override
const char * giveClassName () const override
const char * giveInputRecordName () const override
Public Member Functions inherited from oofem::SurfaceLoad
 SurfaceLoad (int i, Domain *d)
Public Member Functions inherited from oofem::BoundaryLoad
 BoundaryLoad (int i, Domain *d)
CoordSystType giveCoordSystMode () override
void giveInputRecord (DynamicInputRecord &input) override
bcType giveType () const override
virtual double giveProperty (int aProperty, TimeStep *tStep, const std ::map< std ::string, FunctionArgument > &valDict) const
double giveProperty (int aProperty, TimeStep *tStep) const override
virtual double giveTemperOffset (void)
 Return temperature offset.
Public Member Functions inherited from oofem::Load
 Load (int n, Domain *d)
virtual ~Load ()
 Destructor.
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
void giveInputRecord (DynamicInputRecord &input) 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).

Private Member Functions

void computeXbar ()
 Compute centre of mass for set cset.
void computeNormal (FloatArray &answer, Element *e, int side)
 Compute normal at center of element.
void computeNArray (FloatArray &answer, const FloatArray &coords) const override

Private Attributes

FloatArray xbar
 Center of structure.
int cset
 Set containing elements used to calculate xbar.
IntArray celements
 Array containing elements elements in set cset.
FloatArray g
 Gradient.
double p
 Constant.

Additional Inherited Members

Public Types inherited from oofem::BoundaryLoad
enum  BL_CoordSystType { BL_GlobalMode , BL_LocalMode , BL_UpdatedGlobalMode }
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::BoundaryLoad
CoordSystType CST_UpdatedGlobal
ScalarFunction propertyMultExpr
 Expression to multiply all properties.
Public Attributes inherited from oofem::Load
bool reference
Protected Member Functions inherited from oofem::BoundaryLoad
void computeComponentArrayAt (FloatArray &answer, TimeStep *tStep, ValueModeType mode) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
Protected Attributes inherited from oofem::BoundaryLoad
bcType lType
 Load type (its physical meaning).
CoordSystType coordSystemType
 Load coordinate system.
Dictionary propertyDictionary
 Additional b.c properties.
Dictionary propertyTimeFunctDictionary
 Optional time-functions for properties.
double temperOffset
 Temperature offset with regards to Kelvin. Default is 273.15.
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.

Detailed Description

Definition at line 53 of file neumannmomentload.h.

Constructor & Destructor Documentation

◆ NeumannMomentLoad()

oofem::NeumannMomentLoad::NeumannMomentLoad ( int i,
Domain * d )
inline

Definition at line 73 of file neumannmomentload.h.

References oofem::SurfaceLoad::SurfaceLoad().

◆ ~NeumannMomentLoad()

virtual oofem::NeumannMomentLoad::~NeumannMomentLoad ( )
inlinevirtual

Definition at line 74 of file neumannmomentload.h.

Member Function Documentation

◆ computeNArray()

void oofem::NeumannMomentLoad::computeNArray ( FloatArray & answer,
const FloatArray & coords ) const
inlineoverrideprivatevirtual

Abstract function, for computing approximation matrix of receiver at given point. The product of approximation matrix with "vertex" values array attribute will produce load components in given point.

Parameters
answerApproximation vector.
coordsGlobal integration point coordinates.

Implements oofem::BoundaryLoad.

Definition at line 95 of file neumannmomentload.h.

References oofem::FloatArray::clear().

◆ computeNormal()

void oofem::NeumannMomentLoad::computeNormal ( FloatArray & answer,
Element * e,
int side )
private

◆ computeValueAt()

void oofem::NeumannMomentLoad::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.

Reimplemented from oofem::BoundaryLoad.

Definition at line 99 of file neumannmomentload.C.

References computeXbar(), and OOFEM_ERROR.

◆ computeValueAtBoundary()

void oofem::NeumannMomentLoad::computeValueAtBoundary ( FloatArray & answer,
TimeStep * tStep,
const FloatArray & coords,
ValueModeType mode,
Element * e,
int boundary )

◆ computeXbar()

◆ giveApproxOrder()

int oofem::NeumannMomentLoad::giveApproxOrder ( )
inlineoverridevirtual
Returns
Approximation order of load geometry.

Implements oofem::BoundaryLoad.

Definition at line 77 of file neumannmomentload.h.

◆ giveBCGeoType()

bcGeomType oofem::NeumannMomentLoad::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 89 of file neumannmomentload.h.

References oofem::SurfaceLoadBGT.

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 91 of file neumannmomentload.h.

◆ giveFormulationType()

FormulationType oofem::NeumannMomentLoad::giveFormulationType ( )
inlineoverridevirtual

Specifies is load should take local or global coordinates.

Reimplemented from oofem::Load.

Definition at line 79 of file neumannmomentload.h.

References oofem::Load::FT_Global.

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 92 of file neumannmomentload.h.

References _IFT_NeumannMomentLoad_Name.

◆ initializeFrom()

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

Initializes receiver according to object description stored in input record. Reads number of dofs into nDofs attribute (i.e. the number of dofs, which are on loaded entity), its loadType into loadType attribute and coordinate system type into csType attribute.

Reimplemented from oofem::BoundaryLoad.

Definition at line 52 of file neumannmomentload.C.

References _IFT_NeumannMomentLoad_CenterSet, _IFT_NeumannMomentLoad_Constant, _IFT_NeumannMomentLoad_Gradient, cset, g, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, p, and xbar.

◆ updateLoad()

void oofem::NeumannMomentLoad::updateLoad ( const FloatArray & newValue)
inline

Sets a new load vector.

Parameters
newValueNew load.

Definition at line 86 of file neumannmomentload.h.

References oofem::Load::componentArray.

Member Data Documentation

◆ celements

IntArray oofem::NeumannMomentLoad::celements
private

Array containing elements elements in set cset.

Definition at line 61 of file neumannmomentload.h.

Referenced by computeXbar().

◆ cset

int oofem::NeumannMomentLoad::cset
private

Set containing elements used to calculate xbar.

Definition at line 59 of file neumannmomentload.h.

Referenced by computeXbar(), and initializeFrom().

◆ g

FloatArray oofem::NeumannMomentLoad::g
private

Gradient.

Definition at line 63 of file neumannmomentload.h.

Referenced by computeValueAtBoundary(), and initializeFrom().

◆ p

double oofem::NeumannMomentLoad::p
private

Constant.

Definition at line 65 of file neumannmomentload.h.

Referenced by computeValueAtBoundary(), and initializeFrom().

◆ xbar

FloatArray oofem::NeumannMomentLoad::xbar
private

Center of structure.

Definition at line 57 of file neumannmomentload.h.

Referenced by computeValueAtBoundary(), computeXbar(), 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