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

#include <symmetrybarrier.h>

Inheritance diagram for oofem::SymmetryBarrier:
Collaboration diagram for oofem::SymmetryBarrier:

Public Member Functions

 SymmetryBarrier (int n, Domain *d)
virtual ~SymmetryBarrier ()
 Destructor.
void applyConstraint (const double cl, const FloatArray &c1, const FloatArray &c2, double &weight, bool &shieldFlag, const NonlocalMaterialExtensionInterface &nei) override
double calculateMinimumDistanceFromBoundary (const FloatArray &coords) override
void initializeFrom (InputRecord &ir) override
const char * giveInputRecordName () const override
const char * giveClassName () const override
Public Member Functions inherited from oofem::NonlocalBarrier
 NonlocalBarrier (int n, Domain *aDomain)
virtual ~NonlocalBarrier ()
 Destructor.
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 void giveInputRecord (DynamicInputRecord &input)
virtual void saveContext (DataStream &stream, ContextMode mode)
virtual void restoreContext (DataStream &stream, ContextMode mode)
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

FloatArray origin
FloatArray normals
IntArray mask
FloatMatrix lcs
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

Implementation of symmetry nonlocal barrier. It allows to specify up to three planes (orthogonal ones) of symmetry It then modifies the integration weights of source points to take into account symmetry of the averaged field.

Definition at line 58 of file symmetrybarrier.h.

Constructor & Destructor Documentation

◆ SymmetryBarrier()

oofem::SymmetryBarrier::SymmetryBarrier ( int n,
Domain * d )

Constructor. Creates an element with number n belonging to domain aDomain.

Parameters
nElement's number
dPointer to the domain to which element belongs.

◆ ~SymmetryBarrier()

oofem::SymmetryBarrier::~SymmetryBarrier ( )
virtual

Destructor.

Definition at line 50 of file symmetrybarrier.C.

Member Function Documentation

◆ applyConstraint()

void oofem::SymmetryBarrier::applyConstraint ( const double cl,
const FloatArray & c1,
const FloatArray & c2,
double & weight,
bool & shieldFlag,
const NonlocalMaterialExtensionInterface & nei )
overridevirtual

Abstract method modifying the integration weight between master (c1) and source (c2) point.

Parameters
clCharacteristic length of nonlocal model.
c1Coordinates of master point.
c2Coordinates of source point.
weightOriginal integration weight; on output modified weight.
[out]shieldFlagSet to true if shielding is activated.
neiThe element with the non local material extension.

Implements oofem::NonlocalBarrier.

Definition at line 55 of file symmetrybarrier.C.

References oofem::FloatArray::at(), oofem::NonlocalMaterialExtensionInterface::computeWeightFunction(), oofem::FloatArray::giveSize(), lcs, mask, and origin.

◆ calculateMinimumDistanceFromBoundary()

double oofem::SymmetryBarrier::calculateMinimumDistanceFromBoundary ( const FloatArray & coords)
inlineoverridevirtual

Abstract method calculating the minimum distance of the Gauss Point from the nonlocal boundaries

Parameters
coordsCoordinates of the Gauss Point
maxPossibleDistanceDistance from the boundary beyond which the nonlocal radius(as it is interpreted in each weight function) becomes equal to the user-defined
Returns
the minimum value of the minimum distance from nonlocal boundary and maxPossibleDistance

Implements oofem::NonlocalBarrier.

Definition at line 78 of file symmetrybarrier.h.

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 82 of file symmetrybarrier.h.

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 81 of file symmetrybarrier.h.

References _IFT_SymmetryBarrier_Name.

◆ initializeFrom()

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

Definition at line 124 of file symmetrybarrier.C.

References _IFT_SymmetryBarrier_activemask, _IFT_SymmetryBarrier_normals, _IFT_SymmetryBarrier_origin, oofem::FEMComponent::giveNumber(), IR_GIVE_FIELD, lcs, mask, normals, OOFEM_ERROR, OOFEM_WARNING, and origin.

Member Data Documentation

◆ lcs

FloatMatrix oofem::SymmetryBarrier::lcs
protected

Definition at line 64 of file symmetrybarrier.h.

Referenced by applyConstraint(), and initializeFrom().

◆ mask

IntArray oofem::SymmetryBarrier::mask
protected

Definition at line 63 of file symmetrybarrier.h.

Referenced by applyConstraint(), and initializeFrom().

◆ normals

FloatArray oofem::SymmetryBarrier::normals
protected

Definition at line 62 of file symmetrybarrier.h.

Referenced by initializeFrom().

◆ origin

FloatArray oofem::SymmetryBarrier::origin
protected

Definition at line 61 of file symmetrybarrier.h.

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