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

#include <prescribeddispslipbcneumannrc.h>

Inheritance diagram for oofem::PrescribedDispSlipBCNeumannRC:
Collaboration diagram for oofem::PrescribedDispSlipBCNeumannRC:

Public Member Functions

 PrescribedDispSlipBCNeumannRC (int n, Domain *d)
virtual ~PrescribedDispSlipBCNeumannRC ()
int giveNumberOfInternalDofManagers () override
 Gives the number of internal dof managers.
DofManagergiveInternalDofManager (int i) override
 Gives an internal dof manager from receiver.
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
bcType giveType () const override
void scale (double s) override
void assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorm=nullptr, void *lock=nullptr) override
void assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0, void *lock=nullptr) override
void giveLocationArrays (std ::vector< IntArray > &rows, std ::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override
const char * giveClassName () const override
const char * giveInputRecordName () const override
void computeStress (FloatArray &sigma, TimeStep *tStep) override
void computeTransferStress (FloatArray &bStress, TimeStep *tStep) override
void computeReinfStress (FloatArray &rStress, TimeStep *tStep) override
void computeTangent (FloatMatrix &tangent, TimeStep *tStep) override
Public Member Functions inherited from oofem::ActiveBoundaryCondition
 ActiveBoundaryCondition (int n, Domain *d)
virtual ~ActiveBoundaryCondition ()
 Destructor.
virtual void addElementSide (int elem, int side)
virtual bool requiresActiveDofs ()
virtual bool isPrimaryDof (ActiveDof *dof)
virtual double giveBcValue (Dof *dof, ValueModeType mode, TimeStep *tStep)
virtual bool hasBc (Dof *dof, TimeStep *tStep)
virtual int giveNumberOfMasterDofs (ActiveDof *dof)
virtual DofgiveMasterDof (ActiveDof *dof, int mdof)
virtual void computeDofTransformation (ActiveDof *dof, FloatArray &masterContribs)
virtual double giveUnknown (PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
virtual double giveUnknown (ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
Public Member Functions inherited from oofem::GeneralBoundaryCondition
 GeneralBoundaryCondition (int n, Domain *d)
virtual ~GeneralBoundaryCondition ()
 Destructor.
int giveSetNumber () const
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).
Public Member Functions inherited from oofem::PrescribedDispSlipHomogenization
 PrescribedDispSlipHomogenization ()
virtual ~PrescribedDispSlipHomogenization ()
virtual void setDispField (const FloatArray &t)
virtual void setSlipField (const FloatArray &t)
virtual void setDispGradient (const FloatArray &t)
virtual void setSlipGradient (const FloatArray &t)
void giveDispField (FloatArray &oField) const
void giveSlipField (FloatArray &oField) const
void giveDispGradient (FloatArray &oGradient) const
void giveSlipGradient (FloatArray &oGradient) const
virtual void setCenterCoordinate (FloatArray &x)
FloatArraygiveCenterCoordinate ()

Protected Member Functions

void integrateTangentStress (FloatMatrix &oTangent, Element *e, int iBndIndex)
void assembleVectorStress (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorm)
void assembleOnStress (SparseMtrx &answer, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale)
void integrateTangentBStressSteel (FloatMatrix &oTangent, Element *e, const int &rebarSet)
void integrateTangentBStressConcrete (FloatMatrix &oTangent, Element *e)
void assembleVectorBStress (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s)
void assembleOnTransferStress (SparseMtrx &answer, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale)
void integrateTangentRStressSteel (FloatMatrix &oTangent, Element *e, const int &rebarSet)
void integrateTangentRStressConcrete (FloatMatrix &oTangent, Element *e, int iBndIndex)
void assembleVectorRStress (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s)
void assembleOnReinfStress (SparseMtrx &answer, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale)
void computeWeightMatrix (FloatMatrix &C, const IntArray &reinfSets)
void computeRebarDyad (FloatMatrix &dyad, const int &reinfSet)
double computeInterfaceLength (const IntArray &reinfSets)
virtual double domainSize (Domain *d, int set) override

Protected Attributes

bool dispGradON = false
bool slipON = false
 on/off flag specifying whether the displacement gradient should be applied via Neumann BCs
bool slipGradON = false
 on/off flag specifying whether the slip field should be applied via Neumann BCs
std ::unique_ptr< NodempSigmaHom
 on/off flag specifying whether the slip gradient should be applied via Neumann BCs
IntArray mSigmaIds
std ::unique_ptr< NodelmTauHom
 DofManager for effective transfer stress.
IntArray lmTauIds
std ::unique_ptr< NodelmSigmaSHom
 DofManager for effective reinforcement membrane stress.
IntArray lmSigmaSIds
int concreteVolSet =0
 Element set containing concrete elements (in the volume of RVE).
IntArray rebarSets
 IntArray containing sets of individual reinforcement bars.
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.
Protected Attributes inherited from oofem::PrescribedDispSlipHomogenization
FloatMatrix dispGradient
 Prescribed gradients.
FloatMatrix slipGradient
FloatArray dispField
 Prescribed fields.
FloatArray slipField
FloatArray mCenterCoord
 Center coordinates.

Detailed Description

Prescribes macroscopic displacement gradient, reinforcement slip field and slip gradient on the reinforced concrete RVE using Neumann boundary conditions, cf. Sciegaj, A., Larsson, F., Lundgren, K., Nilenius, F., & Runesson, K. (2019). A multiscale model for reinforced concrete with macroscopic variation of reinforcement slip. Computational Mechanics, 63(2), 139–158. https://doi.org/10.1007/s00466-018-1588-3 Macroscopic slip and slip gradient fields are optional (see PrescribedDispSlipHomogenization). If not specified, this BC will prescribe only the displacement gradient, i.e., it will work the same was as a PrescribedGradient bc. Works with 2D RVEs comprising solid elements (concrete), reinforcement (beam/truss elements) and interface elements in between. Used in multiscale analyses of reinforced concrete structures. Currently, only orthogonal reinforcement in X and Y direction is supported.

For the optional slip and slip gradient, input fields concretevolset and rebarsets must be specified. concretevolset is the element set containing all concrete elements. rebarsets is an array of sets, each containing all reinforcement bars in one direction.

Author
Adam Sciegaj

Definition at line 67 of file prescribeddispslipbcneumannrc.h.

Constructor & Destructor Documentation

◆ PrescribedDispSlipBCNeumannRC()

◆ ~PrescribedDispSlipBCNeumannRC()

oofem::PrescribedDispSlipBCNeumannRC::~PrescribedDispSlipBCNeumannRC ( )
virtual

Definition at line 87 of file prescribeddispslipbcneumannrc.C.

Member Function Documentation

◆ assemble()

void oofem::PrescribedDispSlipBCNeumannRC::assemble ( SparseMtrx & answer,
TimeStep * tStep,
CharType type,
const UnknownNumberingScheme & r_s,
const UnknownNumberingScheme & c_s,
double scale = 1.0,
void * lock = nullptr )
overridevirtual

Assembles B.C. contributions to specified matrix.

Parameters
[in,out]answerMatrix to assemble to.
tStepActive time step.
tStepActive time step.
typeType of matrix to assemble.
r_sRow numbering scheme.
c_sColumn numbering scheme.
scaleScaling factor.
omp_lockoptional OMP lock to ensure correct update of answer

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 450 of file prescribeddispslipbcneumannrc.C.

References assembleOnReinfStress(), assembleOnStress(), assembleOnTransferStress(), dispGradON, OOFEM_LOG_DEBUG, scale(), slipGradON, and slipON.

◆ assembleOnReinfStress()

◆ assembleOnStress()

◆ assembleOnTransferStress()

◆ assembleVector()

void oofem::PrescribedDispSlipBCNeumannRC::assembleVector ( FloatArray & answer,
TimeStep * tStep,
CharType type,
ValueModeType mode,
const UnknownNumberingScheme & s,
FloatArray * eNorms = nullptr,
void * lock = nullptr )
overridevirtual

Assembles B.C. contributions to specified vector.

Parameters
[in,out]answerVector to assemble to.
tStepActive time step.
typeType of matrix to assemble.
modeMode of value.
sNumbering scheme.
eNormsNorms for each dofid.
omp_lockoptional OMP lock to ensure correct update of answer
Returns
Equivalent of the sum of the element norm (squared) of assembled vector.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 168 of file prescribeddispslipbcneumannrc.C.

References assembleVectorBStress(), assembleVectorRStress(), assembleVectorStress(), dispGradON, slipGradON, and slipON.

◆ assembleVectorBStress()

◆ assembleVectorRStress()

◆ assembleVectorStress()

◆ computeInterfaceLength()

◆ computeRebarDyad()

void oofem::PrescribedDispSlipBCNeumannRC::computeRebarDyad ( FloatMatrix & dyad,
const int & reinfSet )
protected

◆ computeReinfStress()

◆ computeStress()

◆ computeTangent()

void oofem::PrescribedDispSlipBCNeumannRC::computeTangent ( FloatMatrix & tangent,
TimeStep * tStep )
overridevirtual

Implements oofem::PrescribedDispSlipHomogenization.

Definition at line 652 of file prescribeddispslipbcneumannrc.C.

References OOFEM_ERROR.

◆ computeTransferStress()

void oofem::PrescribedDispSlipBCNeumannRC::computeTransferStress ( FloatArray & bStress,
TimeStep * tStep )
overridevirtual

◆ computeWeightMatrix()

◆ domainSize()

◆ giveClassName()

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

Implements oofem::FEMComponent.

Definition at line 94 of file prescribeddispslipbcneumannrc.h.

◆ giveInputRecord()

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

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 116 of file prescribeddispslipbcneumannrc.C.

References _IFT_PrescribedDispSlipBCNeumannRC_ConcreteVolSet, _IFT_PrescribedDispSlipBCNeumannRC_RebarSets, concreteVolSet, rebarSets, oofem::DynamicInputRecord::setField(), slipGradON, and slipON.

◆ giveInputRecordName()

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

Implements oofem::FEMComponent.

Definition at line 95 of file prescribeddispslipbcneumannrc.h.

References _IFT_PrescribedDispSlipBCNeumannRC_Name.

◆ giveInternalDofManager()

DofManager * oofem::PrescribedDispSlipBCNeumannRC::giveInternalDofManager ( int i)
overridevirtual

Gives an internal dof manager from receiver.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 134 of file prescribeddispslipbcneumannrc.C.

References dispGradON, giveNumberOfInternalDofManagers(), lmSigmaSHom, lmTauHom, mpSigmaHom, slipGradON, and slipON.

◆ giveLocationArrays()

void oofem::PrescribedDispSlipBCNeumannRC::giveLocationArrays ( std ::vector< IntArray > & rows,
std ::vector< IntArray > & cols,
CharType type,
const UnknownNumberingScheme & r_s,
const UnknownNumberingScheme & c_s )
overridevirtual

Gives a list of location arrays that will be assembled. This should only be used to construct zero structure in sparse matrices. The rows and columns location arrays returned in tuples (stored in vector), allowing to efficiently assemble and allocate off-diagonal blocks. The nonzero entries are assembled and allocated for entries at (rows[i], cols[i]) positions.

Parameters
rowsList of location arrays for r_s.
colsList of location arrays for c_s.
typeType of matrix to assemble.
r_sRow numbering scheme.
c_sColumn numbering scheme.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 476 of file prescribeddispslipbcneumannrc.C.

References oofem::IntArray::at(), concreteVolSet, dispGradON, oofem::IntArray::followedBy(), oofem::Set::giveBoundaryList(), oofem::FEMComponent::giveDomain(), oofem::Set::giveElementList(), oofem::Element::giveLocationArray(), oofem::IntArray::giveSize(), lmSigmaSHom, lmSigmaSIds, lmTauHom, lmTauIds, mpSigmaHom, mSigmaIds, rebarSets, oofem::IntArray::resize(), oofem::GeneralBoundaryCondition::set, slipGradON, and slipON.

◆ giveNumberOfInternalDofManagers()

int oofem::PrescribedDispSlipBCNeumannRC::giveNumberOfInternalDofManagers ( )
overridevirtual

Gives the number of internal dof managers.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 128 of file prescribeddispslipbcneumannrc.C.

References dispGradON, slipGradON, and slipON.

Referenced by giveInternalDofManager().

◆ giveType()

bcType oofem::PrescribedDispSlipBCNeumannRC::giveType ( ) const
inlineoverridevirtual
Returns
Type of boundary condition. It allows to distinguish BC according its mathematical meaning, ie. like Dirichlet, Neumann, or Newton type.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 79 of file prescribeddispslipbcneumannrc.h.

References oofem::UnknownBT.

◆ initializeFrom()

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

Definition at line 92 of file prescribeddispslipbcneumannrc.C.

References _IFT_PrescribedDispSlipBCNeumannRC_ConcreteVolSet, _IFT_PrescribedDispSlipBCNeumannRC_RebarSets, concreteVolSet, oofem::PrescribedDispSlipHomogenization::dispGradient, dispGradON, IR_GIVE_OPTIONAL_FIELD, rebarSets, oofem::PrescribedDispSlipHomogenization::slipField, oofem::PrescribedDispSlipHomogenization::slipGradient, slipGradON, and slipON.

◆ integrateTangentBStressConcrete()

◆ integrateTangentBStressSteel()

◆ integrateTangentRStressConcrete()

◆ integrateTangentRStressSteel()

◆ integrateTangentStress()

◆ scale()

void oofem::PrescribedDispSlipBCNeumannRC::scale ( double s)
overridevirtual

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

Parameters
sScale factor.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 160 of file prescribeddispslipbcneumannrc.C.

References oofem::PrescribedDispSlipHomogenization::dispGradient, oofem::PrescribedDispSlipHomogenization::slipField, and oofem::PrescribedDispSlipHomogenization::slipGradient.

Referenced by assemble(), assembleOnReinfStress(), assembleOnStress(), and assembleOnTransferStress().

Member Data Documentation

◆ concreteVolSet

int oofem::PrescribedDispSlipBCNeumannRC::concreteVolSet =0
protected

Element set containing concrete elements (in the volume of RVE).

Definition at line 121 of file prescribeddispslipbcneumannrc.h.

Referenced by assembleOnTransferStress(), assembleVectorBStress(), giveInputRecord(), giveLocationArrays(), and initializeFrom().

◆ dispGradON

bool oofem::PrescribedDispSlipBCNeumannRC::dispGradON = false
protected

◆ lmSigmaSHom

std :: unique_ptr< Node > oofem::PrescribedDispSlipBCNeumannRC::lmSigmaSHom
protected

◆ lmSigmaSIds

IntArray oofem::PrescribedDispSlipBCNeumannRC::lmSigmaSIds
protected

◆ lmTauHom

std :: unique_ptr< Node > oofem::PrescribedDispSlipBCNeumannRC::lmTauHom
protected

◆ lmTauIds

IntArray oofem::PrescribedDispSlipBCNeumannRC::lmTauIds
protected

◆ mpSigmaHom

std :: unique_ptr< Node > oofem::PrescribedDispSlipBCNeumannRC::mpSigmaHom
protected

on/off flag specifying whether the slip gradient should be applied via Neumann BCs

DofManager for effective stress

Definition at line 109 of file prescribeddispslipbcneumannrc.h.

Referenced by assembleOnStress(), assembleVectorStress(), computeStress(), giveInternalDofManager(), giveLocationArrays(), and PrescribedDispSlipBCNeumannRC().

◆ mSigmaIds

IntArray oofem::PrescribedDispSlipBCNeumannRC::mSigmaIds
protected

◆ rebarSets

IntArray oofem::PrescribedDispSlipBCNeumannRC::rebarSets
protected

◆ slipGradON

bool oofem::PrescribedDispSlipBCNeumannRC::slipGradON = false
protected

on/off flag specifying whether the slip field should be applied via Neumann BCs

Definition at line 106 of file prescribeddispslipbcneumannrc.h.

Referenced by assemble(), assembleVector(), computeReinfStress(), giveInputRecord(), giveInternalDofManager(), giveLocationArrays(), giveNumberOfInternalDofManagers(), and initializeFrom().

◆ slipON

bool oofem::PrescribedDispSlipBCNeumannRC::slipON = false
protected

on/off flag specifying whether the displacement gradient should be applied via Neumann BCs

Definition at line 105 of file prescribeddispslipbcneumannrc.h.

Referenced by assemble(), assembleVector(), computeTransferStress(), giveInputRecord(), giveInternalDofManager(), giveLocationArrays(), giveNumberOfInternalDofManagers(), 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