OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
#include <prescribedgradientbcweakperiodic.h>
Public Member Functions | |
PrescribedGradientBCWeakPeriodic (int n, Domain *d) | |
virtual | ~PrescribedGradientBCWeakPeriodic () |
virtual IRResultType | initializeFrom (InputRecord *ir) |
Initializes receiver according to object description stored in input record. More... | |
virtual void | postInitialize () |
Performs post initialization steps. More... | |
virtual const char * | giveClassName () const |
virtual const char * | giveInputRecordName () const |
Public Member Functions inherited from oofem::PrescribedGradientBCWeak | |
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 void | giveInputRecord (DynamicInputRecord &input) |
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) |
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 | |
virtual void | giveBoundaryCoordVector (FloatArray &oX, const FloatArray &iPos) const |
virtual void | checkIfCorner (bool &oIsCorner, bool &oDuplicatable, const FloatArray &iPos, const double &iNodeDistTol) const |
virtual bool | boundaryPointIsOnActiveBoundary (const FloatArray &iPos) const |
Protected Member Functions inherited from oofem::PrescribedGradientBCWeak | |
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 |
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) |
Additional Inherited Members | |
Protected Attributes inherited from oofem::PrescribedGradientBCWeak | |
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... | |
Definition at line 16 of file prescribedgradientbcweakperiodic.h.
oofem::PrescribedGradientBCWeakPeriodic::PrescribedGradientBCWeakPeriodic | ( | int | n, |
Domain * | d | ||
) |
Definition at line 15 of file prescribedgradientbcweakperiodic.C.
|
virtual |
Definition at line 19 of file prescribedgradientbcweakperiodic.C.
|
inlineprotectedvirtual |
Implements oofem::PrescribedGradientBCWeak.
Definition at line 33 of file prescribedgradientbcweakperiodic.h.
References oofem::PrescribedGradientBCWeak::pointIsOnGammaPlus().
|
protectedvirtual |
Implements oofem::PrescribedGradientBCWeak.
Definition at line 46 of file prescribedgradientbcweakperiodic.C.
References oofem::FloatArray::distance(), oofem::PrescribedGradientBCWeak::mLC, oofem::PrescribedGradientBCWeak::mTractionInterpOrder, and oofem::PrescribedGradientBCWeak::mUC.
Referenced by giveInputRecordName().
|
protectedvirtual |
Implements oofem::PrescribedGradientBCWeak.
Definition at line 36 of file prescribedgradientbcweakperiodic.C.
References oofem::PrescribedGradientBCWeak::giveMirroredPointOnGammaMinus().
Referenced by giveInputRecordName().
|
inlinevirtual |
Reimplemented from oofem::PrescribedGradientBCWeak.
Definition at line 26 of file prescribedgradientbcweakperiodic.h.
|
inlinevirtual |
Reimplemented from oofem::PrescribedGradientBCWeak.
Definition at line 27 of file prescribedgradientbcweakperiodic.h.
References _IFT_PrescribedGradientBCWeakPeriodic_Name, checkIfCorner(), and giveBoundaryCoordVector().
|
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::PrescribedGradientBCWeak.
Definition at line 21 of file prescribedgradientbcweakperiodic.C.
References oofem::PrescribedGradientBCWeak::initializeFrom(), and oofem::PrescribedGradientBCWeak::mMeshIsPeriodic.
|
virtual |
Performs post initialization steps.
Reimplemented from oofem::PrescribedGradientBCWeak.
Definition at line 28 of file prescribedgradientbcweakperiodic.C.
References oofem::PrescribedGradientBCWeak::clear(), and oofem::PrescribedGradientBCWeak::createTractionMesh().