|
OOFEM 3.0
|
#include <interactionpfemparticle.h>
Public Member Functions | |
| InteractionPFEMParticle (int n, Domain *aDomain) | |
| virtual | ~InteractionPFEMParticle (void) |
| void | initializeFrom (InputRecord &ir, int priority) override |
| int | checkConsistency () override |
| void | updateYourself (TimeStep *tStep) override |
| void | givePrescribedUnknownVector (FloatArray &answer, const IntArray &dofMask, ValueModeType mode, TimeStep *stepN) override |
| void | giveCoupledVelocities (FloatArray &answer, TimeStep *stepN) |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| void | drawScalar (oofegGraphicContext &gc) override |
| Public Member Functions inherited from oofem::PFEMParticle | |
| PFEMParticle (int n, Domain *aDomain) | |
| virtual | ~PFEMParticle (void) |
| int | checkConsistency () override |
| void | updateYourself (TimeStep *tStep) override |
| virtual bool | isFree () |
| Returns the free-propery flag. | |
| virtual void | setFree (bool newFlag=true) |
| Sets the free-property flag. | |
| virtual bool | isOnAlphaShape () |
| Returns true if the particle is on alpha shape. | |
| virtual void | setOnAlphaShape (bool newFlag=true) |
| Sets the alphaShapeFlag. | |
| virtual bool | isActive () |
| Returns the activeFlag. | |
| virtual void | deactivate () |
| Sets the activeFlag to false. | |
| const char * | giveClassName () const override |
| const char * | giveInputRecordName () const override |
| void | drawScalar (oofegGraphicContext &gc) override |
| Public Member Functions inherited from oofem::Node | |
| Node (int n, Domain *aDomain) | |
| void | setCoordinates (FloatArray coords) |
| virtual double | giveUpdatedCoordinate (int ic, TimeStep *tStep, double scale=1.) |
| virtual void | giveUpdatedCoordinates (FloatArray &answer, TimeStep *tStep, double scale=1.) |
| bool | hasLocalCS () |
| Returns nonzero if node has prescribed local coordinate system. | |
| FloatMatrix * | giveLocalCoordinateTriplet () |
| bool | hasSameLCS (Node *remote) |
| bool | computeL2GTransformation (FloatMatrix &answer, const IntArray &dofIDArry) override |
| bool | requiresTransformation () override |
| void | computeLoadVector (FloatArray &answer, Load *load, CharType type, TimeStep *tStep, ValueModeType mode) override |
| void | initializeFrom (InputRecord &ir) override |
| void | initializeFrom (InputRecord &ir, int priority) override |
| void | initializeFinish () override |
| Performs post initialization steps. | |
| void | giveInputRecord (DynamicInputRecord &input) override |
| void | printYourself () override |
| Prints receiver state on stdout. Useful for debugging. | |
| bool | isDofTypeCompatible (dofType type) const override |
| Returns true if dof of given type is allowed to be associated to receiver. | |
| virtual int | giveQcNodeType () |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| void | drawYourself (oofegGraphicContext &gc, TimeStep *tStep) override |
| Public Member Functions inherited from oofem::DofManager | |
| std::vector< Dof * >::iterator | begin () |
| std::vector< Dof * >::iterator | end () |
| std::vector< Dof * >::const_iterator | begin () const |
| std::vector< Dof * >::const_iterator | end () const |
| DofManager (int n, Domain *aDomain) | |
| virtual | ~DofManager () |
| Destructor. | |
| Dof * | giveDofWithID (int dofID) const |
| int | giveNumberOfDofs () const |
| void | askNewEquationNumbers (TimeStep *tStep) |
| Renumbers all contained DOFs. | |
| int | giveNumberOfPrimaryMasterDofs (const IntArray &dofIDArray) const |
| void | giveLocationArray (const IntArray &dofIDArry, IntArray &locationArray, const UnknownNumberingScheme &s) const |
| void | giveMasterDofIDArray (const IntArray &dofIDArry, IntArray &masterDofIDs) const |
| void | giveCompleteLocationArray (IntArray &locationArray, const UnknownNumberingScheme &s) const |
| void | giveCompleteMasterDofIDArray (IntArray &dofIDArray) const |
| std::vector< Dof * >::const_iterator | findDofWithDofId (DofIDItem dofID) const |
| void | giveUnknownVector (FloatArray &answer, const IntArray &dofMask, ValueModeType mode, TimeStep *tStep, bool padding=false) |
| void | giveUnknownVector (FloatArray &answer, const IntArray &dofMask, PrimaryField &field, ValueModeType mode, TimeStep *tStep, bool padding=false) |
| void | giveCompleteUnknownVector (FloatArray &answer, ValueModeType mode, TimeStep *tStep) |
| void | giveUnknownVectorOfType (FloatArray &answer, UnknownType ut, ValueModeType mode, TimeStep *tStep) |
| bool | computeM2GTransformation (FloatMatrix &answer, const IntArray &dofIDArry) |
| virtual bool | computeM2LTransformation (FloatMatrix &answer, const IntArray &dofIDArry) |
| IntArray * | giveLoadArray () |
| void | setLoadArray (IntArray &load) |
| double | giveCoordinate (int i) const |
| const FloatArray & | giveCoordinates () const |
| void | setCoordinates (const FloatArray &coords) |
| Set coordinates. | |
| const IntArray * | giveForcedDofIDs () |
| std ::map< int, int > * | giveDofTypeMap () |
| std ::map< int, int > * | giveMasterMap () |
| std ::map< int, int > * | giveBcMap () |
| std ::map< int, int > * | giveIcMap () |
| void | printOutputAt (FILE *file, TimeStep *tStep) override |
| bool | isBoundary () |
| void | setBoundaryFlag (bool isBoundary) |
| virtual bool | hasAnySlaveDofs () |
| virtual bool | giveMasterDofMans (IntArray &masters) |
| void | postInitialize () override |
| Performs post initialization steps. Called after all components are created and initialized. | |
| void | updateLocalNumbering (EntityRenumberingFunctor &f) override |
| void | setNumberOfDofs (int _ndofs) |
| void | appendDof (Dof *dof) |
| void | removeDof (DofIDItem id) |
| bool | hasDofID (DofIDItem id) const |
| int | giveGlobalNumber () const |
| int | giveLabel () const |
| void | setGlobalNumber (int newNumber) |
| dofManagerParallelMode | giveParallelMode () const |
| void | setParallelMode (dofManagerParallelMode _mode) |
| const IntArray * | givePartitionList () |
| void | setPartitionList (const IntArray *_p) |
| void | removePartitionFromList (int _part) |
| Removes given partition from receiver list. | |
| void | mergePartitionList (IntArray &_p) |
| Merges receiver partition list with given lists. | |
| int | givePartitionsConnectivitySize () |
| bool | isLocal () |
| Returns true if receiver is locally maintained. | |
| bool | isShared () |
| Returns true if receiver is shared. | |
| bool | isNull () |
| Returns true if receiver is shared. | |
| Public Member Functions inherited from oofem::FEMComponent | |
| FEMComponent (int n, Domain *d) | |
| virtual | ~FEMComponent ()=default |
| Virtual destructor. | |
| Domain * | giveDomain () const |
| virtual void | setDomain (Domain *d) |
| int | giveNumber () const |
| void | setNumber (int num) |
| virtual Interface * | giveInterface (InterfaceType t) |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Protected Attributes | |
| int | coupledNode |
| Protected Attributes inherited from oofem::PFEMParticle | |
| bool | freeFlag |
| The particle does not compose any element, but still a part of solution domain and moves obeying Newton's laws of motion. | |
| bool | alphaShapeFlag |
| the particle is a part of alpha-shape | |
| bool | activeFlag |
| Too close particles can be deactivated, e.g. removed from meshing and computation. | |
| Protected Attributes inherited from oofem::Node | |
| std::unique_ptr< FloatMatrix > | localCoordinateSystem |
| Protected Attributes inherited from oofem::DofManager | |
| FloatArray | coordinates |
| Array storing nodal coordinates. | |
| std::vector< Dof * > | dofArray |
| Array of DOFs. | |
| IntArray | loadArray |
| List of applied loads. | |
| bool | isBoundaryFlag |
| bool | hasSlaveDofs |
| Flag indicating whether receiver has slave DOFs. | |
| int | globalNumber |
| dofManagerParallelMode | parallel_mode |
| IntArray | partitions |
| IntArray | dofidmask |
| List of additional dof ids to include. | |
| std ::map< int, int > | dofTypemap |
| Map from DofIDItem to dofType. | |
| std ::map< int, int > | dofMastermap |
| Map from DofIDItem to master node. | |
| std ::map< int, int > | dofBCmap |
| Map from DofIDItem to bc (to be removed). | |
| std ::map< int, int > | dofICmap |
| Map from DofIDItem to ic (to be removed). | |
| IntArray | mBC |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
Static Protected Attributes | |
| static ParamKey | IPK_InteractionPFEMParticle_CoupledNode |
| Static Protected Attributes inherited from oofem::Node | |
| static ParamKey | IPK_Node_lcs |
| static ParamKey | IPK_Node_coords |
Private Member Functions | |
| StructuralEngngModel * | giveStructuralProblem () |
| FluidStructureProblem * | giveFluidStructureMasterProblem () |
Additional Inherited Members | |
| Static Public Attributes inherited from oofem::DofManager | |
| static ParamKey | IPK_DofManager_dofidmask |
| static ParamKey | IPK_DofManager_load |
| static ParamKey | IPK_DofManager_bc |
| static ParamKey | IPK_DofManager_ic |
| static ParamKey | IPK_DofManager_mastermask |
| static ParamKey | IPK_DofManager_doftypemask |
| static ParamKey | IPK_DofManager_boundaryflag |
| static ParamKey | IPK_DofManager_globnum |
| static ParamKey | IPK_DofManager_partitions |
| static ParamKey | IPK_DofManager_sharedflag |
| static ParamKey | IPK_DofManager_remoteflag |
| static ParamKey | IPK_DofManager_nullflag |
This class represents a fluid particle attached to a node on the structural part of the interface. The linked structural node is attribute of this class.
Definition at line 56 of file interactionpfemparticle.h.
| oofem::InteractionPFEMParticle::InteractionPFEMParticle | ( | int | n, |
| Domain * | aDomain ) |
Constructor. Creates a particle with number n, belonging to aDomain.
| n | node number in domain aDomain |
| aDomain | domain to which node belongs |
Constructor. Creates a particle with number n, belonging to aDomain.
Definition at line 55 of file interactionpfemparticle.C.
References coupledNode, and oofem::PFEMParticle::PFEMParticle().
|
inlinevirtual |
Destructor.
Definition at line 72 of file interactionpfemparticle.h.
|
overridevirtual |
Checks internal data consistency in node.
Reimplemented from oofem::FEMComponent.
Definition at line 74 of file interactionpfemparticle.C.
|
override |
Definition at line 132 of file interactionpfemparticle.C.
References gc.
|
inlineoverridevirtual |
Reimplemented from oofem::DofManager.
Definition at line 84 of file interactionpfemparticle.h.
| void oofem::InteractionPFEMParticle::giveCoupledVelocities | ( | FloatArray & | answer, |
| TimeStep * | stepN ) |
Definition at line 122 of file interactionpfemparticle.C.
References coupledNode, oofem::DofManager::giveCompleteUnknownVector(), oofem::Domain::giveDofManager(), oofem::EngngModel::giveDomain(), and giveStructuralProblem().
Referenced by oofem::InteractionBoundaryCondition::give(), and oofem::FluidStructureProblem::solveYourselfAt().
|
private |
Definition at line 153 of file interactionpfemparticle.C.
References oofem::FEMComponent::domain.
Referenced by givePrescribedUnknownVector(), and giveStructuralProblem().
|
inlineoverridevirtual |
Reimplemented from oofem::DofManager.
Definition at line 85 of file interactionpfemparticle.h.
References _IFT_InteractionPFEMParticle_Name.
|
overridevirtual |
Assembles the vector of prescribed unknowns in nodal c.s for given dofs of receiver. This vector may have size different from number of dofs requested, because some dofs may depend on other dofs. Default implementation uses Dof::giveBcValue and Dof::hasBc service.
| answer | Result (in nodal cs.) |
| dofMask | Array containing dof mask. This mask containing DofIDItem values (they describe physical meaning of dofs, see cltypes.h) is used to extract only required values. If dof with requested physical meaning does not exist in receiver, an error is generated and execution exits. |
| mode | Mode of unknown (e.g, total value, velocity or acceleration of unknown). |
| tStep | Time step when unknown requested. See documentation of particular EngngModel class for valid tStep values (most implementation can return only values for current and possibly for previous time step). |
Reimplemented from oofem::DofManager.
Definition at line 86 of file interactionpfemparticle.C.
References oofem::FloatArray::at(), oofem::Node::computeL2GTransformation(), coupledNode, oofem::DofManager::giveCompleteUnknownVector(), oofem::Domain::giveDofManager(), oofem::DofManager::giveDofWithID(), oofem::EngngModel::giveDomain(), giveFluidStructureMasterProblem(), oofem::FluidStructureProblem::giveIterationNumber(), oofem::IntArray::giveSize(), giveStructuralProblem(), oofem::FloatArray::resize(), and oofem::FloatArray::rotatedWith().
|
private |
Definition at line 139 of file interactionpfemparticle.C.
References giveFluidStructureMasterProblem(), oofem::FluidStructureProblem::giveNumberOfSlaveProblems(), and oofem::StaggeredProblem::giveSlaveProblem().
Referenced by giveCoupledVelocities(), and givePrescribedUnknownVector().
|
overridevirtual |
Gets from the source line from the data file all the data of the receiver.
Reimplemented from oofem::DofManager.
Definition at line 63 of file interactionpfemparticle.C.
References coupledNode, oofem::FEMComponent::giveDomain(), IPK_InteractionPFEMParticle_CoupledNode, oofem::FEMComponent::number, and PM_UPDATE_PARAMETER.
|
overridevirtual |
Updates receiver after equilibrium in time step has been reached.
| tStep | Active time step. |
Reimplemented from oofem::DofManager.
Definition at line 80 of file interactionpfemparticle.C.
|
protected |
Definition at line 59 of file interactionpfemparticle.h.
Referenced by giveCoupledVelocities(), givePrescribedUnknownVector(), initializeFrom(), and InteractionPFEMParticle().
|
staticprotected |
Definition at line 61 of file interactionpfemparticle.h.
Referenced by initializeFrom().