OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
#include <delamination.h>
Public Member Functions | |
Delamination (int n, XfemManager *xm, Domain *aDomain) | |
virtual int | instanciateYourself (DataReader &dr) |
virtual const char * | giveClassName () const |
virtual const char * | giveInputRecordName () const |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | appendInputRecords (DynamicDataReader &oDR) |
double | giveDelamXiCoord () const |
double | giveBoundingDelamXiCoord () const |
int | giveDelamInterfaceNum () const |
IntArray | giveDelamCrossSectionNum () const |
double | giveInitiationFactor () const |
virtual bool | hasPropagatingFronts () const |
virtual bool | hasInitiationCriteria () |
virtual void | propagateFronts (bool &oFrontsHavePropagated) |
virtual void | findInitiationFronts (bool &failureChecked, const IntArray &CSnumbers, std::vector< IntArray > &CSinterfaceNumbers, std::vector< IntArray > &CSDofManNumbers, std::vector< FloatArray > &initiationFactors, TimeStep *tStep) |
virtual void | evaluateEnrFuncInNode (std::vector< double > &oEnrFunc, const Node &iNode) const |
virtual void | evaluateEnrFuncAt (std::vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const |
virtual void | evaluateEnrFuncAt (std::vector< double > &oEnrFunc, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const IntArray &iElNodes) const |
virtual void | evaluateEnrFuncDerivAt (std::vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl) const |
virtual void | evaluateEnrFuncDerivAt (std::vector< FloatArray > &oEnrFuncDeriv, const FloatArray &iGlobalCoord, const FloatArray &iLocalCoord, int iNodeInd, const Element &iEl, const FloatArray &iN, const FloatMatrix &idNdX, const IntArray &iElNodes) const |
virtual void | evalLevelSetNormal (double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const |
Evaluate the normal direction level set in the point iGlobalCoord. More... | |
virtual void | evalLevelSetTangential (double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const |
Evaluate the tangential direction level set in the point iGlobalCoord. More... | |
virtual void | evalGradLevelSetNormal (FloatArray &oGradLevelSet, const FloatArray &iGlobalCoord, const FloatMatrix &idNdX, const IntArray &iNodeInd) const |
Evaluate the gradient of the normal direction level set in the point iGlobalCoord. More... | |
void | evaluateEnrFuncAt (std::vector< double > &oEnrFunc, const FloatArray &iPos, const double &iLevelSet) const |
Public Member Functions inherited from oofem::ListBasedEI | |
ListBasedEI (int n, XfemManager *xm, Domain *aDomain) | |
virtual | ~ListBasedEI () |
virtual void | updateGeometry () |
virtual void | initiateFronts (bool &oFrontsHavePropagated, IntArray &initiateDofMans) |
virtual void | updateNodeEnrMarker (XfemManager &ixFemMan) |
virtual bool | giveElementTipCoord (FloatArray &oCoord, double &oArcPos, Element &iEl, const FloatArray &iElCenter) const |
virtual void | giveBoundingSphere (FloatArray &oCenter, double &oRadius) |
Public Member Functions inherited from oofem::EnrichmentItem | |
EnrichmentItem (int n, XfemManager *xm, Domain *aDomain) | |
Constructor / destructor. More... | |
virtual | ~EnrichmentItem () |
virtual void | giveInputRecord (DynamicInputRecord &input) |
Note the special treatment here, the "normal" syntax would be giveInputRecord(DynamicInputRecord &input). More... | |
const IntArray * | giveEnrichesDofsWithIdArray () const |
int | giveNumberOfEnrDofs () const |
virtual void | writeVtkDebug () const |
bool | isElementEnriched (const Element *element) const |
bool | isDofManEnriched (const DofManager &iDMan) const |
int | giveNumDofManEnrichments (const DofManager &iDMan) const |
virtual bool | canModifyMaterial () const |
virtual bool | isMaterialModified (GaussPoint &iGP, Element &iEl, CrossSection *&opCS) const |
virtual void | updateGeometry (FailureCriteriaStatus *fc, TimeStep *tStep) |
virtual void | updateGeometry (TimeStep *tStep) |
int | giveStartOfDofIdPool () const |
int | giveEndOfDofIdPool () const |
virtual int | giveDofPoolSize () const |
virtual void | computeEnrichedDofManDofIdArray (IntArray &oDofIdArray, DofManager &iDMan) |
Compute Id's of enriched dofs for a given DofManager. More... | |
virtual void | giveEIDofIdArray (IntArray &answer) const |
virtual void | givePotentialEIDofIdArray (IntArray &answer) const |
bool | evalLevelSetNormalInNode (double &oLevelSet, int iNodeInd, const FloatArray &iGlobalCoord) const |
bool | evalLevelSetTangInNode (double &oLevelSet, int iNodeInd, const FloatArray &iGlobalCoord) const |
bool | evalNodeEnrMarkerInNode (double &oNodeEnrMarker, int iNodeInd) const |
virtual void | createEnrichedDofs () |
PropagationLaw * | givePropagationLaw () |
void | setPropagationLaw (PropagationLaw *ipPropagationLaw) |
bool | hasPropagationLaw () |
virtual void | callGnuplotExportModule (GnuplotExportModule &iExpMod, TimeStep *tStep) |
const std::unordered_map< int, NodeEnrichmentType > & | giveEnrNodeMap () const |
EnrichmentFront * | giveEnrichmentFrontStart () |
void | setEnrichmentFrontStart (EnrichmentFront *ipEnrichmentFrontStart, bool iDeleteOld=true) |
EnrichmentFront * | giveEnrichmentFrontEnd () |
void | setEnrichmentFrontEnd (EnrichmentFront *ipEnrichmentFrontEnd, bool iDeleteOld=true) |
bool | tipIsTouchingEI (const TipInfo &iTipInfo) |
void | setEnrichmentFunction (EnrichmentFunction *ipEnrichmentFunc) |
Public Member Functions inherited from oofem::FEMComponent | |
FEMComponent (int n, Domain *d) | |
Regular constructor, creates component with given number and belonging to given domain. More... | |
virtual | ~FEMComponent () |
Virtual destructor. More... | |
Domain * | giveDomain () const |
virtual void | setDomain (Domain *d) |
Sets associated Domain. More... | |
int | giveNumber () const |
void | setNumber (int num) |
Sets number of receiver. More... | |
virtual void | updateLocalNumbering (EntityRenumberingFunctor &f) |
Local renumbering support. More... | |
virtual contextIOResultType | saveContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Stores receiver state to output stream. More... | |
virtual contextIOResultType | restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL) |
Restores the receiver state previously written in stream. More... | |
virtual int | checkConsistency () |
Allows programmer to test some internal data, before computation begins. More... | |
virtual void | printOutputAt (FILE *file, TimeStep *tStep) |
Prints output of receiver to stream, for given time step. More... | |
virtual void | printYourself () |
Prints receiver state on stdout. Useful for debugging. More... | |
virtual Interface * | giveInterface (InterfaceType t) |
Interface requesting service. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
Material * | mat |
IntArray | interfaceNum |
IntArray | crossSectionNum |
int | matNum |
double | delamXiCoord |
double | xiBottom |
double | xiTop |
double | initiationFactor |
double | initiationRadius |
bool | recoverStresses |
Protected Attributes inherited from oofem::ListBasedEI | |
std::vector< int > | dofManList |
double | xi |
int | setNumber |
Protected Attributes inherited from oofem::EnrichmentItem | |
EnrichmentFunction * | mpEnrichmentFunc |
EnrichmentFront * | mpEnrichmentFrontStart |
EnrichmentFront * | mpEnrichmentFrontEnd |
int | mEnrFrontIndex |
mEnrFrontIndex: nonzero if an enrichment front is present, zero otherwise. More... | |
PropagationLaw * | mpPropagationLaw |
int | mPropLawIndex |
mPropLawIndex: nonzero if a propagation law is present, zero otherwise. More... | |
bool | mInheritBoundaryConditions |
If newly created enriched dofs should inherit boundary conditions from the node they are introduced in. More... | |
bool | mInheritOrderedBoundaryConditions |
int | startOfDofIdPool |
int | endOfDofIdPool |
IntArray | mpEnrichesDofsWithIdArray |
Geometry associated with EnrichmentItem. More... | |
std::unordered_map< int, double > | mLevelSetNormalDirMap |
std::unordered_map< int, double > | mLevelSetTangDirMap |
std::unordered_map< int, NodeEnrichmentType > | mNodeEnrMarkerMap |
IntArray | mEIDofIdArray |
bool | mLevelSetsNeedUpdate |
const double | mLevelSetTol2 |
Protected Attributes inherited from oofem::FEMComponent | |
int | number |
Component number. More... | |
Domain * | domain |
Link to domain object, useful for communicating with other FEM components. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from oofem::EnrichmentItem | |
static double | calcXiZeroLevel (const double &iQ1, const double &iQ2) |
static void | calcPolarCoord (double &oR, double &oTheta, const FloatArray &iOrigin, const FloatArray &iPos, const FloatArray &iN, const FloatArray &iT, const EfInput &iEfInput, bool iFlipTangent) |
Static Protected Attributes inherited from oofem::EnrichmentItem | |
static const double | mLevelSetTol = 1.0e-12 |
static const double | mLevelSetRelTol = 1.0e-3 |
Definition at line 58 of file delamination.h.
oofem::Delamination::Delamination | ( | int | n, |
XfemManager * | xm, | ||
Domain * | aDomain | ||
) |
|
virtual |
Implements oofem::EnrichmentItem.
Definition at line 508 of file delamination.C.
References _IFT_Delamination_averageStresses, _IFT_Delamination_CohesiveZoneMaterial, _IFT_Delamination_csnum, _IFT_Delamination_initiationFactor, _IFT_Delamination_initiationRadius, _IFT_Delamination_interfacenum, _IFT_EnrichmentItem_front, _IFT_EnrichmentItem_propagationlaw, _IFT_ListBasedEI_list, oofem::IntArray::at(), crossSectionNum, oofem::ListBasedEI::dofManList, oofem::PropagationLaw::giveInputRecord(), oofem::EnrichmentFunction::giveInputRecord(), oofem::EnrichmentFront::giveInputRecord(), oofem::FEMComponent::giveInputRecord(), giveInputRecordName(), oofem::DynamicInputRecord::hasField(), initiationFactor, initiationRadius, oofem::DynamicDataReader::insertInputRecord(), interfaceNum, oofem::DataReader::IR_enrichFrontRec, oofem::DataReader::IR_enrichFuncRec, oofem::DataReader::IR_enrichItemRec, oofem::DataReader::IR_geoRec, oofem::DataReader::IR_propagationLawRec, matNum, oofem::EnrichmentItem::mEnrFrontIndex, oofem::EnrichmentItem::mpEnrichmentFrontEnd, oofem::EnrichmentItem::mpEnrichmentFrontStart, oofem::EnrichmentItem::mpEnrichmentFunc, oofem::EnrichmentItem::mpPropagationLaw, oofem::EnrichmentItem::mPropLawIndex, recoverStresses, oofem::IntArray::resize(), oofem::DynamicInputRecord::setField(), and oofem::DynamicInputRecord::setRecordKeywordField().
|
inlinevirtual |
Evaluate the gradient of the normal direction level set in the point iGlobalCoord.
To improve performance, basis function values corresponding to that point should also be provided.
Implements oofem::EnrichmentItem.
Definition at line 108 of file delamination.h.
References OOFEM_ERROR.
|
virtual |
Evaluate the normal direction level set in the point iGlobalCoord.
To improve performance, basis function values corresponding to that point should also be provided.
Implements oofem::EnrichmentItem.
Definition at line 570 of file delamination.C.
|
inlinevirtual |
Evaluate the tangential direction level set in the point iGlobalCoord.
To improve performance, basis function values corresponding to that point should also be provided.
Implements oofem::EnrichmentItem.
Definition at line 107 of file delamination.h.
References OOFEM_ERROR.
|
virtual |
Implements oofem::EnrichmentItem.
Definition at line 334 of file delamination.C.
References oofem::FloatArray::at(), oofem::EnrichmentFunction::evaluateEnrFuncAt(), giveDelamXiCoord(), oofem::FloatArray::giveSize(), oofem::EnrichmentItem::mpEnrichmentFunc, and OOFEM_ERROR.
Referenced by oofem::Shell7BaseXFEM::computeStiffnessMatrix(), evaluateEnrFuncAt(), and oofem::Shell7BaseXFEM::OLDcomputeStiffnessMatrix().
|
virtual |
Implements oofem::EnrichmentItem.
Definition at line 347 of file delamination.C.
References evaluateEnrFuncAt().
void oofem::Delamination::evaluateEnrFuncAt | ( | std::vector< double > & | oEnrFunc, |
const FloatArray & | iPos, | ||
const double & | iLevelSet | ||
) | const |
Definition at line 576 of file delamination.C.
References oofem::EnrichmentFunction::evaluateEnrFuncAt(), and oofem::EnrichmentItem::mpEnrichmentFunc.
|
inlinevirtual |
Implements oofem::EnrichmentItem.
Definition at line 103 of file delamination.h.
References OOFEM_ERROR.
|
inlinevirtual |
Implements oofem::EnrichmentItem.
Definition at line 104 of file delamination.h.
References OOFEM_ERROR.
|
inlinevirtual |
Implements oofem::EnrichmentItem.
Definition at line 98 of file delamination.h.
References OOFEM_ERROR.
|
virtual |
Definition at line 280 of file delamination.C.
References oofem::IntArray::at(), oofem::SpatialLocalizer::giveAllNodesWithinBox(), oofem::Domain::giveCrossSection(), oofem::FEMComponent::giveDomain(), oofem::Set::giveElementList(), oofem::Domain::giveGlobalElement(), oofem::Domain::giveNode(), oofem::Node::giveNodeCoordinates(), oofem::Domain::giveSet(), oofem::IntArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), initiationRadius, and recoverStresses.
|
inline |
Definition at line 87 of file delamination.h.
Referenced by oofem::Shell7BaseXFEM::evaluateHeavisideXi().
|
inlinevirtual |
Reimplemented from oofem::ListBasedEI.
Definition at line 81 of file delamination.h.
Referenced by instanciateYourself().
|
inline |
Definition at line 89 of file delamination.h.
Referenced by propagateFronts().
|
inline |
Definition at line 88 of file delamination.h.
References oofem::IntArray::at().
Referenced by oofem::Shell7BaseXFEM::computeCohesiveForces(), oofem::Shell7BaseXFEM::computeCohesiveTangentAt(), oofem::Shell7BaseXFEM::giveRecoveredTransverseInterfaceStress(), and oofem::Shell7BaseXFEM::recoverShearStress().
|
inline |
Definition at line 86 of file delamination.h.
Referenced by oofem::Shell7BaseXFEM::computeCohesiveForces(), oofem::Shell7BaseXFEM::computeCohesiveTangentAt(), oofem::Shell7BaseXFEM::computeStiffnessMatrix(), evaluateEnrFuncAt(), oofem::Shell7BaseXFEM::evaluateHeavisideXi(), oofem::Shell7BaseXFEM::giveRecoveredTransverseInterfaceStress(), oofem::Shell7BaseXFEM::OLDcomputeStiffnessMatrix(), and oofem::Shell7BaseXFEM::recoverShearStress().
|
inline |
Definition at line 90 of file delamination.h.
|
inlinevirtual |
Reimplemented from oofem::ListBasedEI.
Definition at line 82 of file delamination.h.
References _IFT_Delamination_Name.
Referenced by appendInputRecords().
|
virtual |
Reimplemented from oofem::EnrichmentItem.
Definition at line 220 of file delamination.C.
References initiationFactor.
|
inlinevirtual |
Reimplemented from oofem::EnrichmentItem.
Definition at line 92 of file delamination.h.
|
virtual |
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.
ir | Input record to initialize from. |
Reimplemented from oofem::EnrichmentItem.
Definition at line 353 of file delamination.C.
References _IFT_Delamination_averageStresses, _IFT_Delamination_CohesiveZoneMaterial, _IFT_Delamination_csnum, _IFT_Delamination_initiationFactor, _IFT_Delamination_initiationRadius, _IFT_Delamination_interfacenum, oofem::FloatArray::append(), oofem::IntArray::at(), oofem::FloatArray::at(), crossSectionNum, oofem::CS_Thickness, delamXiCoord, oofem::LayeredCrossSection::give(), oofem::Domain::giveCrossSection(), oofem::FEMComponent::giveDomain(), oofem::LayeredCrossSection::giveLayerThickness(), oofem::Domain::giveMaterial(), oofem::LayeredCrossSection::giveNumberOfLayers(), oofem::IntArray::giveSize(), oofem::InputRecord::hasField(), oofem::EnrichmentItem::initializeFrom(), initiationFactor, initiationRadius, interfaceNum, IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_BAD_FORMAT, oofem::IRRT_OK, mat, matNum, OOFEM_ERROR, OOFEM_WARNING, recoverStresses, xiBottom, and xiTop.
|
virtual |
Implements oofem::EnrichmentItem.
Definition at line 72 of file delamination.C.
References _IFT_ListBasedEI_list, oofem::IntArray::at(), oofem::classFactory, oofem::ClassFactory::createEnrichmentFront(), oofem::ClassFactory::createEnrichmentFunction(), oofem::ClassFactory::createPropagationLaw(), oofem::ListBasedEI::dofManList, oofem::FailureCriteriaStatus::el, oofem::EnrichmentItem::endOfDofIdPool, oofem::IntArray::followedBy(), giveClassName(), oofem::Element::giveDofManager(), oofem::Element::giveDofManArray(), oofem::EnrichmentItem::giveDofPoolSize(), oofem::FEMComponent::giveDomain(), oofem::DataReader::giveInputRecord(), oofem::Domain::giveNextFreeDofID(), oofem::FEMComponent::giveNumber(), oofem::Element::giveNumberOfDofManagers(), oofem::InputRecord::giveRecordKeywordField(), oofem::IntArray::giveSize(), oofem::Domain::giveXfemManager(), oofem::FailureCriteriaStatus::hasFailed(), oofem::PropagationLaw::initializeFrom(), oofem::EnrichmentFunction::initializeFrom(), oofem::EnrichmentFront::initializeFrom(), oofem::DataReader::IR_enrichFrontRec, oofem::DataReader::IR_enrichFuncRec, oofem::DataReader::IR_geoRec, IR_GIVE_FIELD, oofem::DataReader::IR_propagationLawRec, oofem::IRRT_OK, oofem::EnrichmentItem::mEnrFrontIndex, oofem::EnrichmentItem::mpEnrichmentFrontEnd, oofem::EnrichmentItem::mpEnrichmentFrontStart, oofem::EnrichmentItem::mpEnrichmentFunc, oofem::EnrichmentItem::mpPropagationLaw, oofem::EnrichmentItem::mPropLawIndex, OOFEM_ERROR, oofem::InputRecord::report_error(), oofem::sort(), oofem::EnrichmentItem::startOfDofIdPool, oofem::ListBasedEI::updateGeometry(), and oofem::ListBasedEI::updateNodeEnrMarker().
|
virtual |
TODO: this should actually not inlcude the nodes at the boundary of the delamination, since this will propagate the delamination outside.
Reimplemented from oofem::ListBasedEI.
Definition at line 231 of file delamination.C.
References oofem::ListBasedEI::dofManList, oofem::IntArray::findCommonValuesSorted(), oofem::IntArray::followedBy(), oofem::Domain::giveCrossSection(), giveDelamCrossSectionNum(), oofem::Element::giveDofManArray(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveElement(), oofem::Set::giveElementList(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveSet(), oofem::CrossSection::giveSetNumber(), oofem::EnrichmentItem::mpEnrichmentFrontStart, oofem::EnrichmentItem::mpPropagationLaw, oofem::TipPropagation::mPropagationDofManNumbers, oofem::PropagationLaw::propagateInterface(), oofem::IntArray::sort(), oofem::sort(), and oofem::ListBasedEI::updateGeometry().
|
protected |
Definition at line 63 of file delamination.h.
Referenced by appendInputRecords(), and initializeFrom().
|
protected |
Definition at line 65 of file delamination.h.
Referenced by initializeFrom().
|
protected |
Definition at line 73 of file delamination.h.
Referenced by appendInputRecords(), hasInitiationCriteria(), and initializeFrom().
|
protected |
Definition at line 74 of file delamination.h.
Referenced by appendInputRecords(), findInitiationFronts(), and initializeFrom().
|
protected |
Definition at line 62 of file delamination.h.
Referenced by appendInputRecords(), and initializeFrom().
|
protected |
Definition at line 61 of file delamination.h.
Referenced by initializeFrom().
|
protected |
Definition at line 64 of file delamination.h.
Referenced by appendInputRecords(), and initializeFrom().
|
protected |
Definition at line 75 of file delamination.h.
Referenced by appendInputRecords(), findInitiationFronts(), and initializeFrom().
|
protected |
Definition at line 68 of file delamination.h.
Referenced by initializeFrom().
|
protected |
Definition at line 69 of file delamination.h.
Referenced by initializeFrom().