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

#include <rotatingboundary.h>

Inheritance diagram for oofem::RotatingBoundary:
Collaboration diagram for oofem::RotatingBoundary:

Public Member Functions

 RotatingBoundary (int i, Domain *d)
virtual ~RotatingBoundary ()
 Destructor.
double give (Dof *dof, ValueModeType mode, double time) override
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
void scale (double s) override
const char * giveInputRecordName () const override
const char * giveClassName () const override
Public Member Functions inherited from oofem::BoundaryCondition
 BoundaryCondition (int i, Domain *d)
virtual ~BoundaryCondition ()
 Destructor.
virtual double give (Dof *dof, ValueModeType mode, TimeStep *tStep)
void setPrescribedValue (double s)
bcType giveType () const override
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 bcGeomType giveBCGeoType () const
virtual double giveProperty (int aProperty, TimeStep *tStep) const
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
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

FloatMatrix R
 Rotation matrix.
FloatArray axis
 Axis and center of rotation.
FloatArray center
Protected Attributes inherited from oofem::BoundaryCondition
FloatArray values
 Prescribed values for each resp. dof.
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

Class implementing rotating boundary surface. This boundary condition is usually attribute of one or more degrees of freedom (DOF).

Author
Andreas Feymark

Definition at line 57 of file rotatingboundary.h.

Constructor & Destructor Documentation

◆ RotatingBoundary()

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

Constructor. Creates boundary condition with given number, belonging to given domain.

Parameters
iBoundary condition number.
dDomain to which new object will belongs.

Definition at line 72 of file rotatingboundary.h.

References oofem::BoundaryCondition::BoundaryCondition().

◆ ~RotatingBoundary()

virtual oofem::RotatingBoundary::~RotatingBoundary ( )
inlinevirtual

Destructor.

Definition at line 74 of file rotatingboundary.h.

Member Function Documentation

◆ give()

◆ giveClassName()

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

Reimplemented from oofem::BoundaryCondition.

Definition at line 84 of file rotatingboundary.h.

◆ giveInputRecord()

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

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::BoundaryCondition.

Definition at line 140 of file rotatingboundary.C.

References _IFT_RotatingBoundary_axis, _IFT_RotatingBoundary_center, axis, center, and oofem::DynamicInputRecord::setField().

◆ giveInputRecordName()

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

Reimplemented from oofem::BoundaryCondition.

Definition at line 83 of file rotatingboundary.h.

References _IFT_RotatingBoundary_Name.

◆ initializeFrom()

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

Definition at line 129 of file rotatingboundary.C.

References _IFT_RotatingBoundary_axis, _IFT_RotatingBoundary_center, axis, center, IR_GIVE_FIELD, and IR_GIVE_OPTIONAL_FIELD.

◆ scale()

void oofem::RotatingBoundary::scale ( double s)
inlineoverridevirtual

Scales the receiver according to given value. Typically used in nondimensional analysis to scale down BCs and ICs.

Parameters
sScale factor.

Reimplemented from oofem::BoundaryCondition.

Definition at line 81 of file rotatingboundary.h.

Member Data Documentation

◆ axis

FloatArray oofem::RotatingBoundary::axis
protected

Axis and center of rotation.

Definition at line 64 of file rotatingboundary.h.

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

◆ center

FloatArray oofem::RotatingBoundary::center
protected

Definition at line 64 of file rotatingboundary.h.

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

◆ R

FloatMatrix oofem::RotatingBoundary::R
protected

Rotation matrix.

Definition at line 61 of file rotatingboundary.h.

Referenced by give().


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