|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
General class for boundary condition that prolongates macroscopic fields to incompressible flow. More...
#include <mixedgradientpressurebc.h>
Inheritance diagram for oofem::MixedGradientPressureBC:
Collaboration diagram for oofem::MixedGradientPressureBC:Public Member Functions | |
| MixedGradientPressureBC (int n, Domain *d) | |
| Creates boundary condition with given number, belonging to given domain. More... | |
| virtual | ~MixedGradientPressureBC () |
| Destructor. More... | |
| virtual bcType | giveType () const |
| Not relevant for this boundary condition. More... | |
| virtual IRResultType | initializeFrom (InputRecord *ir) |
| Initializes receiver according to object description stored in input record. More... | |
| double | domainSize () |
| Computes the size (including pores) by surface integral over the domain. More... | |
| virtual void | computeFields (FloatArray &stressDev, double &vol, TimeStep *tStep)=0 |
| Computes the homogenized fields through sensitivity analysis. More... | |
| virtual void | computeTangents (FloatMatrix &Ed, FloatArray &Ep, FloatArray &Cd, double &Cp, TimeStep *tStep)=0 |
| Computes the macroscopic tangents through sensitivity analysis. More... | |
| virtual void | setPrescribedPressure (double p)=0 |
| Set prescribed pressure. More... | |
| virtual void | setPrescribedDeviatoricGradientFromVoigt (const FloatArray &ddev)=0 |
| Sets the prescribed tensor from the matrix from given Voigt notation. More... | |
Public Member Functions inherited from oofem::ActiveBoundaryCondition | |
| ActiveBoundaryCondition (int n, Domain *d) | |
| Constructor. More... | |
| virtual | ~ActiveBoundaryCondition () |
| Destructor. More... | |
| 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 | assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorms=NULL) |
| Assembles B.C. More... | |
| 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 | 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... | |
| virtual int | giveNumberOfInternalDofManagers () |
| Gives the number of internal dof managers. More... | |
| virtual DofManager * | giveInternalDofManager (int i) |
| Gives an internal dof manager from receiver. 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 void | postInitialize () |
| Performs post initialization steps. More... | |
| virtual void | giveInputRecord (DynamicInputRecord &input) |
| Setups the input record string of receiver. 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... | |
| virtual const char * | giveClassName () const =0 |
| virtual const char * | giveInputRecordName () const =0 |
| 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... | |
Additional Inherited Members | |
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... | |
General class for boundary condition that prolongates macroscopic fields to incompressible flow.
Both the deviatoric strain rate, and the pressure is controlled.
Definition at line 58 of file mixedgradientpressurebc.h.
|
inline |
Creates boundary condition with given number, belonging to given domain.
| n | Boundary condition number. |
| d | Domain to which new object will belongs. |
Definition at line 66 of file mixedgradientpressurebc.h.
|
inlinevirtual |
Destructor.
Definition at line 69 of file mixedgradientpressurebc.h.
|
pure virtual |
Computes the homogenized fields through sensitivity analysis.
| [out] | stressDev | Computes the homogenized deviatoric stress. |
| [out] | vol | Computes the homogenized volumetric gradient. |
| tStep | Time step for which field to obtain. |
Implemented in oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureDirichlet, and oofem::MixedGradientPressureWeakPeriodic.
Referenced by oofem::FE2FluidMaterial::computeDeviatoricStressVector().
|
pure virtual |
Computes the macroscopic tangents through sensitivity analysis.
| [out] | Ed | Tangent . |
| [out] | Ep | Tangent . |
| [out] | Cd | Tangent . |
| [out] | Cp | Tangent . |
| tStep | Time step for the tangents. |
Implemented in oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureDirichlet, and oofem::MixedGradientPressureWeakPeriodic.
Referenced by oofem::FE2FluidMaterialStatus::computeTangents().
| double oofem::MixedGradientPressureBC::domainSize | ( | ) |
Computes the size (including pores) by surface integral over the domain.
Definition at line 43 of file mixedgradientpressurebc.C.
References oofem::IntArray::at(), oofem::FEMComponent::domain, oofem::FEInterpolation::evalNXIntegral(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveElement(), oofem::Element::giveInterpolation(), oofem::Domain::giveNumberOfSpatialDimensions(), oofem::Domain::giveSet(), and oofem::IntArray::giveSize().
Referenced by oofem::MixedGradientPressureWeakPeriodic::assembleVector(), oofem::MixedGradientPressureDirichlet::assembleVector(), oofem::MixedGradientPressureNeumann::assembleVector(), oofem::MixedGradientPressureWeakPeriodic::computeFields(), oofem::MixedGradientPressureDirichlet::computeFields(), oofem::MixedGradientPressureNeumann::computeFields(), oofem::MixedGradientPressureWeakPeriodic::computeTangents(), oofem::MixedGradientPressureDirichlet::computeTangents(), oofem::MixedGradientPressureNeumann::computeTangents(), and oofem::FE2FluidMaterialStatus::updateYourself().
|
inlinevirtual |
Not relevant for this boundary condition.
Reimplemented from oofem::GeneralBoundaryCondition.
Reimplemented in oofem::MixedGradientPressureNeumann, and oofem::MixedGradientPressureWeakPeriodic.
Definition at line 72 of file mixedgradientpressurebc.h.
References oofem::UnknownBT.
|
virtual |
Initializes receiver according to object description stored in input record.
The input record contains two fields;
Reimplemented from oofem::ActiveBoundaryCondition.
Reimplemented in oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureDirichlet, and oofem::MixedGradientPressureWeakPeriodic.
Definition at line 61 of file mixedgradientpressurebc.C.
References _IFT_MixedGradientPressure_devGradient, _IFT_MixedGradientPressure_pressure, oofem::GeneralBoundaryCondition::initializeFrom(), IR_GIVE_FIELD, setPrescribedDeviatoricGradientFromVoigt(), and setPrescribedPressure().
Referenced by oofem::MixedGradientPressureWeakPeriodic::initializeFrom(), oofem::MixedGradientPressureDirichlet::initializeFrom(), and oofem::MixedGradientPressureNeumann::initializeFrom().
|
pure virtual |
Sets the prescribed tensor from the matrix from given Voigt notation.
Assumes use of double values (gamma) for off-diagonal, usually the way for strain in Voigt form.
| ddev | Vector in Voigt format. |
Implemented in oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureDirichlet, and oofem::MixedGradientPressureWeakPeriodic.
Referenced by oofem::FE2FluidMaterial::computeDeviatoricStressVector(), and initializeFrom().
|
pure virtual |
Set prescribed pressure.
| p | New prescribed pressure. |
Implemented in oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureDirichlet, and oofem::MixedGradientPressureWeakPeriodic.
Referenced by oofem::FE2FluidMaterial::computeDeviatoricStressVector(), and initializeFrom().