|
OOFEM 3.0
|
#include <prescribedgradientbcweak.h>
Public Member Functions | |
| PrescribedGradientBCWeak (int n, Domain *d) | |
| virtual | ~PrescribedGradientBCWeak () |
| void | clear () |
| double | domainSize () override |
| int | giveNumberOfInternalDofManagers () override |
| Gives the number of internal dof managers. | |
| DofManager * | giveInternalDofManager (int i) override |
| Gives an internal dof manager from receiver. | |
| bcType | giveType () const override |
| void | initializeFrom (InputRecord &ir) override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| void | postInitialize () override |
| Performs post initialization steps. Called after all components are created and initialized. | |
| void | computeField (FloatArray &sigma, TimeStep *tStep) override |
| void | computeTangent (FloatMatrix &E, TimeStep *tStep) override |
| void | assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorm=nullptr, void *lock=nullptr) override |
| void | computeExtForceElContrib (FloatArray &oContrib, TracSegArray &iEl, int iDim, TimeStep *tStep) |
| void | computeIntForceGPContrib (FloatArray &oContrib_disp, IntArray &oDisp_loc_array, FloatArray &oContrib_trac, IntArray &oTrac_loc_array, TracSegArray &iEl, GaussPoint &iGP, int iDim, TimeStep *tStep, const FloatArray &iBndCoord, const double &iScaleFac, ValueModeType mode, CharType type, const UnknownNumberingScheme &s) |
| void | assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0, void *lock=nullptr) override |
| virtual void | assembleExtraDisplock (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) |
| virtual void | assembleGPContrib (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, TracSegArray &iEl, GaussPoint &iGP, double k, void *lock=nullptr) |
| void | giveLocationArrays (std ::vector< IntArray > &rows, std ::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) override |
| virtual void | giveTractionLocationArray (IntArray &rows, const UnknownNumberingScheme &s) |
| virtual void | giveDisplacementLocationArray (IntArray &rows, const UnknownNumberingScheme &s) |
| void | compute_x_times_N_1 (FloatMatrix &o_x_times_N) |
| void | compute_x_times_N_2 (FloatMatrix &o_x_times_N) |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| size_t | giveNumberOfTractionElements () const |
| void | giveTractionElCoord (size_t iElInd, FloatArray &oStartCoord, FloatArray &oEndCoord) const |
| void | giveTractionElNormal (size_t iElInd, FloatArray &oNormal, FloatArray &oTangent) const |
| void | giveTractionElArcPos (size_t iElInd, double &oXiStart, double &oXiEnd) const |
| void | giveBoundaries (IntArray &oBoundaries) |
| void | giveTraction (size_t iElInd, FloatArray &oStartTraction, FloatArray &oEndTraction, ValueModeType mode, TimeStep *tStep) |
| void | computeDomainBoundingBox (Domain &iDomain, FloatArray &oLC, FloatArray &oUC) |
| const IntArray & | giveTracDofIDs () const |
| const IntArray & | giveDispLockDofIDs () const |
| const IntArray & | giveRegularDispDofIDs () const |
| void | setPeriodicityNormal (const FloatArray &iPeriodicityNormal) |
| void | setDomainSize (double iDomainSize) |
| void | setLowerCorner (FloatArray iLC) |
| void | setUpperCorner (FloatArray iUC) |
| void | setMirrorFunction (int iMirrorFunction) |
| void | recomputeTractionMesh () |
| void | giveMirroredPointOnGammaMinus (FloatArray &oPosMinus, const FloatArray &iPosPlus) const |
| void | giveMirroredPointOnGammaPlus (FloatArray &oPosPlus, const FloatArray &iPosMinus) const |
| 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 Dof * | giveMasterDof (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 |
| Function * | giveTimeFunction () |
| int | getIsImposedTimeFunctionNumber () const |
| void | setIsImposedTimeFunctionNumber (int funcIndx) |
| virtual bcValType | giveBCValType () const |
| virtual bool | isImposed (TimeStep *tStep) |
| virtual const IntArray & | giveDofIDs () const |
| virtual bcGeomType | giveBCGeoType () const |
| virtual void | scale (double s) |
| 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. | |
| Domain * | giveDomain () 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 int | checkConsistency () |
| virtual void | printOutputAt (FILE *file, TimeStep *tStep) |
| virtual void | printYourself () |
| Prints receiver state on stdout. Useful for debugging. | |
| virtual Interface * | giveInterface (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::PrescribedGradientHomogenization | |
| PrescribedGradientHomogenization () | |
| virtual | ~PrescribedGradientHomogenization () |
| void | setPrescribedGradient (const FloatMatrix &t) |
| void | setPrescribedGradientVoigt (const FloatArray &t) |
| void | giveGradientVoigt (FloatArray &oGradient) const |
| void | setCenterCoordinate (FloatArray &x) |
| FloatArray & | giveCenterCoordinate () |
| Returns the center coordinate. | |
Protected Member Functions | |
| void | createTractionMesh (bool iEnforceCornerPeriodicity, int iNumSides) |
| void | splitSegments (std ::vector< TracSegArray > &ioElArray) |
| bool | damageExceedsTolerance (Element *el) |
| void | assembleTangentGPContributionNew (FloatMatrix &oTangent, TracSegArray &iEl, GaussPoint &iGP, const double &iScaleFactor, const FloatArray &iBndCoord) |
| bool | pointIsOnGammaPlus (const FloatArray &iPos) const |
| virtual void | giveBoundaryCoordVector (FloatArray &oX, const FloatArray &iPos) const =0 |
| virtual void | checkIfCorner (bool &oIsCorner, bool &oDuplicatable, const FloatArray &iPos, const double &iNodeDistTol) const =0 |
| virtual bool | boundaryPointIsOnActiveBoundary (const FloatArray &iPos) const =0 |
| int | giveSideIndex (const FloatArray &iPos) const |
| void | findHoleCoord (std::vector< FloatArray > &oHoleCoordUnsorted, std::vector< FloatArray > &oAllCoordUnsorted) |
| void | findCrackBndIntersecCoord (std::vector< FloatArray > &oHoleCoordUnsorted) |
| void | findPeriodicityCoord (std::vector< FloatArray > &oHoleCoordUnsorted) |
| void | removeClosePoints (std::vector< FloatArray > &ioCoords, const double &iAbsTol) |
| void | removeSegOverHoles (TracSegArray &ioTSeg, const double &iAbsTol) |
| Protected Member Functions inherited from oofem::PrescribedGradientHomogenization | |
| virtual double | domainSize (Domain *d, int set) |
Protected Attributes | |
| const IntArray | mTractionDofIDs |
| const IntArray | mDispLockDofIDs |
| const IntArray | mRegularDispDofIDs |
| int | mTractionInterpOrder |
| Order of interpolation for traction (0->piecewise constant, 1->piecewise linear). | |
| int | mNumTractionNodesAtIntersections |
| int | mTractionNodeSpacing |
| bool | mMeshIsPeriodic |
| bool | mDuplicateCornerNodes |
| double | mTangDistPadding |
| double | mTracDofScaling |
| FloatArray | mLC |
| Lower corner of domain (assuming a rectangular RVE). | |
| FloatArray | mUC |
| Upper corner of domain (assuming a rectangular RVE). | |
| std::unique_ptr< Node > | mpDisplacementLock |
| Lock displacements in one node if periodic. | |
| int | mLockNodeInd |
| double | mDispLockScaling |
| int | mSpringNodeInd1 |
| int | mSpringNodeInd2 |
| int | mSpringNodeInd3 |
| double | mSpringPenaltyStiffness |
| std ::vector< TracSegArray > | mpTracElNew |
| Elements for the independent traction discretization. | |
| FloatArray | mPeriodicityNormal |
| double | mDomainSize |
| int | mMirrorFunction |
| 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. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
| Protected Attributes inherited from oofem::PrescribedGradientHomogenization | |
| FloatMatrix | mGradient |
| Prescribed gradient \( d_{ij} \). | |
| FloatArray | mCenterCoord |
| Center coordinate \( \bar{x}_i \). | |
Imposes a prescribed gradient weakly on the boundary with an independent traction discretization.
Definition at line 110 of file prescribedgradientbcweak.h.
| oofem::PrescribedGradientBCWeak::PrescribedGradientBCWeak | ( | int | n, |
| Domain * | d ) |
Definition at line 88 of file prescribedgradientbcweak.C.
References oofem::ActiveBoundaryCondition::ActiveBoundaryCondition(), mTractionDofIDs, and oofem::PrescribedGradientHomogenization::PrescribedGradientHomogenization().
Referenced by oofem::PrescribedGradientBCWeakDirichlet::PrescribedGradientBCWeakDirichlet(), and oofem::PrescribedGradientBCWeakPeriodic::PrescribedGradientBCWeakPeriodic().
|
virtual |
Definition at line 117 of file prescribedgradientbcweak.C.
References clear().
|
overridevirtual |
Assembles B.C. contributions to specified matrix.
| [in,out] | answer | Matrix to assemble to. |
| tStep | Active time step. | |
| tStep | Active time step. | |
| type | Type of matrix to assemble. | |
| r_s | Row numbering scheme. | |
| c_s | Column numbering scheme. | |
| scale | Scaling factor. | |
| omp_lock | optional OMP lock to ensure correct update of answer |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 410 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), assembleGPContrib(), oofem::FloatMatrix::beUnitMatrix(), oofem::FEMComponent::domain, giveDispLockDofIDs(), oofem::DofManager::giveLocationArray(), giveRegularDispDofIDs(), oofem::IntArray::giveSize(), mDispLockScaling, mLockNodeInd, mpDisplacementLock, mpTracElNew, mSpringNodeInd1, mSpringPenaltyStiffness, oofem::GeneralBoundaryCondition::scale(), oofem::FloatMatrix::times(), and oofem::FloatMatrix::zero().
|
virtual |
Definition at line 498 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), oofem::FloatMatrix::at(), oofem::FEMComponent::domain, oofem::IntArray::followedBy(), oofem::DofManager::giveLocationArray(), giveRegularDispDofIDs(), mSpringNodeInd2, mSpringNodeInd3, mSpringPenaltyStiffness, and oofem::FloatMatrix::zero().
Referenced by computeTangent().
|
virtual |
Definition at line 568 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), assembleTangentGPContributionNew(), oofem::FloatMatrix::beTranspositionOf(), oofem::FloatArray::clear(), oofem::FloatMatrix::clear(), oofem::IntArray::clear(), oofem::FEMComponent::domain, oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::GaussPoint::giveGlobalCoordinates(), oofem::Element::giveLocationArray(), giveMirroredPointOnGammaMinus(), giveTracDofIDs(), oofem::TracSegArray::giveTractionLocationArray(), oofem::TracSegArray::mFirstNode, oofem::FloatMatrix::times(), and oofem::FloatMatrix::zero().
Referenced by assemble().
|
protected |
Definition at line 1493 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::beNMatrixOf(), oofem::FloatMatrix::beTProductOf(), oofem::FEMComponent::domain, oofem::FEInterpolation::evalN(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Element::giveInterpolation(), oofem::TracSegArray::giveLength(), oofem::Element::giveSpatialDimension(), oofem::GaussPoint::giveWeight(), mTracDofScaling, N, oofem::FloatMatrix::times(), oofem::Vec1(), and oofem::XfemElementInterface::XfemElementInterface_createEnrNmatrixAt().
Referenced by assembleGPContrib(), and computeIntForceGPContrib().
|
overridevirtual |
Assembles B.C. contributions to specified vector.
| [in,out] | answer | Vector to assemble to. |
| tStep | Active time step. | |
| type | Type of matrix to assemble. | |
| mode | Mode of value. | |
| s | Numbering scheme. | |
| eNorms | Norms for each dofid. | |
| omp_lock | optional OMP lock to ensure correct update of answer |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 230 of file prescribedgradientbcweak.C.
References oofem::FloatArray::assemble(), oofem::FloatArray::clear(), oofem::IntArray::clear(), computeExtForceElContrib(), computeIntForceGPContrib(), oofem::FEMComponent::domain, giveDispLockDofIDs(), giveMirroredPointOnGammaMinus(), giveRegularDispDofIDs(), mDispLockScaling, mLockNodeInd, mpDisplacementLock, mpTracElNew, and oofem::FloatArray::times().
|
protectedpure virtual |
Implemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Referenced by findHoleCoord().
|
protectedpure virtual |
Implemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
| void oofem::PrescribedGradientBCWeak::clear | ( | ) |
Definition at line 123 of file prescribedgradientbcweak.C.
References mpDisplacementLock, and mpTracElNew.
Referenced by oofem::PrescribedGradientBCWeakPeriodic::postInitialize(), recomputeTractionMesh(), and ~PrescribedGradientBCWeak().
| void oofem::PrescribedGradientBCWeak::compute_x_times_N_1 | ( | FloatMatrix & | o_x_times_N | ) |
Definition at line 718 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::assemble(), oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatMatrix::beProductOf(), oofem::FEMComponent::domain, giveBoundaryCoordVector(), oofem::IntArray::giveSize(), giveTractionLocationArray(), mpTracElNew, mTracDofScaling, oofem::FloatMatrix::resize(), oofem::FloatMatrix::times(), and oofem::Vec1().
Referenced by computeTangent().
| void oofem::PrescribedGradientBCWeak::compute_x_times_N_2 | ( | FloatMatrix & | o_x_times_N | ) |
Definition at line 806 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::assemble(), oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatMatrix::beProductOf(), oofem::FEMComponent::domain, giveBoundaryCoordVector(), oofem::IntArray::giveSize(), giveTractionLocationArray(), mpTracElNew, mTracDofScaling, oofem::FloatMatrix::resize(), oofem::FloatMatrix::times(), and oofem::Vec1().
| void oofem::PrescribedGradientBCWeak::computeDomainBoundingBox | ( | Domain & | iDomain, |
| FloatArray & | oLC, | ||
| FloatArray & | oUC ) |
Definition at line 1774 of file prescribedgradientbcweak.C.
References oofem::DofManager::giveCoordinates(), oofem::Domain::giveDofManager(), oofem::Domain::giveNumberOfDofManagers(), and oofem::Domain::giveNumberOfSpatialDimensions().
| void oofem::PrescribedGradientBCWeak::computeExtForceElContrib | ( | FloatArray & | oContrib, |
| TracSegArray & | iEl, | ||
| int | iDim, | ||
| TimeStep * | tStep ) |
Definition at line 324 of file prescribedgradientbcweak.C.
References oofem::FloatArray::add(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beTProductOf(), oofem::FloatArray::clear(), giveBoundaryCoordVector(), oofem::TracSegArray::giveLength(), oofem::TimeStep::giveTargetTime(), oofem::GeneralBoundaryCondition::giveTimeFunction(), oofem::PrescribedGradientHomogenization::mGradient, oofem::TracSegArray::mIntRule, mTracDofScaling, oofem::FloatMatrix::resizeWithData(), oofem::FloatArray::times(), and oofem::Vec1().
Referenced by assembleVector().
|
overridevirtual |
Computes the homogenized, macroscopic, field (stress).
| sigma | Output quantity (typically stress). |
| tStep | Active time step. |
Implements oofem::PrescribedGradientHomogenization.
Definition at line 893 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::beDyadicProductOf(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beVectorForm(), oofem::FEMComponent::domain, giveBoundaryCoordVector(), giveTracDofIDs(), mLC, mpTracElNew, mTracDofScaling, mUC, oofem::FloatArray::times(), oofem::FloatMatrix::times(), oofem::Vec1(), and oofem::Vec6().
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
| void oofem::PrescribedGradientBCWeak::computeIntForceGPContrib | ( | FloatArray & | oContrib_disp, |
| IntArray & | oDisp_loc_array, | ||
| FloatArray & | oContrib_trac, | ||
| IntArray & | oTrac_loc_array, | ||
| TracSegArray & | iEl, | ||
| GaussPoint & | iGP, | ||
| int | iDim, | ||
| TimeStep * | tStep, | ||
| const FloatArray & | iBndCoord, | ||
| const double & | iScaleFac, | ||
| ValueModeType | mode, | ||
| CharType | type, | ||
| const UnknownNumberingScheme & | s ) |
Definition at line 364 of file prescribedgradientbcweak.C.
References assembleTangentGPContributionNew(), oofem::FloatArray::begin(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beTProductOf(), oofem::FEMComponent::domain, oofem::FloatArray::end(), oofem::IntArray::followedBy(), oofem::FloatArray::fromVector(), oofem::Element::giveDofManager(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::XfemManager::giveEnrichedDofIDs(), oofem::Element::giveLocationArray(), oofem::Element::giveNumberOfDofManagers(), giveRegularDispDofIDs(), giveTracDofIDs(), oofem::TracSegArray::giveTractionLocationArray(), oofem::DofManager::giveUnknownVector(), oofem::TracSegArray::mFirstNode, and oofem::FloatArray::negated().
Referenced by assembleVector().
|
overridevirtual |
Computes the macroscopic tangent for homogenization problems through sensitivity analysis.
| tangent | Output tangent. |
| tStep | Active time step. |
Implements oofem::PrescribedGradientHomogenization.
Definition at line 958 of file prescribedgradientbcweak.C.
References oofem::EngngModel::assemble(), assembleExtraDisplock(), oofem::IntArray::at(), oofem::FloatMatrix::beTProductOf(), oofem::classFactory, compute_x_times_N_1(), oofem::IntArray::contains(), oofem::FEMComponent::domain, E, oofem::IntArray::enumerate(), oofem::Timer::getUtime(), oofem::FEMComponent::giveDomain(), oofem::FloatMatrix::giveNumberOfRows(), oofem::IntArray::giveSize(), giveTractionLocationArray(), mLC, mUC, OOFEM_ERROR, oofem::IntArray::resize(), S, oofem::ST_Petsc, oofem::Timer::startTimer(), oofem::StaticStructural::stiffnessMatrix, oofem::Timer::stopTimer(), and oofem::FloatMatrix::times().
|
protected |
Definition at line 1174 of file prescribedgradientbcweak.C.
References oofem::ArcPosSortFunction4::calcArcPos(), oofem::FEMComponent::domain, findCrackBndIntersecCoord(), findHoleCoord(), findPeriodicityCoord(), giveDispLockDofIDs(), oofem::DofManager::giveGlobalNumber(), oofem::SpatialLocalizer::giveNodeClosestToPoint(), giveTracDofIDs(), mLC, mLockNodeInd, mMeshIsPeriodic, mpDisplacementLock, mpTracElNew, mSpringNodeInd1, mSpringNodeInd2, mSpringNodeInd3, mTractionNodeSpacing, mUC, OOFEM_ERROR, removeClosePoints(), removeSegOverHoles(), oofem::FloatArray::resizeWithValues(), splitSegments(), and oofem::Vec2().
Referenced by oofem::PrescribedGradientBCWeakDirichlet::postInitialize(), and oofem::PrescribedGradientBCWeakPeriodic::postInitialize().
|
protected |
Definition at line 1475 of file prescribedgradientbcweak.C.
References oofem::Element::giveDefaultIntegrationRulePtr(), oofem::FEMComponent::giveDomain(), and oofem::Element::giveIPValue().
|
inlineoverridevirtual |
Reimplemented from oofem::PrescribedGradientHomogenization.
Definition at line 118 of file prescribedgradientbcweak.h.
References oofem::PrescribedGradientHomogenization::domainSize(), oofem::FEMComponent::giveDomain(), and oofem::GeneralBoundaryCondition::giveSetNumber().
|
protected |
Definition at line 1890 of file prescribedgradientbcweak.C.
References oofem::FloatArray::add(), oofem::IntArray::at(), oofem::FloatArray::beScaled(), oofem::FEInterpolation::boundaryGiveNodes(), oofem::FEMComponent::domain, oofem::Set::giveBoundaryList(), oofem::DofManager::giveCoordinates(), oofem::Element::giveDofManager(), oofem::FEMComponent::giveDomain(), oofem::Element::giveGeometryType(), oofem::Element::giveInterpolation(), giveMirroredPointOnGammaPlus(), oofem::IntArray::giveSize(), mTangDistPadding, oofem::XfemElementInterface::partitionEdgeSegment(), pointIsOnGammaPlus(), and oofem::GeneralBoundaryCondition::set.
Referenced by createTractionMesh().
|
protected |
Definition at line 1827 of file prescribedgradientbcweak.C.
References oofem::IntArray::at(), oofem::FEInterpolation::boundaryGiveNodes(), boundaryPointIsOnActiveBoundary(), oofem::FEMComponent::domain, oofem::Set::giveBoundaryList(), oofem::DofManager::giveCoordinates(), oofem::Element::giveDofManager(), oofem::FEMComponent::giveDomain(), oofem::Element::giveGeometryType(), oofem::Element::giveInterpolation(), giveMirroredPointOnGammaPlus(), oofem::FEMComponent::giveNumber(), oofem::IntArray::giveSize(), and oofem::GeneralBoundaryCondition::set.
Referenced by createTractionMesh().
|
protected |
Definition at line 1939 of file prescribedgradientbcweak.C.
References giveMirroredPointOnGammaPlus(), mLC, mMirrorFunction, mPeriodicityNormal, mUC, and oofem::Vec2().
Referenced by createTractionMesh().
| void oofem::PrescribedGradientBCWeak::giveBoundaries | ( | IntArray & | oBoundaries | ) |
Definition at line 1153 of file prescribedgradientbcweak.C.
References oofem::Set::giveBoundaryList(), oofem::FEMComponent::giveDomain(), and oofem::GeneralBoundaryCondition::set.
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
protectedpure virtual |
Implemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Referenced by compute_x_times_N_1(), compute_x_times_N_2(), computeExtForceElContrib(), and computeField().
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 170 of file prescribedgradientbcweak.h.
|
virtual |
Definition at line 713 of file prescribedgradientbcweak.C.
|
inline |
Definition at line 187 of file prescribedgradientbcweak.h.
References mDispLockDofIDs.
Referenced by assemble(), assembleVector(), createTractionMesh(), and giveTractionLocationArray().
|
overridevirtual |
Setups the input record string of receiver.
| input | Dynamic input record to be filled by receiver. |
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 203 of file prescribedgradientbcweak.C.
References _IFT_PrescribedGradientBCWeak_DuplicateCornerNodes, _IFT_PrescribedGradientBCWeak_MirrorFunction, _IFT_PrescribedGradientBCWeak_NumTractionNodesAtIntersections, _IFT_PrescribedGradientBCWeak_NumTractionNodeSpacing, _IFT_PrescribedGradientBCWeak_PeriodicityNormal, _IFT_PrescribedGradientBCWeak_TangDistPadding, _IFT_PrescribedGradientBCWeak_TracDofScaling, _IFT_PrescribedGradientBCWeak_TractionInterpOrder, mDuplicateCornerNodes, mMirrorFunction, mNumTractionNodesAtIntersections, mPeriodicityNormal, mTangDistPadding, mTracDofScaling, mTractionInterpOrder, mTractionNodeSpacing, and oofem::DynamicInputRecord::setField().
|
inlineoverridevirtual |
Implements oofem::FEMComponent.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 171 of file prescribedgradientbcweak.h.
References _IFT_PrescribedGradientBCWeak_Name.
|
overridevirtual |
Gives an internal dof manager from receiver.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 143 of file prescribedgradientbcweak.C.
References mpTracElNew, and OOFEM_ERROR.
|
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.
| rows | List of location arrays for r_s. |
| cols | List of location arrays for c_s. |
| type | Type of matrix to assemble. |
| r_s | Row numbering scheme. |
| c_s | Column numbering scheme. |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 665 of file prescribedgradientbcweak.C.
| void oofem::PrescribedGradientBCWeak::giveMirroredPointOnGammaMinus | ( | FloatArray & | oPosMinus, |
| const FloatArray & | iPosPlus ) const |
Definition at line 1553 of file prescribedgradientbcweak.C.
References M_PI, mLC, mMirrorFunction, mPeriodicityNormal, mUC, oofem::FloatArray::normalize(), OOFEM_ERROR, oofem::FloatArray::printYourself(), and oofem::Vec2().
Referenced by assembleGPContrib(), assembleVector(), oofem::PrescribedGradientBCWeakPeriodic::giveBoundaryCoordVector(), and removeSegOverHoles().
| void oofem::PrescribedGradientBCWeak::giveMirroredPointOnGammaPlus | ( | FloatArray & | oPosPlus, |
| const FloatArray & | iPosMinus ) const |
Definition at line 1663 of file prescribedgradientbcweak.C.
References M_PI, mLC, mMirrorFunction, mPeriodicityNormal, mUC, oofem::FloatArray::normalize(), OOFEM_ERROR, oofem::FloatArray::printYourself(), and oofem::Vec2().
Referenced by findCrackBndIntersecCoord(), findHoleCoord(), and findPeriodicityCoord().
|
overridevirtual |
Gives the number of internal dof managers.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 131 of file prescribedgradientbcweak.C.
References mpDisplacementLock, and mpTracElNew.
|
inline |
Definition at line 174 of file prescribedgradientbcweak.h.
References mpTracElNew.
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
inline |
Definition at line 188 of file prescribedgradientbcweak.h.
References mRegularDispDofIDs.
Referenced by assemble(), assembleExtraDisplock(), assembleVector(), and computeIntForceGPContrib().
|
protected |
Definition at line 1802 of file prescribedgradientbcweak.C.
References mLC, mUC, and OOFEM_ERROR.
Referenced by giveTractionElArcPos().
|
inline |
Definition at line 186 of file prescribedgradientbcweak.h.
References mTractionDofIDs.
Referenced by assembleGPContrib(), computeField(), computeIntForceGPContrib(), createTractionMesh(), giveTraction(), and giveTractionLocationArray().
| void oofem::PrescribedGradientBCWeak::giveTraction | ( | size_t | iElInd, |
| FloatArray & | oStartTraction, | ||
| FloatArray & | oEndTraction, | ||
| ValueModeType | mode, | ||
| TimeStep * | tStep ) |
Definition at line 1159 of file prescribedgradientbcweak.C.
References giveTracDofIDs(), mpTracElNew, mTracDofScaling, and oofem::FloatArray::times().
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
| void oofem::PrescribedGradientBCWeak::giveTractionElArcPos | ( | size_t | iElInd, |
| double & | oXiStart, | ||
| double & | oXiEnd ) const |
Definition at line 1136 of file prescribedgradientbcweak.C.
References oofem::FloatArray::add(), oofem::FloatArray::beScaled(), oofem::ArcPosSortFunction3< T >::calcArcPos(), giveSideIndex(), giveTractionElCoord(), mLC, and mUC.
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
inline |
Definition at line 175 of file prescribedgradientbcweak.h.
References mpTracElNew.
Referenced by giveTractionElArcPos(), giveTractionElNormal(), and oofem::GnuplotExportModule::outputBoundaryCondition().
| void oofem::PrescribedGradientBCWeak::giveTractionElNormal | ( | size_t | iElInd, |
| FloatArray & | oNormal, | ||
| FloatArray & | oTangent ) const |
Definition at line 1123 of file prescribedgradientbcweak.C.
References oofem::FloatArray::beDifferenceOf(), giveTractionElCoord(), oofem::FloatArray::normalize(), and oofem::Vec2().
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
virtual |
Definition at line 671 of file prescribedgradientbcweak.C.
References oofem::IntArray::clear(), oofem::IntArray::followedBy(), giveDispLockDofIDs(), oofem::DofManager::giveLocationArray(), giveTracDofIDs(), mpDisplacementLock, and mpTracElNew.
Referenced by compute_x_times_N_1(), compute_x_times_N_2(), computeTangent(), and oofem::LSPrimaryVariableMapper::mapPrimaryVariables().
|
inlineoverridevirtual |
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 123 of file prescribedgradientbcweak.h.
References oofem::UnknownBT.
|
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.
| ir | Input record to initialize from. |
| priority | Priority of the input record. This is used to determine the order of initialization |
Reimplemented from oofem::ActiveBoundaryCondition.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 154 of file prescribedgradientbcweak.C.
References _IFT_PrescribedGradientBCWeak_DuplicateCornerNodes, _IFT_PrescribedGradientBCWeak_MirrorFunction, _IFT_PrescribedGradientBCWeak_NumTractionNodesAtIntersections, _IFT_PrescribedGradientBCWeak_NumTractionNodeSpacing, _IFT_PrescribedGradientBCWeak_PeriodicityNormal, _IFT_PrescribedGradientBCWeak_TangDistPadding, _IFT_PrescribedGradientBCWeak_TracDofScaling, _IFT_PrescribedGradientBCWeak_TractionInterpOrder, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, mDuplicateCornerNodes, mMirrorFunction, mNumTractionNodesAtIntersections, mPeriodicityNormal, mTangDistPadding, mTracDofScaling, mTractionInterpOrder, mTractionNodeSpacing, OOFEM_ERROR, and oofem::Vec2().
|
protected |
Definition at line 1538 of file prescribedgradientbcweak.C.
References mUC.
Referenced by oofem::PrescribedGradientBCWeakPeriodic::boundaryPointIsOnActiveBoundary(), and findCrackBndIntersecCoord().
|
overridevirtual |
Performs post initialization steps. Called after all components are created and initialized.
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 227 of file prescribedgradientbcweak.C.
Referenced by recomputeTractionMesh().
| void oofem::PrescribedGradientBCWeak::recomputeTractionMesh | ( | ) |
Definition at line 1168 of file prescribedgradientbcweak.C.
References clear(), and postInitialize().
Referenced by oofem::XfemStructuralElementInterface::XfemElementInterface_updateIntegrationRule().
|
protected |
Definition at line 1972 of file prescribedgradientbcweak.C.
References oofem::distance_square().
Referenced by createTractionMesh().
|
protected |
Definition at line 1994 of file prescribedgradientbcweak.C.
References oofem::distance_square(), oofem::FEMComponent::domain, oofem::SpatialLocalizer::giveElementClosestToPoint(), giveMirroredPointOnGammaMinus(), oofem::TracSegArray::mInteriorSegments, and oofem::Vec2().
Referenced by createTractionMesh().
|
inline |
Definition at line 193 of file prescribedgradientbcweak.h.
References mDomainSize.
|
inline |
Definition at line 194 of file prescribedgradientbcweak.h.
References mLC.
|
inline |
Definition at line 197 of file prescribedgradientbcweak.h.
References mMirrorFunction.
|
inline |
Definition at line 192 of file prescribedgradientbcweak.h.
References mPeriodicityNormal.
Referenced by oofem::XfemStructuralElementInterface::XfemElementInterface_updateIntegrationRule().
|
inline |
Definition at line 195 of file prescribedgradientbcweak.h.
References mUC.
|
protected |
Definition at line 1460 of file prescribedgradientbcweak.C.
References oofem::TracSegArray::mInteriorSegments.
Referenced by createTractionMesh().
|
protected |
Definition at line 202 of file prescribedgradientbcweak.h.
Referenced by giveDispLockDofIDs().
|
protected |
Definition at line 258 of file prescribedgradientbcweak.h.
Referenced by assemble(), and assembleVector().
|
protected |
Definition at line 275 of file prescribedgradientbcweak.h.
Referenced by setDomainSize().
|
protected |
0 -> Do not duplicate corner traction nodes 1 -> Duplicate corner traction nodes
Definition at line 239 of file prescribedgradientbcweak.h.
Referenced by giveInputRecord(), and initializeFrom().
|
protected |
Lower corner of domain (assuming a rectangular RVE).
Definition at line 249 of file prescribedgradientbcweak.h.
Referenced by oofem::PrescribedGradientBCWeakDirichlet::checkIfCorner(), oofem::PrescribedGradientBCWeakPeriodic::checkIfCorner(), computeField(), computeTangent(), createTractionMesh(), findPeriodicityCoord(), giveMirroredPointOnGammaMinus(), giveMirroredPointOnGammaPlus(), giveSideIndex(), giveTractionElArcPos(), and setLowerCorner().
|
protected |
Definition at line 257 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), and createTractionMesh().
|
protected |
true -> the traction lives only on gammaPlus, so that we get strong periodicity as a special case. false -> the traction lives everywhere on gamma, so that we get Dirichlet as a special case
Definition at line 232 of file prescribedgradientbcweak.h.
Referenced by createTractionMesh(), oofem::PrescribedGradientBCWeakDirichlet::initializeFrom(), and oofem::PrescribedGradientBCWeakPeriodic::initializeFrom().
|
protected |
Mirror function (i.e. mapping between gamma^+ and gamma^-). 0 -> Standard periodicity, 1 -> Shifted stacking, 2 -> Rotation
Definition at line 281 of file prescribedgradientbcweak.h.
Referenced by findPeriodicityCoord(), giveInputRecord(), giveMirroredPointOnGammaMinus(), giveMirroredPointOnGammaPlus(), initializeFrom(), and setMirrorFunction().
|
protected |
If traction nodes should be inserted where cracks intersect the RVE boundary. 0 -> do not insert node. 1 -> insert node. 2 -> insert duplicated node.
Definition at line 218 of file prescribedgradientbcweak.h.
Referenced by giveInputRecord(), and initializeFrom().
|
protected |
Lock displacements in one node if periodic.
Definition at line 256 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), clear(), createTractionMesh(), giveNumberOfInternalDofManagers(), and giveTractionLocationArray().
|
protected |
Periodicity direction.
Definition at line 273 of file prescribedgradientbcweak.h.
Referenced by findPeriodicityCoord(), giveInputRecord(), giveMirroredPointOnGammaMinus(), giveMirroredPointOnGammaPlus(), initializeFrom(), and setPeriodicityNormal().
|
protected |
Elements for the independent traction discretization.
Definition at line 267 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), clear(), compute_x_times_N_1(), compute_x_times_N_2(), computeField(), createTractionMesh(), giveInternalDofManager(), giveNumberOfInternalDofManagers(), giveNumberOfTractionElements(), giveTraction(), giveTractionElCoord(), and giveTractionLocationArray().
|
protected |
Definition at line 203 of file prescribedgradientbcweak.h.
Referenced by giveRegularDispDofIDs().
|
protected |
Definition at line 260 of file prescribedgradientbcweak.h.
Referenced by assemble(), and createTractionMesh().
|
protected |
Definition at line 261 of file prescribedgradientbcweak.h.
Referenced by assembleExtraDisplock(), and createTractionMesh().
|
protected |
Definition at line 262 of file prescribedgradientbcweak.h.
Referenced by assembleExtraDisplock(), and createTractionMesh().
|
protected |
Definition at line 263 of file prescribedgradientbcweak.h.
Referenced by assemble(), and assembleExtraDisplock().
|
protected |
Parameter for creation of traction mesh
Definition at line 244 of file prescribedgradientbcweak.h.
Referenced by findCrackBndIntersecCoord(), giveInputRecord(), and initializeFrom().
|
protected |
Definition at line 246 of file prescribedgradientbcweak.h.
Referenced by assembleTangentGPContributionNew(), compute_x_times_N_1(), compute_x_times_N_2(), computeExtForceElContrib(), computeField(), giveInputRecord(), giveTraction(), and initializeFrom().
|
protected |
Definition at line 201 of file prescribedgradientbcweak.h.
Referenced by giveTracDofIDs(), and PrescribedGradientBCWeak().
|
protected |
Order of interpolation for traction (0->piecewise constant, 1->piecewise linear).
Definition at line 209 of file prescribedgradientbcweak.h.
Referenced by oofem::PrescribedGradientBCWeakPeriodic::checkIfCorner(), giveInputRecord(), and initializeFrom().
|
protected |
Use every (mTractionNodeSpacing) displacement nodes when constructing the traction element mesh.
Definition at line 224 of file prescribedgradientbcweak.h.
Referenced by createTractionMesh(), giveInputRecord(), and initializeFrom().
|
protected |
Upper corner of domain (assuming a rectangular RVE).
Definition at line 252 of file prescribedgradientbcweak.h.
Referenced by oofem::PrescribedGradientBCWeakDirichlet::checkIfCorner(), oofem::PrescribedGradientBCWeakPeriodic::checkIfCorner(), computeField(), computeTangent(), createTractionMesh(), findPeriodicityCoord(), giveMirroredPointOnGammaMinus(), giveMirroredPointOnGammaPlus(), giveSideIndex(), giveTractionElArcPos(), pointIsOnGammaPlus(), and setUpperCorner().