|
OOFEM 3.0
|
#include <activebc.h>
Public Member Functions | |
| ActiveBoundaryCondition (int n, Domain *d) | |
| virtual | ~ActiveBoundaryCondition () |
| Destructor. | |
| void | initializeFrom (InputRecord &ir) override |
Methods supporting classical input files. | |
| virtual void | addElementSide (int elem, int side) |
| virtual void | assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0, void *lock=nullptr) |
| virtual void | assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorms=nullptr, void *lock=nullptr) |
| virtual void | giveLocationArrays (std ::vector< IntArray > &rows, std ::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s) |
Functions related to boundary conditions which have to deal with special slave DOFs. | |
Boundary conditions that do not require slave dofs do not need to overload these functions.
| |
| 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 |
| virtual int | giveNumberOfInternalDofManagers () |
| Gives the number of internal dof managers. | |
| virtual DofManager * | giveInternalDofManager (int i) |
| Gives an internal dof manager from receiver. | |
| Function * | giveTimeFunction () |
| int | getIsImposedTimeFunctionNumber () const |
| void | setIsImposedTimeFunctionNumber (int funcIndx) |
| virtual bcValType | giveBCValType () const |
| virtual bool | isImposed (TimeStep *tStep) |
| virtual const IntArray & | giveDofIDs () const |
| virtual bcType | giveType () const |
| virtual bcGeomType | giveBCGeoType () const |
| virtual void | scale (double s) |
| virtual double | giveProperty (int aProperty, TimeStep *tStep) const |
| void | initializeFrom (InputRecord &ir) override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| 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. | |
| virtual const char * | giveClassName () const =0 |
| virtual const char * | giveInputRecordName () const =0 |
| 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 void | postInitialize () |
| Performs post initialization steps. Called after all components are created and initialized. | |
| 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). | |
Additional Inherited Members | |
| 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. | |
Abstract base class for all active boundary conditions. Design of active boundary conditions are subject to change.
Definition at line 63 of file activebc.h.
|
inline |
Constructor. Creates boundary an active condition with given number, belonging to given domain.
| n | Boundary condition number. |
| d | Domain to which new object will belongs. |
Definition at line 71 of file activebc.h.
References oofem::GeneralBoundaryCondition::GeneralBoundaryCondition().
Referenced by oofem::ContactBoundaryCondition::ContactBoundaryCondition(), oofem::PrescribedDispSlipMultiple::giveInternalDofManager(), oofem::PrescribedGradientMultiple::giveInternalDofManager(), oofem::LinearConstraintBC::LinearConstraintBC(), oofem::MixedGradientPressureBC::MixedGradientPressureBC(), oofem::PrescribedDispSlipBCNeumannRC::PrescribedDispSlipBCNeumannRC(), oofem::PrescribedDispSlipMultiple::PrescribedDispSlipMultiple(), oofem::PrescribedGradientBCNeumann::PrescribedGradientBCNeumann(), oofem::PrescribedGradientBCPeriodic::PrescribedGradientBCPeriodic(), oofem::PrescribedGradientBCWeak::PrescribedGradientBCWeak(), oofem::PrescribedGradientMultiple::PrescribedGradientMultiple(), oofem::PrescribedMean::PrescribedMean(), oofem::SurfaceTensionBoundaryCondition::SurfaceTensionBoundaryCondition(), oofem::TransportGradientNeumann::TransportGradientNeumann(), oofem::TransportGradientPeriodic::TransportGradientPeriodic(), oofem::TransverseReinfConstraint::TransverseReinfConstraint(), and oofem::WeakPeriodicBoundaryCondition::WeakPeriodicBoundaryCondition().
|
inlinevirtual |
Destructor.
Definition at line 73 of file activebc.h.
|
inlinevirtual |
Adds element for active boundary condition.
| elem | Element number. |
| side | Side number. |
Reimplemented in oofem::WeakPeriodicBoundaryCondition.
Definition at line 93 of file activebc.h.
References OOFEM_ERROR.
Referenced by initializeFrom().
|
inlinevirtual |
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 in oofem::ContactBoundaryCondition, oofem::LinearConstraintBC, oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureWeakPeriodic, oofem::PrescribedDispSlipBCNeumannRC, oofem::PrescribedGradientBCNeumann, oofem::PrescribedGradientBCWeak, oofem::PrescribedMean, oofem::SurfaceTensionBoundaryCondition, oofem::TransportGradientNeumann, oofem::TransverseReinfConstraint, and oofem::WeakPeriodicBoundaryCondition.
Definition at line 107 of file activebc.h.
References oofem::GeneralBoundaryCondition::scale().
Referenced by oofem::EffectiveTangentAssembler::assembleFromActiveBC(), and oofem::TangentAssembler::assembleFromActiveBC().
|
inlinevirtual |
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 in oofem::ContactBoundaryCondition, oofem::LinearConstraintBC, oofem::MixedGradientPressureDirichlet, oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureWeakPeriodic, oofem::PrescribedDispSlipBCNeumannRC, oofem::PrescribedGradientBCNeumann, oofem::PrescribedGradientBCWeak, oofem::PrescribedMean, oofem::SurfaceTensionBoundaryCondition, oofem::TransportGradientNeumann, oofem::TransverseReinfConstraint, and oofem::WeakPeriodicBoundaryCondition.
Definition at line 121 of file activebc.h.
Referenced by oofem::ExternalForceAssembler::assembleFromActiveBC(), and oofem::InternalForceAssembler::assembleFromActiveBC().
|
inlinevirtual |
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 185 of file activebc.h.
References OOFEM_ERROR.
|
inlinevirtual |
Returns the prescribed value of a dof (if any).
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, and oofem::TransportGradientPeriodic.
Definition at line 160 of file activebc.h.
|
inlinevirtual |
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 in oofem::LinearConstraintBC, oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureWeakPeriodic, oofem::PrescribedDispSlipBCNeumannRC, oofem::PrescribedGradientBCNeumann, oofem::PrescribedGradientBCWeak, oofem::SurfaceTensionBoundaryCondition, oofem::TransportGradientNeumann, and oofem::TransverseReinfConstraint.
Definition at line 137 of file activebc.h.
Referenced by oofem::CompCol::buildInternalStructure(), oofem::DynCompCol::buildInternalStructure(), oofem::DynCompRow::buildInternalStructure(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::PetscSparseMtrx::buildInternalStructure(), oofem::Skyline::buildInternalStructure(), oofem::SkylineUnsym::buildInternalStructure(), and oofem::SymCompCol::buildInternalStructure().
|
inlinevirtual |
Give the pointer to master dof belonging to active DOF.
| dof | Active dof belonging to receiver. |
| mdof | Local master dof number. |
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 181 of file activebc.h.
References OOFEM_ERROR.
|
inlinevirtual |
Allows for active boundary conditions to handle their own special DOF.
| dof | Active dof belonging to receiver. |
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 171 of file activebc.h.
References OOFEM_ERROR.
|
inlinevirtual |
Computes the value of the dof.
| field | Field to take value from. |
| mode | Mode of unknown value. |
| tStep | Time step. |
| dof | Active dof for which to obtain the value. |
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 197 of file activebc.h.
References OOFEM_ERROR.
|
inlinevirtual |
Computes the value of the dof.
| mode | Mode of unknown value. |
| tStep | Time step. |
| dof | Active dof for which to obtain the value. |
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 208 of file activebc.h.
References OOFEM_ERROR.
Returns the prescribed value of a dof (if any).
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 165 of file activebc.h.
|
inlineoverridevirtual |
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::FEMComponent.
Reimplemented in oofem::LinearConstraintBC, oofem::MixedGradientPressureBC, oofem::MixedGradientPressureDirichlet, oofem::MixedGradientPressureNeumann, oofem::MixedGradientPressureWeakPeriodic, oofem::PrescribedDispSlipBCNeumannRC, oofem::PrescribedDispSlipMultiple, oofem::PrescribedGradientBCNeumann, oofem::PrescribedGradientBCPeriodic, oofem::PrescribedGradientBCWeak, oofem::PrescribedGradientBCWeakDirichlet, oofem::PrescribedGradientBCWeakPeriodic, oofem::PrescribedGradientMultiple, oofem::PrescribedMean, oofem::SolutionbasedShapeFunction, oofem::StructuralPenaltyContactBoundaryCondition, oofem::SurfaceTensionBoundaryCondition, oofem::TransportGradientNeumann, oofem::TransportGradientPeriodic, oofem::TransverseReinfConstraint, and oofem::WeakPeriodicBoundaryCondition.
Definition at line 75 of file activebc.h.
References _IFT_ActiveBoundaryCondition_elementSides, addElementSide(), oofem::IntArray::giveSize(), and IR_GIVE_OPTIONAL_FIELD.
Referenced by oofem::StructuralPenaltyContactBoundaryCondition::initializeFrom().
|
inlinevirtual |
Checks to see if the dof is a primary DOF.
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 156 of file activebc.h.
|
inlinevirtual |
Checks to see if active boundary condition requires special DOFs.
Reimplemented in oofem::MixedGradientPressureDirichlet, oofem::PrescribedGradientBCPeriodic, oofem::SolutionbasedShapeFunction, and oofem::TransportGradientPeriodic.
Definition at line 151 of file activebc.h.
Referenced by oofem::Domain::createDofs(), oofem::DGProblem::requiresEquationRenumbering(), oofem::MPMProblem::requiresEquationRenumbering(), oofem::StaticStructural::requiresEquationRenumbering(), oofem::TransientTransportProblem::requiresEquationRenumbering(), and oofem::IncrementalLinearStatic::solveYourselfAt().