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

#include <polylinenonlocalbarrier.h>

Inheritance diagram for oofem::PolylineNonlocalBarrier:
Collaboration diagram for oofem::PolylineNonlocalBarrier:

Public Member Functions

 PolylineNonlocalBarrier (int n, Domain *aDomain)
virtual ~PolylineNonlocalBarrier ()
 Virtual destructor.
virtual bool isActivated (const FloatArray &c1, const FloatArray &c2)
void applyConstraint (const double cl, const FloatArray &c1, const FloatArray &c2, double &weight, bool &shieldFlag, const NonlocalMaterialExtensionInterface &nei) override
void initializeFrom (InputRecord &ir) override
double calculateMinimumDistanceFromBoundary (const FloatArray &coords) override
double giveDistancePointLine (const FloatArray &coordsA, const FloatArray &coordsB, const FloatArray &coordsGP)
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

int localXCoordIndx
 Local x-coordinate index.
int localYCoordIndx
 Local y-coordinate index.
IntArray vertexNodes
 List of polyline vertices.
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 polyline nonlocal barrier. It is a composite one-dimensional cell consisting of one or more connected lines. The polyline is defined by an ordered list of n+1 vertices (nodes), where n is the number of lines in the polyline. Each pair of points (i,i+1) defines a line.

The purpose of this class is to model barrier for nonlocal averaging process (visibility criterion). Usually, the given remote integration point influences to the source point nonlocal average if the averaging function at source point and evaluated for remote point has nonzero value. The barrier allows to exclude additional points, which may be close enough, but due to several reasons there is no influence between these points (for example, they can be separated by a notch).

Definition at line 65 of file polylinenonlocalbarrier.h.

Constructor & Destructor Documentation

◆ PolylineNonlocalBarrier()

oofem::PolylineNonlocalBarrier::PolylineNonlocalBarrier ( int n,
Domain * aDomain )

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

Parameters
nBarrier's number
aDomainPointer to the domain to which element belongs.

◆ ~PolylineNonlocalBarrier()

oofem::PolylineNonlocalBarrier::~PolylineNonlocalBarrier ( )
virtual

Virtual destructor.

Definition at line 55 of file polylinenonlocalbarrier.C.

Member Function Documentation

◆ applyConstraint()

void oofem::PolylineNonlocalBarrier::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 61 of file polylinenonlocalbarrier.C.

References isActivated().

◆ calculateMinimumDistanceFromBoundary()

double oofem::PolylineNonlocalBarrier::calculateMinimumDistanceFromBoundary ( const FloatArray & coords)
overridevirtual

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 122 of file polylinenonlocalbarrier.C.

References oofem::FloatArray::at(), oofem::FEMComponent::domain, giveDistancePointLine(), oofem::FloatArray::giveSize(), oofem::min(), and vertexNodes.

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 105 of file polylinenonlocalbarrier.h.

◆ giveDistancePointLine()

double oofem::PolylineNonlocalBarrier::giveDistancePointLine ( const FloatArray & coordsA,
const FloatArray & coordsB,
const FloatArray & coordsGP )

This function computes the length of the normal to the line defined by 2 vertices that passes through the given Gauss Point. If the intersection point lies outside the line segment the minimum of the distances between the Gauss Point and the two vertices is returned

Parameters
coordsACoordinates of the ith vertex of the polyline
coordsBCoordinates of the (i+1)th vertex of the polyline
coordsGPCoordinates of the Gauss Point whose nonlocal interactions domain is modified based on the distance based averaging

Definition at line 147 of file polylinenonlocalbarrier.C.

References oofem::FloatArray::add(), oofem::FloatArray::computeNorm(), oofem::FloatArray::computeSquaredNorm(), oofem::FloatArray::dotProduct(), oofem::FloatArray::subtract(), and oofem::FloatArray::times().

Referenced by calculateMinimumDistanceFromBoundary().

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 104 of file polylinenonlocalbarrier.h.

References _IFT_PolylineNonlocalBarrier_Name.

◆ initializeFrom()

void oofem::PolylineNonlocalBarrier::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 184 of file polylinenonlocalbarrier.C.

References _IFT_PolylineNonlocalBarrier_vertexnodes, _IFT_PolylineNonlocalBarrier_xcoordindx, _IFT_PolylineNonlocalBarrier_ycoordindx, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, localXCoordIndx, localYCoordIndx, and vertexNodes.

◆ isActivated()

bool oofem::PolylineNonlocalBarrier::isActivated ( const FloatArray & c1,
const FloatArray & c2 )
virtual

Member Data Documentation

◆ localXCoordIndx

int oofem::PolylineNonlocalBarrier::localXCoordIndx
protected

Local x-coordinate index.

Definition at line 69 of file polylinenonlocalbarrier.h.

Referenced by initializeFrom(), and isActivated().

◆ localYCoordIndx

int oofem::PolylineNonlocalBarrier::localYCoordIndx
protected

Local y-coordinate index.

Definition at line 71 of file polylinenonlocalbarrier.h.

Referenced by initializeFrom(), and isActivated().

◆ vertexNodes

IntArray oofem::PolylineNonlocalBarrier::vertexNodes
protected

List of polyline vertices.

Definition at line 73 of file polylinenonlocalbarrier.h.

Referenced by calculateMinimumDistanceFromBoundary(), initializeFrom(), and isActivated().


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