13 #ifdef FT_USE_CONNECTORS
15 #include "FFaLib/FFaGeometry/FFaCompoundGeometry.H"
21 return !myData.empty();
27 return !myData.empty();
40 namespace FF_NAMESPACE {
class FFlNode; }
41 using FFlNode = FF_NAMESPACE::FFlNode;
81 bool highlight(
bool trueOrFalse)
override;
105 bool isAttached(
bool ignoreGPandEarth =
false,
106 bool allowMultipleLinks =
true)
const;
121 int getNDOFs(
bool checkForSuppressedOwner =
false)
const;
145 bool moveRelationsAlong =
false)
override;
214 static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
217 std::ostream&
writeFMF(std::ostream& os = std::cout)
override;
227 bool endOfRecord =
true)
const;
235 bool detach(
FmLink* fromThisonly,
bool notFromDisabledPart =
false);
238 void getEntities(std::vector<FmSensorChoice>& choicesToFill,
int)
override;
239 void getDofs(std::vector<FmSensorChoice>& choicesToFill)
override;
247 int IDoffset,
int& nTriad);
283 #ifdef FT_USE_CONNECTORS
290 #ifdef FT_USE_CONNECTORS
314 #ifdef FT_USE_CONNECTORS
326 return !myData.empty();
#define FFaEnumEntryEnd
Defines the end of an enum mapping definition.
Definition: FFaEnum.H:237
#define FFaEnumEntry(Value, Text)
Adds one entry to the current enum mapping definition.
Definition: FFaEnum.H:234
static std::array< std::string, 6 > dof
Definition: FmJointBase.C:111
Same as FFaField<int>, but hiding negative-valued instances.
Definition: FmLink.H:29
bool isPrintable() const override
Returns true, if this field should be printed.
Definition: FFaField.H:94
bool setRef(FFaFieldContainer *ptr)
Sets the pointer value from a FFaFieldContainer pointer directly.
Definition: FFaReference.C:78
Type * getPointer() const
Returns the type-casted pointer this reference points to.
Definition: FFaReference.H:234
FE node class. Stores node position and additional data for the node.
Definition: FFlNode.H:39
Class for positions in 3D space.
Definition: FFaMat34.H:32
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
Definition: FmAxialDamper.H:17
Definition: FmAxialSpring.H:17
Base parent class for the model data structure entries.
Definition: FmBase.H:37
virtual bool connect()
Inserts this object into the model database.
Definition: FmBase.H:92
Definition: FmEngine.H:28
Definition: FmHasDOFsBase.H:17
DOFStatus
Definition: FmHasDOFsBase.H:53
Definition: FmJointBase.H:22
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
bool hasDamperBinding() const
Definition: FmTriad.C:1382
bool isMultiMaster(bool includingCam=true) const
Returns true if this triad is a master in a multi-master joint.
Definition: FmTriad.C:1288
FFaField< DOFStatusVec > itsBndC
Boundary conditions codes for this triad.
Definition: FmTriad.H:306
bool importantDirections()
Returns true if the triad represents something that is referring to its directions.
Definition: FmTriad.C:1086
bool isSuppressed() const override
Definition: FmTriad.C:443
void getMotionBinding(std::vector< FmDofMotion * > &toFill) const
Definition: FmTriad.C:1395
bool showSymbol() const
Returns true if the triad symbol is to be displayed.
Definition: FmTriad.C:1044
FFaReferenceList< FmLink > myAttachedLinks
Definition: FmTriad.H:300
bool hasTireBinding() const
Definition: FmTriad.C:1427
bool hasOnlyFreeJoints() const
Returns true if only free joints are connected to this triad.
Definition: FmTriad.C:1272
void getJointBinding(std::vector< FmJointBase * > &toFill) const
Definition: FmTriad.C:1331
FaMat34 getGlobalCS() const override
Returns the global position matrix of this triad.
Definition: FmTriad.C:1500
int getNDOFs(bool checkForSuppressedOwner=false) const
Returns the number of DOFs in this triad.
Definition: FmTriad.C:1584
bool highlight(bool trueOrFalse) override
Definition: FmTriad.C:112
FFaFieldUnsignedInt FENodeNo
Definition: FmTriad.H:281
bool isSlaveTriad(bool realSlavesOnly=false) const
Returns true if this triad is the slave in a joint.
Definition: FmTriad.C:1238
bool hasConstraints(bool fixedOnly=false) const override
Definition: FmTriad.C:457
bool eraseOptions() override
Hook for class-specific tasks before deleting *this in erase().
Definition: FmTriad.C:252
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Creates a new triad object by reading data from a stream.
Definition: FmTriad.C:1727
FmLink * getOwnerLink(int linkIndex=-1) const
Returns the link this triad is attached to, if any.
Definition: FmTriad.C:210
bool hasInitVel() const
Definition: FmTriad.C:580
void getTireBinding(std::vector< FmTire * > &toFill) const
Definition: FmTriad.C:1437
FaVec3 getLocalTranslation(const FmLink *link=NULL) const
Returns the translation part of the local position of this triad.
Definition: FmTriad.C:1494
void getElementBinding(std::vector< FmLink * > &toFill) const
Definition: FmTriad.C:1362
FmEngine * getMassEngine() const
Definition: FmTriad.H:211
FFaField< FFaReferenceBase * > myMassEngineField
Definition: FmTriad.H:304
bool isMasterTriad(bool realMastersOnly=false) const
Returns true if this triad is a master in a joint.
Definition: FmTriad.C:1253
DOFStatus getStatusOfDOF(int dof) const override
Returns the status code for the dof'th DOF in this triad.
Definition: FmTriad.C:409
void getBeamBinding(std::vector< FmBeam * > &toFill) const
Definition: FmTriad.C:1349
bool hasLoadBinding() const
Definition: FmTriad.C:1404
bool hasJointBinding() const
Definition: FmTriad.C:1321
const char ** getListViewPixmap() const override
Returns the list view icon to be used in the Objects browser.
Definition: FmTriad.C:2240
FFaField< LocalDirectionEnum > itsLocalDir
Definition: FmTriad.H:289
FaVec3 getGlobalTranslation() const
Returns the translation part of the global position of this triad.
Definition: FmTriad.C:1488
void setAddMass(int DOF, double mass)
Definition: FmTriad.C:555
FmJointBase * getJointWhereSlave() const
Returns the joint in which this triad is the slave.
Definition: FmTriad.C:1166
bool removeJointBinding()
Deletes all joints that this triad is a member of.
Definition: FmTriad.C:1138
bool setDOFStatus(int DOF, DOFStatus status)
Definition: FmTriad.C:433
bool setNDOFs(int NDOFs)
Sets the number of DOFs for this triad.
Definition: FmTriad.C:1599
bool disconnect() override
Removes this object from the model database.
Definition: FmTriad.C:901
virtual ~FmTriad()
The destructor diconnects the triad from the model database.
Definition: FmTriad.C:99
void init()
Common initializer method used by both constructors.
Definition: FmTriad.C:66
bool hasElementBinding() const
Definition: FmTriad.C:1356
FFaReference< FmEngine > myMassEngine
Definition: FmTriad.H:303
void setLocalCS(const FaMat34 &localMat) override
Sets the triad position relative to the part it is attached to.
Definition: FmTriad.C:1565
bool cloneLocal(FmBase *obj, int depth) override
Clones the data fields of *obj into *this.
Definition: FmTriad.C:1629
void updateChildrenDisplayTopology() override
Definition: FmTriad.C:1664
std::string getLinkIDString(bool objPrefix) const override
Definition: FmTriad.C:1028
bool hasSpringBinding() const
Definition: FmTriad.C:1369
int printSolverEntry(FILE *fp) override
Hoook for printing the solver input file entry for this object.
Definition: FmTriad.C:1920
void setInitVel(int DOF, double vel)
Definition: FmTriad.C:593
FFaEnumMapping(ConnectorType)
Definition: FmTriad.H:276
FFlNode * getFENode() const
Returns the FE node itsNode (if any) connected to this triad.
Definition: FmTriad.H:126
FFaField< int > itsNDOFs
Number of triad DOFs (either 0, 3 or 6)
Definition: FmTriad.H:308
std::ostream & writeFMF(std::ostream &os=std::cout) override
Writes out this object in the model database file format.
Definition: FmTriad.C:1718
double getAddMass(int DOF=-1) const
Returns the added mass on this triad, if any.
Definition: FmTriad.C:544
FmTriad()
Default constructor.
Definition: FmTriad.C:53
bool hasBeamBinding() const
Definition: FmTriad.C:1343
bool setAsSlave(FmJointBase *jnt)
Sets this triad as the slave in the joint jnt.
Definition: FmTriad.C:1160
bool updateFENodeAndDofs(FmPart *ownerPart, int nodeId=-1)
Internal method used only from connect() and initAfterResolve().
Definition: FmTriad.C:678
FFaEnumMapping(LocalDirection)
Definition: FmTriad.H:269
void getEntities(std::vector< FmSensorChoice > &choicesToFill, int) override
Definition: FmTriad.C:1445
static int traverseBeam(FmBase *start, std::vector< FmIsPlottedBase * > &triads)
Gets all triads along a generated beamstring.
Definition: FmTriad.C:2288
bool hasReferences() const
Returns true if any object of any type refers to this triad.
Definition: FmTriad.C:1112
void getDofs(std::vector< FmSensorChoice > &choicesToFill) override
Definition: FmTriad.C:1475
char isRotatable() const override
Definition: FmTriad.H:158
bool hasInitAcc() const
Definition: FmTriad.C:605
const char * getUITypeName() const override
Returns the type name of this object for use in the GUI.
Definition: FmTriad.H:219
bool showDirections()
Returns true if the triad represents something that requires its directions to be visualized.
Definition: FmTriad.C:1065
FFaField< FFaReferenceListBase * > myAttachedLinksField
Definition: FmTriad.H:301
bool hasAddMass() const
Definition: FmTriad.C:532
void setInitAcc(int DOF, double acc)
Definition: FmTriad.C:618
bool hasLoad(int DOF) const
Definition: FmTriad.C:520
void getLoadBinding(std::vector< FmDofLoad * > &toFill) const
Definition: FmTriad.C:1417
void setAddedMass(double mass)
Definition: FmTriad.C:568
FFlNode * itsNode
Pointer to the FE node associated with this triad.
Definition: FmTriad.H:310
LocalDirection
Definition: FmTriad.H:257
@ LOCAL_WITHROTATED
Definition: FmTriad.H:260
@ GLOBAL
Definition: FmTriad.H:258
@ LOCAL_INITIAL
Definition: FmTriad.H:259
void getSpringBinding(std::vector< FmAxialSpring * > &toFill) const
Definition: FmTriad.C:1375
bool interactiveErase() override
Hook for class-dependent tasks for interactive deleting an object.
Definition: FmTriad.C:385
static int checkTriads()
Checks the consistency of the triad topology.
Definition: FmTriad.C:1808
bool fullyConstrained(bool fixedOnly=false) const
Returns true if all DOFs in this triad is fixed or prescribed.
Definition: FmTriad.C:489
FmPart * getOwnerFEPart() const
Returns the FE part this triad is attached to, if any.
Definition: FmTriad.C:174
int printAdditionalMass(FILE *fp)
Prints the additional masses of this triad for the solver.
Definition: FmTriad.C:2056
FFaField< DoubleVec > itsMass
Added mass terms for this triad.
Definition: FmTriad.H:307
bool detach() override
Definition: FmTriad.H:233
FmPart * getOwnerPart(int partIndex=-1) const
Returns the part this triad is attached to, if any.
Definition: FmTriad.C:191
bool isLegalDOF(int dof) const override
Returns true if the DOF dof exists for this triad.
Definition: FmTriad.C:403
void initAfterResolve() override
Hook for initialisation after resolving cross references.
Definition: FmTriad.C:727
bool isAttached(const FmLink *link, bool exceptForThis=false) const
Checks if this triad is attached to the specified link.
Definition: FmTriad.C:1184
void setMassEngine(FmEngine *engine)
Definition: FmTriad.H:210
void getDamperBinding(std::vector< FmAxialDamper * > &toFill) const
Definition: FmTriad.C:1388
ConnectorType
Definition: FmTriad.H:263
@ AVERAGE_MOTION
Definition: FmTriad.H:266
@ RIGID
Definition: FmTriad.H:265
@ NONE
Definition: FmTriad.H:264
void printLocalPos(FILE *fp, const FmLink *link, int triadID=0, bool endOfRecord=true) const
Prints the link-relative position of the triad for the solver.
Definition: FmTriad.C:2029
void setGlobalCS(const FaMat34 &globalMat, bool moveRelationsAlong=false) override
Sets the triad position to be aligned with the given global matrix.
Definition: FmTriad.C:1532
std::vector< FmHasDOFsBase::DOFStatusEnum > DOFStatusVec
Convenience type alias.
Definition: FmTriad.H:297
int syncOnFEmodel(bool useDialog)
Syncronizes the FE node reference of the triad.
Definition: FmTriad.C:819
static FmTriad * createAtNode(FFlNode *node, FmBase *parent, int IDoffset, int &nTriad)
Creates a triad at specified node.
Definition: FmTriad.C:2325
FaMat34 getRelativeCS(const FmLink *link) const
Returns local coordinate system of triad, relative to given link.
Definition: FmTriad.C:1509
bool isInLinJoint() const
Returns true if this triad connected to a multi-master joint.
Definition: FmTriad.C:1312
bool setStatusForDOF(int dof, DOFStatus status) override
Assigns the status code for the dof'th DOF in this triad.
Definition: FmTriad.C:417
bool isTranslatable() const override
Definition: FmTriad.H:157