OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Imposes a prescribed gradient weakly on the boundary with an independent traction discretization. More...
#include <prescribedgradientbcweak.h>
Public Member Functions | |
PrescribedGradientBCWeak (int n, Domain *d) | |
virtual | ~PrescribedGradientBCWeak () |
void | clear () |
virtual double | domainSize () |
virtual int | giveNumberOfInternalDofManagers () |
Gives the number of internal dof managers. More... | |
virtual DofManager * | giveInternalDofManager (int i) |
Gives an internal dof manager from receiver. More... | |
virtual bcType | giveType () const |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | giveInputRecord (DynamicInputRecord &input) |
virtual void | postInitialize () |
Performs post initialization steps. More... | |
virtual void | computeField (FloatArray &sigma, TimeStep *tStep) |
Computes the homogenized, macroscopic, field (stress). More... | |
virtual void | computeTangent (FloatMatrix &E, TimeStep *tStep) |
Computes the macroscopic tangent for homogenization problems through sensitivity analysis. More... | |
virtual void | assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorm=NULL) |
Assembles B.C. More... | |
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) |
virtual void | assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0) |
Assembles B.C. More... | |
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) |
virtual void | giveLocationArrays (std::vector< IntArray > &rows, std::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) |
Gives a list of location arrays that will be assembled. More... | |
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) |
virtual const char * | giveClassName () const |
virtual const char * | giveInputRecordName () const |
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) | |
Constructor. More... | |
virtual | ~ActiveBoundaryCondition () |
Destructor. More... | |
virtual void | addElementSide (int elem, int side) |
Adds element for active boundary condition. More... | |
virtual bool | requiresActiveDofs () |
Checks to see if active boundary condition requires special DOFs. More... | |
virtual bool | isPrimaryDof (ActiveDof *dof) |
Checks to see if the dof is a primary DOF. More... | |
virtual double | giveBcValue (Dof *dof, ValueModeType mode, TimeStep *tStep) |
Returns the prescribed value of a dof (if any). More... | |
virtual bool | hasBc (Dof *dof, TimeStep *tStep) |
Returns the prescribed value of a dof (if any). More... | |
virtual int | giveNumberOfMasterDofs (ActiveDof *dof) |
Allows for active boundary conditions to handle their own special DOF. More... | |
virtual Dof * | giveMasterDof (ActiveDof *dof, int mdof) |
Give the pointer to master dof belonging to active DOF. More... | |
virtual void | computeDofTransformation (ActiveDof *dof, FloatArray &masterContribs) |
virtual double | giveUnknown (PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof) |
Computes the value of the dof. More... | |
virtual double | giveUnknown (ValueModeType mode, TimeStep *tStep, ActiveDof *dof) |
Computes the value of the dof. More... | |
Public Member Functions inherited from oofem::GeneralBoundaryCondition | |
GeneralBoundaryCondition (int n, Domain *d) | |
Constructor. More... | |
virtual | ~GeneralBoundaryCondition () |
Destructor. More... | |
int | giveSetNumber () |
Gives the set number which boundary condition is applied to. More... | |
Function * | giveTimeFunction () |
virtual bcValType | giveBCValType () const |
Returns receiver load type. More... | |
virtual bool | isImposed (TimeStep *tStep) |
Returns nonzero if receiver representing BC is imposed at given time, otherwise returns zero. More... | |
virtual const IntArray & | giveDofIDs () const |
Array with default dofs which b.c. More... | |
virtual bcGeomType | giveBCGeoType () const |
Returns geometry character of boundary condition. More... | |
virtual void | scale (double s) |
Scales the receiver according to given value. 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... | |
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 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... | |
Public Member Functions inherited from oofem::PrescribedGradientHomogenization | |
PrescribedGradientHomogenization () | |
virtual | ~PrescribedGradientHomogenization () |
void | setPrescribedGradient (const FloatMatrix &t) |
Set prescribed gradient. More... | |
void | setPrescribedGradientVoigt (const FloatArray &t) |
Sets the prescribed gradient from the matrix from given voigt notation. More... | |
void | giveGradientVoigt (FloatArray &oGradient) const |
Gives back the applied gradient in Voigt form. More... | |
void | setCenterCoordinate (FloatArray &x) |
Set the center coordinate for the prescribed values to be set for. More... | |
FloatArray & | giveCenterCoordinate () |
Returns the center coordinate. More... | |
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) More... | |
int | mNumTractionNodesAtIntersections |
If traction nodes should be inserted where cracks intersect the RVE boundary. More... | |
int | mTractionNodeSpacing |
Use every (mTractionNodeSpacing) displacement nodes when constructing the traction element mesh. More... | |
bool | mMeshIsPeriodic |
true -> the traction lives only on gammaPlus, so that we get strong periodicity as a special case. More... | |
bool | mDuplicateCornerNodes |
0 -> Do not duplicate corner traction nodes 1 -> Duplicate corner traction nodes More... | |
double | mTangDistPadding |
Parameter for creation of traction mesh. More... | |
double | mTracDofScaling |
FloatArray | mLC |
Lower corner of domain (assuming a rectangular RVE) More... | |
FloatArray | mUC |
Upper corner of domain (assuming a rectangular RVE) More... | |
Node * | mpDisplacementLock |
Lock displacements in one node if periodic. More... | |
int | mLockNodeInd |
double | mDispLockScaling |
int | mSpringNodeInd1 |
int | mSpringNodeInd2 |
int | mSpringNodeInd3 |
double | mSpringPenaltyStiffness |
std::vector< TracSegArray * > | mpTracElNew |
Elements for the independent traction discretization. More... | |
FloatArray | mPeriodicityNormal |
Periodicity direction. More... | |
double | mDomainSize |
int | mMirrorFunction |
Mirror function (i.e. More... | |
Protected Attributes inherited from oofem::GeneralBoundaryCondition | |
int | timeFunction |
Associated load time function. More... | |
bcValType | valType |
Physical meaning of BC value. More... | |
IntArray | dofs |
Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s). More... | |
int | isImposedTimeFunction |
Zero by default - the BC is than always imposed. More... | |
int | set |
Set number for boundary condition to be applied to. More... | |
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... | |
Protected Attributes inherited from oofem::PrescribedGradientHomogenization | |
FloatMatrix | mGradient |
Prescribed gradient . More... | |
FloatArray | mCenterCoord |
Center coordinate . More... | |
Imposes a prescribed gradient weakly on the boundary with an independent traction discretization.
Definition at line 111 of file prescribedgradientbcweak.h.
oofem::PrescribedGradientBCWeak::PrescribedGradientBCWeak | ( | int | n, |
Domain * | d | ||
) |
Definition at line 96 of file prescribedgradientbcweak.C.
References computeDomainBoundingBox(), mDispLockDofIDs, mDispLockScaling, mDomainSize, mDuplicateCornerNodes, mLC, mLockNodeInd, mMeshIsPeriodic, mMirrorFunction, mNumTractionNodesAtIntersections, mpDisplacementLock, mPeriodicityNormal, mRegularDispDofIDs, mSpringNodeInd1, mSpringNodeInd2, mSpringPenaltyStiffness, mTangDistPadding, mTracDofScaling, mTractionInterpOrder, mTractionNodeSpacing, and mUC.
|
virtual |
Definition at line 126 of file prescribedgradientbcweak.C.
References clear().
|
virtual |
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. |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 413 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), assembleGPContrib(), oofem::FloatMatrix::beUnitMatrix(), oofem::FEMComponent::domain, giveDispLockDofIDs(), oofem::Domain::giveDofManager(), oofem::Domain::giveDofManPlaceInArray(), oofem::DofManager::giveLocationArray(), oofem::Domain::giveNumberOfSpatialDimensions(), giveRegularDispDofIDs(), oofem::IntArray::giveSize(), mDispLockScaling, mLockNodeInd, mpDisplacementLock, mpTracElNew, mSpringNodeInd1, mSpringPenaltyStiffness, oofem::FloatMatrix::times(), and oofem::FloatMatrix::zero().
|
virtual |
Definition at line 479 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), oofem::FloatMatrix::at(), oofem::FEMComponent::domain, oofem::IntArray::followedBy(), oofem::Domain::giveDofManager(), oofem::Domain::giveDofManPlaceInArray(), oofem::DofManager::giveLocationArray(), oofem::Domain::giveNumberOfSpatialDimensions(), giveRegularDispDofIDs(), mSpringNodeInd2, mSpringNodeInd3, mSpringPenaltyStiffness, and oofem::FloatMatrix::zero().
Referenced by computeTangent().
|
virtual |
Definition at line 549 of file prescribedgradientbcweak.C.
References oofem::SparseMtrx::assemble(), assembleTangentGPContributionNew(), oofem::FloatMatrix::beTranspositionOf(), oofem::IntArray::clear(), oofem::FloatArray::clear(), oofem::FloatMatrix::clear(), oofem::FEMComponent::domain, oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::GaussPoint::giveGlobalCoordinates(), oofem::Element::giveLocationArray(), giveMirroredPointOnGammaMinus(), oofem::Domain::giveSpatialLocalizer(), giveTracDofIDs(), oofem::TracSegArray::giveTractionLocationArray(), oofem::TracSegArray::mFirstNode, oofem::FloatMatrix::times(), and oofem::FloatMatrix::zero().
Referenced by assemble().
|
protected |
Definition at line 1475 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::giveNumberOfDofManagers(), oofem::Domain::giveNumberOfSpatialDimensions(), oofem::Element::giveSpatialDimension(), oofem::Domain::giveSpatialLocalizer(), oofem::GaussPoint::giveWeight(), oofem::Domain::hasXfemManager(), mTracDofScaling, N, oofem::FloatMatrix::resize(), oofem::FloatMatrix::times(), oofem::XfemElementInterface::XfemElementInterface_createEnrNmatrixAt(), and oofem::FloatMatrix::zero().
Referenced by assembleGPContrib(), and computeIntForceGPContrib().
|
virtual |
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. |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 256 of file prescribedgradientbcweak.C.
References oofem::FloatArray::assemble(), oofem::IntArray::clear(), oofem::FloatArray::clear(), computeExtForceElContrib(), computeIntForceGPContrib(), oofem::FEMComponent::domain, giveDispLockDofIDs(), oofem::Domain::giveDofManager(), oofem::Domain::giveDofManPlaceInArray(), oofem::DofManager::giveLocationArray(), giveMirroredPointOnGammaMinus(), oofem::Domain::giveNumberOfSpatialDimensions(), giveRegularDispDofIDs(), oofem::DofManager::giveUnknownVector(), mDispLockScaling, mLockNodeInd, mpDisplacementLock, mpTracElNew, oofem::FloatArray::push_back(), and oofem::FloatArray::times().
|
protectedpure virtual |
Implemented in oofem::PrescribedGradientBCWeakPeriodic, and oofem::PrescribedGradientBCWeakDirichlet.
Referenced by findHoleCoord().
|
protectedpure virtual |
Implemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
void oofem::PrescribedGradientBCWeak::clear | ( | ) |
Definition at line 131 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 676 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::Domain::giveNumberOfSpatialDimensions(), oofem::IntArray::giveSize(), giveTractionLocationArray(), mpTracElNew, mTracDofScaling, oofem::FloatMatrix::resize(), and oofem::FloatMatrix::times().
Referenced by computeTangent().
void oofem::PrescribedGradientBCWeak::compute_x_times_N_2 | ( | FloatMatrix & | o_x_times_N | ) |
Definition at line 764 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::Domain::giveNumberOfSpatialDimensions(), oofem::IntArray::giveSize(), giveTractionLocationArray(), mpTracElNew, mTracDofScaling, oofem::FloatMatrix::resize(), and oofem::FloatMatrix::times().
void oofem::PrescribedGradientBCWeak::computeDomainBoundingBox | ( | Domain & | iDomain, |
FloatArray & | oLC, | ||
FloatArray & | oUC | ||
) |
Definition at line 1782 of file prescribedgradientbcweak.C.
References oofem::DofManager::giveCoordinates(), oofem::Domain::giveDofManager(), oofem::Domain::giveNumberOfDofManagers(), and oofem::Domain::giveNumberOfSpatialDimensions().
Referenced by PrescribedGradientBCWeak().
void oofem::PrescribedGradientBCWeak::computeExtForceElContrib | ( | FloatArray & | oContrib, |
TracSegArray & | iEl, | ||
int | iDim, | ||
TimeStep * | tStep | ||
) |
Definition at line 328 of file prescribedgradientbcweak.C.
References oofem::FloatArray::add(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beTProductOf(), oofem::FloatArray::clear(), oofem::Function::evaluateAtTime(), giveBoundaryCoordVector(), oofem::TracSegArray::giveLength(), oofem::TimeStep::giveTargetTime(), oofem::GeneralBoundaryCondition::giveTimeFunction(), oofem::PrescribedGradientHomogenization::mGradient, oofem::TracSegArray::mIntRule, mTracDofScaling, oofem::FloatMatrix::resizeWithData(), and oofem::FloatArray::times().
Referenced by assembleVector().
|
virtual |
Computes the homogenized, macroscopic, field (stress).
sigma | Output quantity (typically stress). |
tStep | Active time step. |
Implements oofem::PrescribedGradientHomogenization.
Definition at line 851 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::beDyadicProductOf(), oofem::FloatMatrix::beNMatrixOf(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beVectorForm(), oofem::FEMComponent::domain, giveBoundaryCoordVector(), oofem::Domain::giveNumberOfSpatialDimensions(), giveTracDofIDs(), mLC, mpTracElNew, mTracDofScaling, mUC, oofem::FloatArray::times(), and oofem::FloatMatrix::times().
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 368 of file prescribedgradientbcweak.C.
References oofem::FloatArray::append(), assembleTangentGPContributionNew(), oofem::FloatArray::beProductOf(), oofem::FloatArray::beTProductOf(), oofem::FEMComponent::domain, oofem::IntArray::followedBy(), oofem::Element::giveDofManager(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::XfemManager::giveEnrichedDofIDs(), oofem::Element::giveLocationArray(), oofem::Element::giveNumberOfDofManagers(), giveRegularDispDofIDs(), oofem::Domain::giveSpatialLocalizer(), giveTracDofIDs(), oofem::TracSegArray::giveTractionLocationArray(), oofem::DofManager::giveUnknownVector(), oofem::Domain::giveXfemManager(), oofem::Domain::hasXfemManager(), oofem::TracSegArray::mFirstNode, and oofem::FloatArray::negated().
Referenced by assembleVector().
|
virtual |
Computes the macroscopic tangent for homogenization problems through sensitivity analysis.
tangent | Output tangent. |
tStep | Active time step. |
Implements oofem::PrescribedGradientHomogenization.
Definition at line 916 of file prescribedgradientbcweak.C.
References oofem::FloatMatrix::assemble(), oofem::EngngModel::assemble(), assembleExtraDisplock(), oofem::IntArray::at(), oofem::FloatMatrix::beTProductOf(), oofem::classFactory, compute_x_times_N_1(), oofem::IntArray::contains(), oofem::ClassFactory::createSparseLinSolver(), oofem::ClassFactory::createSparseMtrx(), oofem::FEMComponent::domain, oofem::Timer::getUtime(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveEngngModel(), oofem::Domain::giveNumber(), oofem::FloatMatrix::giveNumberOfRows(), oofem::IntArray::giveSize(), giveTractionLocationArray(), oofem::StructuralMaterial::giveVoigtVectorMask(), mLC, mUC, OOFEM_ERROR, oofem::IntArray::resize(), oofem::FloatMatrix::resize(), S, oofem::ST_Petsc, oofem::Timer::startTimer(), oofem::StaticStructural::stiffnessMatrix, oofem::Timer::stopTimer(), and oofem::FloatMatrix::times().
|
protected |
Definition at line 1141 of file prescribedgradientbcweak.C.
References oofem::DofManager::appendDof(), oofem::FloatArray::at(), oofem::ArcPosSortFunction4::calcArcPos(), oofem::FEMComponent::domain, findCrackBndIntersecCoord(), findHoleCoord(), findPeriodicityCoord(), giveDispLockDofIDs(), oofem::Domain::giveElement(), oofem::DofManager::giveGlobalNumber(), oofem::Element::giveNode(), oofem::SpatialLocalizer::giveNodeClosestToPoint(), oofem::Domain::giveNumberOfDofManagers(), oofem::Domain::giveSpatialLocalizer(), giveTracDofIDs(), oofem::BasicGeometry::giveVertex(), mLC, mLockNodeInd, mMeshIsPeriodic, mpDisplacementLock, mpTracElNew, mSpringNodeInd1, mSpringNodeInd2, mSpringNodeInd3, mTractionNodeSpacing, mUC, OOFEM_ERROR, oofem::FloatArray::push_back(), removeClosePoints(), removeSegOverHoles(), oofem::FloatArray::resizeWithValues(), oofem::sort(), and splitSegments().
Referenced by oofem::PrescribedGradientBCWeakDirichlet::postInitialize(), and oofem::PrescribedGradientBCWeakPeriodic::postInitialize().
|
protected |
Definition at line 1457 of file prescribedgradientbcweak.C.
References oofem::EngngModel::giveCurrentStep(), oofem::Element::giveDefaultIntegrationRulePtr(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveEngngModel(), oofem::Element::giveIPValue(), and max.
|
inlinevirtual |
Reimplemented from oofem::PrescribedGradientHomogenization.
Definition at line 119 of file prescribedgradientbcweak.h.
References oofem::PrescribedGradientHomogenization::domainSize().
|
protected |
Definition at line 1900 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::Domain::giveElement(), oofem::Element::giveInterpolation(), giveMirroredPointOnGammaPlus(), oofem::Domain::giveSet(), oofem::IntArray::giveSize(), oofem::Domain::hasXfemManager(), mTangDistPadding, oofem::XfemElementInterface::partitionEdgeSegment(), and pointIsOnGammaPlus().
Referenced by createTractionMesh().
|
protected |
Definition at line 1835 of file prescribedgradientbcweak.C.
References oofem::IntArray::at(), oofem::FEInterpolation::boundaryGiveNodes(), boundaryPointIsOnActiveBoundary(), oofem::FEMComponent::domain, oofem::Set::giveBoundaryList(), oofem::DofManager::giveCoordinates(), oofem::Domain::giveDofManager(), oofem::Element::giveDofManager(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveInterpolation(), giveMirroredPointOnGammaPlus(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveSet(), and oofem::IntArray::giveSize().
Referenced by createTractionMesh().
|
protected |
Definition at line 1953 of file prescribedgradientbcweak.C.
References giveMirroredPointOnGammaPlus(), mLC, mMirrorFunction, mPeriodicityNormal, mUC, and oofem::FloatArray::push_back().
Referenced by createTractionMesh().
void oofem::PrescribedGradientBCWeak::giveBoundaries | ( | IntArray & | oBoundaries | ) |
Definition at line 1119 of file prescribedgradientbcweak.C.
References oofem::Set::giveBoundaryList(), oofem::FEMComponent::giveDomain(), and oofem::Domain::giveSet().
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().
|
inlinevirtual |
Implements oofem::PrescribedGradientHomogenization.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 170 of file prescribedgradientbcweak.h.
|
virtual |
Definition at line 669 of file prescribedgradientbcweak.C.
|
inline |
Definition at line 187 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), createTractionMesh(), and giveTractionLocationArray().
|
virtual |
Reimplemented from oofem::PrescribedGradientHomogenization.
Definition at line 229 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, oofem::PrescribedGradientHomogenization::giveInputRecord(), oofem::GeneralBoundaryCondition::giveInputRecord(), mDuplicateCornerNodes, mMirrorFunction, mNumTractionNodesAtIntersections, mPeriodicityNormal, mTangDistPadding, mTracDofScaling, mTractionInterpOrder, mTractionNodeSpacing, and oofem::DynamicInputRecord::setField().
|
inlinevirtual |
Implements oofem::FEMComponent.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 171 of file prescribedgradientbcweak.h.
References _IFT_PrescribedGradientBCWeak_Name.
|
virtual |
Gives an internal dof manager from receiver.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 162 of file prescribedgradientbcweak.C.
References mpDisplacementLock, mpTracElNew, and OOFEM_ERROR.
|
virtual |
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 619 of file prescribedgradientbcweak.C.
void oofem::PrescribedGradientBCWeak::giveMirroredPointOnGammaMinus | ( | FloatArray & | oPosMinus, |
const FloatArray & | iPosPlus | ||
) | const |
Definition at line 1543 of file prescribedgradientbcweak.C.
References M_PI, mLC, mMirrorFunction, mPeriodicityNormal, mUC, oofem::FloatArray::normalize(), OOFEM_ERROR, and oofem::FloatArray::printYourself().
Referenced by assembleGPContrib(), assembleVector(), oofem::PrescribedGradientBCWeakPeriodic::giveBoundaryCoordVector(), and removeSegOverHoles().
void oofem::PrescribedGradientBCWeak::giveMirroredPointOnGammaPlus | ( | FloatArray & | oPosPlus, |
const FloatArray & | iPosMinus | ||
) | const |
Definition at line 1662 of file prescribedgradientbcweak.C.
References M_PI, mLC, mMirrorFunction, mPeriodicityNormal, mUC, oofem::FloatArray::normalize(), OOFEM_ERROR, and oofem::FloatArray::printYourself().
Referenced by findCrackBndIntersecCoord(), findHoleCoord(), and findPeriodicityCoord().
|
virtual |
Gives the number of internal dof managers.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 151 of file prescribedgradientbcweak.C.
References mpDisplacementLock, and mpTracElNew.
|
inline |
Definition at line 174 of file prescribedgradientbcweak.h.
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
inline |
Definition at line 188 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleExtraDisplock(), assembleVector(), and computeIntForceGPContrib().
|
protected |
Definition at line 1810 of file prescribedgradientbcweak.C.
References mLC, mUC, and OOFEM_ERROR.
Referenced by giveTractionElArcPos().
|
inline |
Definition at line 186 of file prescribedgradientbcweak.h.
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 1125 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 1102 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.
Referenced by giveTractionElArcPos(), giveTractionElNormal(), and oofem::GnuplotExportModule::outputBoundaryCondition().
void oofem::PrescribedGradientBCWeak::giveTractionElNormal | ( | size_t | iElInd, |
FloatArray & | oNormal, | ||
FloatArray & | oTangent | ||
) | const |
Definition at line 1089 of file prescribedgradientbcweak.C.
References oofem::FloatArray::beDifferenceOf(), giveTractionElCoord(), and oofem::FloatArray::normalize().
Referenced by oofem::GnuplotExportModule::outputBoundaryCondition().
|
virtual |
Definition at line 625 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().
|
inlinevirtual |
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 124 of file prescribedgradientbcweak.h.
References E, oofem::TracSegArray::giveTractionLocationArray(), and oofem::UnknownBT.
|
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::ActiveBoundaryCondition.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 172 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, oofem::ActiveBoundaryCondition::initializeFrom(), oofem::PrescribedGradientHomogenization::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, mDuplicateCornerNodes, mMirrorFunction, mNumTractionNodesAtIntersections, mPeriodicityNormal, mTangDistPadding, mTracDofScaling, mTractionInterpOrder, mTractionNodeSpacing, oofem::FloatArray::normalize(), and OOFEM_ERROR.
Referenced by oofem::PrescribedGradientBCWeakDirichlet::initializeFrom(), and oofem::PrescribedGradientBCWeakPeriodic::initializeFrom().
|
protected |
Definition at line 1528 of file prescribedgradientbcweak.C.
References mUC.
Referenced by oofem::PrescribedGradientBCWeakPeriodic::boundaryPointIsOnActiveBoundary(), and findCrackBndIntersecCoord().
|
virtual |
Performs post initialization steps.
Reimplemented from oofem::GeneralBoundaryCondition.
Reimplemented in oofem::PrescribedGradientBCWeakDirichlet, and oofem::PrescribedGradientBCWeakPeriodic.
Definition at line 253 of file prescribedgradientbcweak.C.
Referenced by recomputeTractionMesh().
void oofem::PrescribedGradientBCWeak::recomputeTractionMesh | ( | ) |
Definition at line 1134 of file prescribedgradientbcweak.C.
References clear(), and postInitialize().
Referenced by oofem::XfemStructuralElementInterface::XfemElementInterface_updateIntegrationRule().
|
protected |
Definition at line 1986 of file prescribedgradientbcweak.C.
Referenced by createTractionMesh().
|
protected |
Definition at line 2008 of file prescribedgradientbcweak.C.
References oofem::FloatArray::distance_square(), oofem::FEMComponent::domain, oofem::SpatialLocalizer::giveElementClosestToPoint(), giveMirroredPointOnGammaMinus(), oofem::Domain::giveSpatialLocalizer(), and oofem::TracSegArray::mInteriorSegments.
Referenced by createTractionMesh().
|
inline |
Definition at line 193 of file prescribedgradientbcweak.h.
|
inline |
Definition at line 194 of file prescribedgradientbcweak.h.
|
inline |
Definition at line 197 of file prescribedgradientbcweak.h.
|
inline |
Definition at line 192 of file prescribedgradientbcweak.h.
Referenced by oofem::XfemStructuralElementInterface::XfemElementInterface_updateIntegrationRule().
|
inline |
Definition at line 195 of file prescribedgradientbcweak.h.
|
protected |
Definition at line 1439 of file prescribedgradientbcweak.C.
References oofem::TracSegArray::mInteriorSegments.
Referenced by createTractionMesh().
|
protected |
Definition at line 202 of file prescribedgradientbcweak.h.
Referenced by PrescribedGradientBCWeak().
|
protected |
Definition at line 258 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), and PrescribedGradientBCWeak().
|
protected |
Definition at line 275 of file prescribedgradientbcweak.h.
Referenced by PrescribedGradientBCWeak().
|
protected |
0 -> Do not duplicate corner traction nodes 1 -> Duplicate corner traction nodes
Definition at line 239 of file prescribedgradientbcweak.h.
Referenced by giveInputRecord(), initializeFrom(), and PrescribedGradientBCWeak().
|
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 PrescribedGradientBCWeak().
|
protected |
Definition at line 257 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), createTractionMesh(), and PrescribedGradientBCWeak().
|
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::PrescribedGradientBCWeakPeriodic::initializeFrom(), oofem::PrescribedGradientBCWeakDirichlet::initializeFrom(), and PrescribedGradientBCWeak().
|
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 PrescribedGradientBCWeak().
|
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(), initializeFrom(), and PrescribedGradientBCWeak().
|
protected |
Lock displacements in one node if periodic.
Definition at line 256 of file prescribedgradientbcweak.h.
Referenced by assemble(), assembleVector(), clear(), createTractionMesh(), giveInternalDofManager(), giveNumberOfInternalDofManagers(), giveTractionLocationArray(), and PrescribedGradientBCWeak().
|
protected |
Periodicity direction.
Definition at line 273 of file prescribedgradientbcweak.h.
Referenced by findPeriodicityCoord(), giveInputRecord(), giveMirroredPointOnGammaMinus(), giveMirroredPointOnGammaPlus(), initializeFrom(), and PrescribedGradientBCWeak().
|
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(), giveTraction(), and giveTractionLocationArray().
|
protected |
Definition at line 203 of file prescribedgradientbcweak.h.
Referenced by PrescribedGradientBCWeak().
|
protected |
Definition at line 260 of file prescribedgradientbcweak.h.
Referenced by assemble(), createTractionMesh(), and PrescribedGradientBCWeak().
|
protected |
Definition at line 261 of file prescribedgradientbcweak.h.
Referenced by assembleExtraDisplock(), createTractionMesh(), and PrescribedGradientBCWeak().
|
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(), assembleExtraDisplock(), and PrescribedGradientBCWeak().
|
protected |
Parameter for creation of traction mesh.
Definition at line 244 of file prescribedgradientbcweak.h.
Referenced by findCrackBndIntersecCoord(), giveInputRecord(), initializeFrom(), and PrescribedGradientBCWeak().
|
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(), initializeFrom(), and PrescribedGradientBCWeak().
|
protected |
Definition at line 197 of file prescribedgradientbcweak.h.
|
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(), initializeFrom(), and PrescribedGradientBCWeak().
|
protected |
Use every (mTractionNodeSpacing) displacement nodes when constructing the traction element mesh.
Definition at line 224 of file prescribedgradientbcweak.h.
Referenced by createTractionMesh(), giveInputRecord(), initializeFrom(), and PrescribedGradientBCWeak().
|
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 PrescribedGradientBCWeak().