|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
#include <FmTriad.H>


Public Types | |
| enum | LocalDirection { GLOBAL = 0 , LOCAL_INITIAL = 1 , LOCAL_WITHROTATED = 2 } |
| enum | ConnectorType { NONE = 0 , RIGID = 2 , AVERAGE_MOTION = 3 } |
| using | DOFStatusVec = std::vector< FmHasDOFsBase::DOFStatusEnum > |
| Convenience type alias. More... | |
Public Types inherited from FmHasDOFsBase | |
| enum | DOFType { X_TRANS = 0 , Y_TRANS = 1 , Z_TRANS = 2 , X_ROT = 3 , Y_ROT = 4 , Z_ROT = 5 , MAX_DOF = 6 } |
| enum | DOFStatus { FREE , FIXED , PRESCRIBED , FREE_DYNAMICS , SPRING_CONSTRAINED , SPRING_DYNAMICS } |
Public Types inherited from FmIsMeasuredBase | |
| enum | SensorDOF { X_TRANS = 0 , Y_TRANS = 1 , Z_TRANS = 2 , X_ROT = 3 , Y_ROT = 4 , Z_ROT = 5 , REL = 6 , REL_X = 7 , REL_Y = 8 , REL_Z = 9 , REL_RX = 10 , REL_RY = 11 , REL_RZ = 12 , MAX_PR = 13 , MIN_PR = 14 , SA_MAX = 15 , VMISES = 16 , GAGE_1 = 17 , GAGE_2 = 18 , GAGE_3 = 19 , UNSIGNED = 20 , ANGLE_YZ = 21 , ANGLE_ZX = 22 , ANGLE_XY = 23 , NUM_DOF = 24 } |
| enum | SensorEntity { POS = 0 , LOCAL_VEL = 1 , GLOBAL_VEL = 2 , LOCAL_ACC = 3 , GLOBAL_ACC = 4 , DISTANCE = 5 , VEL = 6 , ACCEL = 7 , ANGLE = 8 , REL_POS = 9 , JSPR_ANG = 10 , JSPR_DEFL = 11 , JSPR_FORCE = 12 , JDAMP_ANG = 13 , JDAMP_VEL = 14 , JDAMP_FORCE = 15 , LENGTH = 16 , DEFL = 17 , FORCE = 18 , LOCAL_FORCE = 19 , GLOBAL_FORCE = 20 , WIND_SPEED = 21 , FLUID_VEL = 22 , FLUID_ACC = 23 , DYN_PRESS = 24 , STRAIN = 25 , STRESS = 26 , NUM_ENTITY = 27 } |
Public Types inherited from FmModelMemberBase | |
| enum | Signal { MODEL_MEMBER_CONNECTED , MODEL_MEMBER_DISCONNECTED , MODEL_MEMBER_FINISHED_DISCONNECTED , MODEL_MEMBER_CHANGED } |
| Enumerator for database signals. More... | |
Public Types inherited from FmBase | |
| enum | CopyMode { NOTHING , SHALLOW , DEEP_UNRESOLVED , DEEP_APPEND , DEEP_REPLACE } |
| Enumerator for the different copying modes. More... | |
Public Types inherited from FFaFieldContainer | |
| using | FindCB = FFaDynCB4< FFaFieldContainer *&, int, int, const IntVec & > |
| Convenience alias for resolve call-backs. More... | |
Public Member Functions | |
| FmTriad () | |
| Default constructor. More... | |
| FmTriad (const FaVec3 &globalPos) | |
| Constructor creating a triad at specified location. More... | |
| bool | connect (FmBase *parent, int nodeId=-1) |
| Adds this triad to the model database. More... | |
| bool | disconnect () override |
| Removes this object from the model database. More... | |
| bool | highlight (bool trueOrFalse) override |
| void | initAfterResolve () override |
| Hook for initialisation after resolving cross references. More... | |
| bool | interactiveErase () override |
| Hook for class-dependent tasks for interactive deleting an object. More... | |
| int | syncOnFEmodel (bool useDialog) |
| Syncronizes the FE node reference of the triad. More... | |
| FmLink * | getOwnerLink (int linkIndex=-1) const |
| Returns the link this triad is attached to, if any. More... | |
| FmPart * | getOwnerPart (int partIndex=-1) const |
| Returns the part this triad is attached to, if any. More... | |
| FmPart * | getOwnerFEPart () const |
| Returns the FE part this triad is attached to, if any. More... | |
| FmJointBase * | getJointWhereSlave () const |
| Returns the joint in which this triad is the slave. More... | |
| bool | setAsSlave (FmJointBase *jnt) |
| Sets this triad as the slave in the joint jnt. More... | |
| bool | isAttached (const FmLink *link, bool exceptForThis=false) const |
| Checks if this triad is attached to the specified link. More... | |
| bool | isAttached (bool ignoreGPandEarth=false, bool allowMultipleLinks=true) const |
| Checks if this triad is attached to the specified link. More... | |
| bool | isSlaveTriad (bool realSlavesOnly=false) const |
| Returns true if this triad is the slave in a joint. More... | |
| bool | isMasterTriad (bool realMastersOnly=false) const |
| Returns true if this triad is a master in a joint. More... | |
| bool | isMultiMaster (bool includingCam=true) const |
| Returns true if this triad is a master in a multi-master joint. More... | |
| bool | isInLinJoint () const |
| Returns true if this triad connected to a multi-master joint. More... | |
| std::string | getLinkIDString (bool objPrefix) const override |
| int | getNDOFs (bool checkForSuppressedOwner=false) const |
| Returns the number of DOFs in this triad. More... | |
| bool | setNDOFs (int NDOFs) |
| Sets the number of DOFs for this triad. More... | |
| FFlNode * | getFENode () const |
| Returns the FE node itsNode (if any) connected to this triad. More... | |
| bool | setStatusForDOF (int dof, DOFStatus status) override |
| Assigns the status code for the dof'th DOF in this triad. More... | |
| DOFStatus | getStatusOfDOF (int dof) const override |
| Returns the status code for the dof'th DOF in this triad. More... | |
| bool | isLegalDOF (int dof) const override |
| Returns true if the DOF dof exists for this triad. More... | |
| bool | isSuppressed () const override |
| bool | hasConstraints (bool fixedOnly=false) const override |
| bool | fullyConstrained (bool fixedOnly=false) const |
| Returns true if all DOFs in this triad is fixed or prescribed. More... | |
| FaMat34 | getGlobalCS () const override |
| Returns the global position matrix of this triad. More... | |
| void | setGlobalCS (const FaMat34 &globalMat, bool moveRelationsAlong=false) override |
| Sets the triad position to be aligned with the given global matrix. More... | |
| void | setLocalCS (const FaMat34 &localMat) override |
| Sets the triad position relative to the part it is attached to. More... | |
| FaVec3 | getGlobalTranslation () const |
| Returns the translation part of the global position of this triad. More... | |
| FaVec3 | getLocalTranslation (const FmLink *link=NULL) const |
| Returns the translation part of the local position of this triad. More... | |
| FaMat34 | getRelativeCS (const FmLink *link) const |
| Returns local coordinate system of triad, relative to given link. More... | |
| bool | isTranslatable () const override |
| char | isRotatable () const override |
| bool | isTranslatable (const FmJointBase *jointToIgnore) const |
| Checks if this triad is free to be translated. More... | |
| char | isRotatable (const FmJointBase *jointToIgnore) const |
| Checks if this triad is free to be rotated. More... | |
| bool | hasReferences () const |
| Returns true if any object of any type refers to this triad. More... | |
| bool | showSymbol () const |
| Returns true if the triad symbol is to be displayed. More... | |
| bool | showDirections () |
| Returns true if the triad represents something that requires its directions to be visualized. More... | |
| bool | importantDirections () |
| Returns true if the triad represents something that is referring to its directions. More... | |
| bool | hasOnlyFreeJoints () const |
| Returns true if only free joints are connected to this triad. More... | |
| void | getBeamBinding (std::vector< FmBeam * > &toFill) const |
| void | getElementBinding (std::vector< FmLink * > &toFill) const |
| void | getJointBinding (std::vector< FmJointBase * > &toFill) const |
| void | getSpringBinding (std::vector< FmAxialSpring * > &toFill) const |
| void | getDamperBinding (std::vector< FmAxialDamper * > &toFill) const |
| void | getMotionBinding (std::vector< FmDofMotion * > &toFill) const |
| void | getLoadBinding (std::vector< FmDofLoad * > &toFill) const |
| void | getLoadBinding (std::vector< FmLoad * > &toFill) const |
| void | getTireBinding (std::vector< FmTire * > &toFill) const |
| bool | hasBeamBinding () const |
| bool | hasElementBinding () const |
| bool | hasJointBinding () const |
| bool | hasSpringBinding () const |
| bool | hasDamperBinding () const |
| bool | hasLoadBinding () const |
| bool | hasTireBinding () const |
| bool | hasLoad (int DOF) const |
| bool | hasAddMass () const |
| bool | hasInitVel () const |
| bool | hasInitAcc () const |
| double | getAddMass (int DOF=-1) const |
| Returns the added mass on this triad, if any. More... | |
| bool | setDOFStatus (int DOF, DOFStatus status) |
| void | setAddMass (int DOF, double mass) |
| void | setAddedMass (double mass) |
| void | setInitVel (int DOF, double vel) |
| void | setInitAcc (int DOF, double acc) |
| void | setMassEngine (FmEngine *engine) |
| FmEngine * | getMassEngine () const |
| std::ostream & | writeFMF (std::ostream &os=std::cout) override |
| Writes out this object in the model database file format. More... | |
| bool | clone (FmBase *obj, int depth) override |
| Copies the fields of another object into *this. More... | |
| const char * | getUITypeName () const override |
| Returns the type name of this object for use in the GUI. More... | |
| const char ** | getListViewPixmap () const override |
| Returns the list view icon to be used in the Objects browser. More... | |
| int | printSolverEntry (FILE *fp) override |
| Hoook for printing the solver input file entry for this object. More... | |
| 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. More... | |
| int | printAdditionalMass (FILE *fp) |
| Prints the additional masses of this triad for the solver. More... | |
| void | updateChildrenDisplayTopology () override |
| bool | detach () override |
| bool | detach (FmLink *fromThisonly, bool notFromDisabledPart=false) |
| Detaches this triad from the part it is connected to. More... | |
| void | getEntities (std::vector< FmSensorChoice > &choicesToFill, int) override |
| void | getDofs (std::vector< FmSensorChoice > &choicesToFill) override |
| FFaEnumMapping (LocalDirection) | |
| FFaEnumMapping (ConnectorType) | |
Public Member Functions inherited from FmHasDOFsBase | |
| bool | setLoadAtDOF (int dof, FmDofLoad *load, bool forceReplace=false) |
| bool | setMotionAtDOF (int dof, FmDofMotion *pm, bool forceReplace=false) |
| FmDofLoad * | getLoadAtDOF (int dof, bool createIfNone=false) |
| virtual FmDofMotion * | getMotionAtDOF (int dof, bool createIfNone=false) |
| int | getLoadBaseID (int dof) const |
| int | getMotionBaseID (int dof) const |
| void | releaseLoadAtDOF (int dof) |
| void | releaseMotionAtDOF (int dof) |
| int | atWhatDOF (const FmDofLoad *load) const |
| int | atWhatDOF (const FmDofMotion *pm) const |
| FFaEnumMapping (DOFStatus) | |
| void | getDOFs (IntVec &dofs) const |
| bool | setStatusForAllDOFs (bool fixed) |
| bool | setStatusForDOF (int dof, int status) |
| int | getStatusCode (int dof) const |
| double | getInitVel (int dof, bool includeFixed=false) const |
| double | getInitAcc (int dof, bool includeFixed=false) const |
Public Member Functions inherited from FmIsPositionedBase | |
| virtual const FaMat34 & | getLocalCS () const |
| virtual FaVec3 | getTranslation () const |
| virtual void | setTranslation (const FaVec3 &translation) |
| virtual FaMat33 | getOrientation () const |
| virtual void | setOrientation (const FaMat33 &orient, bool notify=false) |
| virtual void | getStickers (Stickers &stck) const |
| bool | hasStickers () const |
| bool | addSticker (FmSticker *sticker) |
| bool | addStickers (const Stickers &stickers) |
| bool | removeSticker (FmSticker *sticker) |
| void | removeAllStickers () |
| int | getNumberOfStickers () const |
| FmAssemblyBase * | getPositionedAssembly () const |
| bool | setPosRef (FmIsPositionedBase *ref) |
| FmIsPositionedBase * | getPosRef () const |
| bool | setRotRef (FmIsPositionedBase *ref) |
| FmIsPositionedBase * | getRotRef () const |
| void | setLocation (const FFa3DLocation &loc) |
| const FFa3DLocation & | getLocation () const |
| virtual void | updateLocation (bool updateReferringObjs=true) |
Public Member Functions inherited from FmIsPlottedBase | |
| bool | hasCurveSets () const |
| void | getCurveSets (std::vector< FmCurveSet * > &curves) const |
| void | writeSaveVar (FILE *fp, unsigned int nVar) const |
Public Member Functions inherited from FmIsRenderedBase | |
| bool | draw () |
| virtual void | drawObject () |
| Visualization interface for objects that can be rendered. More... | |
| virtual bool | isListable () const |
| Hook for list view filtering. More... | |
| void | updateTopologyInViewer () |
| void | updateThisTopologyOnly () |
| void | updateDisplayTopology () |
| void | updateDisplayDetails () |
| void | updateDisplayApperance () |
| void | updateDisplayCS () |
| virtual FaDOF | getObjDegOfFreedom () const |
Public Member Functions inherited from FmIsMeasuredBase | |
| FmSensorBase * | getSimpleSensor () const |
| bool | hasSensors () const |
| virtual void | getEntities (FmSensorChoices &ents, int=-1) |
| virtual void | getDofs (FmSensorChoices &dofs) |
| virtual bool | isMeasured () const |
Public Member Functions inherited from FmSimulationModelBase | |
| virtual void | onEventSwitched (const FmSimulationEvent *) |
| Hook for simulation event handling. More... | |
| virtual void | initAfterParse () |
| Hook for initialisation after simulation event switching. More... | |
| bool | parseField (const std::string &keyWord, const std::string &fieldValue) |
| Parses the field keyWord from a text string. More... | |
| void | removeFieldsExceptFor (const std::vector< FDictIt > &keep) |
| Removes all fields from this object, except for the specified ones. More... | |
| void | setAsDefault (const std::vector< FDictIt > &fieldNames) |
| Updates default values to the current value for specified fields. More... | |
| void | getFields (std::vector< FDictIt > &fieldNames) const |
| Returns all field names present in this object. More... | |
| bool | isEventModified () const |
| Checks if *this is referred by simulation events. More... | |
| std::string | getObjectInfo () const |
| Returns a string with all information stored in this object. More... | |
| FmSimulationModelBase * | copy (int cloneDepth) const |
| Makes a copy of this object. More... | |
| FmBase * | clone (int depth) const final |
| Returns an unconnected copy of this object. More... | |
| virtual bool | clone (FmBase *, int) |
| Copies the fields of another object into *this. More... | |
| virtual FmBase * | clone (int) const |
| Returns an unconnected copy of this object. More... | |
Public Member Functions inherited from FmModelMemberBase | |
| void | sendSignal (Signal sig) |
| Broadcasts a database signal to trigger call-back invokations. More... | |
| const char * | getItemName () const override |
| Returns the name of this item. More... | |
| std::string | getItemDescr () const override |
| Returns the description of this item. More... | |
| int | getItemID () const final |
| Returns the user ID of this item. More... | |
| int | getItemBaseID () const final |
| Returns the base ID of this item. More... | |
| void | getItemAssemblyPath (std::vector< int > &assID) const final |
| Returns the sub-assembly ID path of this item. More... | |
| void | onMainConnected () final |
| Invokes call-backs after this object is inserted into the database. More... | |
| void | onMainDisconnected () final |
| Invokes call-backs after this object is removed from the database. More... | |
| void | onMainAboutToDisconnect () final |
| Invokes call-backs before this object is removed from the database. More... | |
| void | onChanged () |
| Invokes call-backs when this object updated. More... | |
| virtual FmBase * | duplicate () const |
| Returns a connected copy of this object. More... | |
| void | printID (FILE *myFile, bool withBaseID=true) const |
| Prints the ID of this object in the solver input file format. More... | |
| int | getBaseID () const |
| Returns the base ID of this object. More... | |
| bool | setTag (const std::string &tag) |
| Assigns a tag to this object. More... | |
| bool | isTagged (const std::string &tag) const |
| Returns true if this object has a tag assigned to it. More... | |
| const std::string & | getTag () const |
| Returns a const reference to the tag assigned to this object. More... | |
| bool | moveTo (FmSubAssembly *newAss) |
| Moves this object to another sub-assembly. More... | |
Public Member Functions inherited from FmBase | |
| FmBase * | getNext () const |
| Returns the next object in the linked list. More... | |
| FmBase * | getPrev () const |
| Returns the previous object in the linked list. More... | |
| virtual std::string | getUserDescription (size_t maxLength=0) const |
| Returns the user-defined description of this object. More... | |
| virtual bool | setUserDescription (const std::string &descr) |
| Sets the user-defined description of this object. More... | |
| bool | makeCopyDescr () |
| Prepends "Copy of " to the user description. More... | |
| virtual std::string | getInfoString () const |
| Returns a composed string describing this object. More... | |
| virtual std::string | getIdPath (bool withBrackets=true) const |
| Returns the user ID including the sub-assembly path. More... | |
| std::string | getIdString (bool withDescription=false) const |
| Returns a composed string describing this object. More... | |
| int | getID () const |
| Returns the user ID of this object. More... | |
| void | setID (int Id) |
| Sets the user ID of this object. More... | |
| void | getAssemblyID (IntVec &assID) const |
| Retrieves the assembly ID of this object. More... | |
| FmBase * | getParentAssembly () const |
| Returns the sub-assembly this object is part of, if any. More... | |
| FmBase * | getCommonAncestor (const FmBase *other) const |
| Returns the sub-assembly both *this and *other descent from. More... | |
| void | setParentAssembly (FmBase *subAss) |
| Sets the parent sub-assembly for this object. More... | |
| void | setParentAssembly (int Id, int classType=-1) |
| Sets the parent sub-assembly for this object. More... | |
| int | getResolvedID () const final |
| Returns the user Id of *this, for use in I/O and resolving. More... | |
| void | getResolvedAssemblyID (IntVec &assID) const final |
| Gets the assembly path of *this, for use in I/O and resolving. More... | |
| bool | cloneOrConnect () |
| Inserts or copies this object into the model database. More... | |
| virtual bool | connect () |
| Inserts this object into the model database. More... | |
| bool | isPartOf (const FmSubAssembly *subAss) const |
| Returns true if *this is part of the specified sub-assembly. More... | |
| std::ostream & | writeFields (std::ostream &os) const |
| Writes all data fields of this object to the given output stream. More... | |
Public Member Functions inherited from FFaFieldContainer | |
| FFaFieldContainer () | |
| The default constructor does nothing. More... | |
| virtual | ~FFaFieldContainer () |
| The destructor clears the references to *this in myRefBy. More... | |
| bool | erase () |
| Deletes *this assuming it is heap-allocated. More... | |
| void | getFields (FieldMap &mapToFill) const |
| Builds a map of all fields in this FFaFieldContainer. More... | |
| FFaFieldBase * | getField (const std::string &fieldName) const |
| Returns the named field in this FFaFieldContainer. More... | |
| void | getReferredObjs (ObjectMap &mapToFill) const |
| Builds a map of all other objects referred to by *this. More... | |
| void | getReferringObjs (ObjectMap &mapToFill) const |
| Builds a map of all other objects referring to *this. More... | |
| void | getReferringObjs (ObjectVec &vecToFill, const std::string &contextName, bool sortOnId=false) const |
| Builds a list of FFaFieldContainer objects referring to *this. More... | |
| template<class T > | |
| void | getReferringObjs (std::vector< T * > &vecToFill, const std::string &context="", bool sortOnId=false) const |
| Builds a list of class T objects referring to *this. More... | |
| template<class T > | |
| bool | hasReferringObjs (T *&ptr, const std::string &context="") const |
| Checks if there are any references of type T to this object. More... | |
| void | releaseReferencesToMe (const std::string &contextName="", FFaFieldContainer *replacement=NULL) |
| Directly removes all references to this object. More... | |
| void | resolve (FindCB &findCB) |
| Resolves all FFaReferences and FFaReferenceLists in this object. More... | |
| void | unresolve () |
| Unresolves all FFaReferences and FFaReferenceLists in this object. More... | |
| void | updateReferences (int oldAssId, int newAssId) |
| Updates the assembly ID in the references in this object. More... | |
| void | updateReferences (const IntVec &oldAssId, const IntVec &newAssID) |
| Updates the assembly ID in the references in this object. More... | |
| bool | readField (const std::string &key, std::istream &is, bool datafieldsOnly=false) |
| Reads the value of a field named key from an input stream. More... | |
| bool | copy (const FFaFieldContainer *other, bool fieldsOnly=false, bool unresolve=false) |
| Copies all fields and references from another object into *this. More... | |
| bool | copyFields (const FFaFieldContainer *obj) |
| Copies all field values from another object into *this. More... | |
| bool | resetFields (const FFaFieldContainer *obj) |
| Resets fields to their default value. More... | |
Public Member Functions inherited from FFaListViewItem | |
| FFaListViewItem () | |
| Default constructor. More... | |
| virtual | ~FFaListViewItem () |
| The destructor deletes the position and expand status mapping. More... | |
| bool | setPositionInListView (const char *lvName, int pos) |
| Sets the position of this item in the named list view. More... | |
| int | getPositionInListView (const char *lvName) const |
| Returns the position of this item in the named list view. More... | |
| bool | setExpandedInListView (const char *lvName, bool exp) |
| Sets the expand status of this item in the named list view. More... | |
| bool | getExpandedInListView (const char *lvName) const |
| Returns the expand status of this item in the named list view. More... | |
| bool | isSubjectToLVPositioning (const char *lvName) const |
| Returns whether this item is positioned in the named list view. More... | |
Public Member Functions inherited from FFaViewItem | |
| FFaViewItem ()=default | |
| Default constructor. More... | |
| FFaViewItem (const FFaViewItem &)=delete | |
| Disable default copy constructor. More... | |
| virtual | ~FFaViewItem () |
| Empty destructor. More... | |
| FFaViewItem & | operator= (const FFaViewItem &)=delete |
| Disable default assignment operator. More... | |
Static Public Member Functions | |
| static bool | readAndConnect (std::istream &is, std::ostream &os=std::cout) |
| Creates a new triad object by reading data from a stream. More... | |
| static int | checkTriads () |
| Checks the consistency of the triad topology. More... | |
| static int | traverseBeam (FmBase *start, std::vector< FmIsPlottedBase * > &triads) |
| Gets all triads along a generated beamstring. More... | |
| static FmTriad * | createAtNode (FFlNode *node, FmBase *parent, int IDoffset, int &nTriad) |
| Creates a triad at specified node. More... | |
Static Public Member Functions inherited from FmModelMemberBase | |
| static FFaSwitchBoardConnector * | getSignalConnector () |
| Returns the model database signal connector. More... | |
| static void | resolveBaseIDProblems () |
| Resolves the conflicting base ID issues for baseIdProblems. More... | |
Static Public Member Functions inherited from FFaFieldContainer | |
| static void | removeDictInstance () |
| Removes the heap-allocated field name dictionary. More... | |
Static Public Member Functions inherited from FFaViewItem | |
| static bool | compareDescr (FFaViewItem *i1, FFaViewItem *i2) |
| Binary comparison of description strings (implementation of less). More... | |
| static bool | compareID (FFaViewItem *i1, FFaViewItem *i2) |
| Binary comparison of user IDs (implementation of less). More... | |
| static int | compareDescr3w (FFaViewItem *i1, FFaViewItem *i2) |
| Three-way lexicographical comparison of description strings. More... | |
| static int | compareID3w (FFaViewItem *i1, FFaViewItem *i2) |
| Three-way lexicographical comparison of user IDs. More... | |
Public Attributes | |
| FFaFieldUnsignedInt | FENodeNo |
| FFaField< LocalDirectionEnum > | itsLocalDir |
Public Attributes inherited from FmIsPlottedBase | |
| FFaField< BoolVec > | mySaveVar |
| Toggles for result output. More... | |
Protected Member Functions | |
| virtual | ~FmTriad () |
| The destructor diconnects the triad from the model database. More... | |
| bool | cloneLocal (FmBase *obj, int depth) override |
| Clones the data fields of *obj into *this. More... | |
| bool | eraseOptions () override |
| Hook for class-specific tasks before deleting *this in erase(). More... | |
Protected Member Functions inherited from FmHasDOFsBase | |
| FmHasDOFsBase () | |
| virtual | ~FmHasDOFsBase () |
| void | completeInitDOFs () |
| void | completeInitDOF (int i, const std::string &dofName) |
Protected Member Functions inherited from FmIsPositionedBase | |
| FmIsPositionedBase (bool noFields=false) | |
| virtual | ~FmIsPositionedBase () |
| void | getMyStickers (Stickers &stickers) const |
Protected Member Functions inherited from FmIsPlottedBase | |
| FmIsPlottedBase () | |
| virtual | ~FmIsPlottedBase () |
| virtual bool | getSaveVar (unsigned int &nVar, IntVec &toggles) const |
Protected Member Functions inherited from FmIsRenderedBase | |
| FmIsRenderedBase () | |
| virtual | ~FmIsRenderedBase () |
| FmIsRenderedBase (const FmIsRenderedBase &)=delete | |
| FmIsRenderedBase & | operator= (const FmIsRenderedBase &)=delete |
Protected Member Functions inherited from FmIsMeasuredBase | |
| FmIsMeasuredBase () | |
| virtual | ~FmIsMeasuredBase () |
Protected Member Functions inherited from FmSimulationModelBase | |
| FmSimulationModelBase () | |
| Default constructor. More... | |
Protected Member Functions inherited from FmModelMemberBase | |
| virtual void | mainConnectedEvent () |
| Hook for class-dependent tasks when the object is connected. More... | |
| virtual void | mainDisconnectedEvent () |
| Hook for class-dependent tasks when the object is disconnected. More... | |
| virtual void | changedEvent () |
| Hook for class-dependent tasks when the object is updated. More... | |
| FmModelMemberBase (bool isDummy=false) | |
| Default constructor. More... | |
Protected Member Functions inherited from FmBase | |
| FmBase (bool isDummy=false) | |
| Default constructor. More... | |
| virtual | ~FmBase () |
| Empty destructor. More... | |
| bool | eraseOrConnect () |
| Conditionally inserts this object into the model database. More... | |
| bool | mainConnect (bool allowNonUniqueIDs=false) |
| Inserts this object into the model database, unless aready present. More... | |
| bool | mainDisconnect () |
| Removes this object from the model database, if present. More... | |
| void | insertAfter (FmBase *afterPt) |
| Inserts *this after *afterPt in the database ring. More... | |
Protected Member Functions inherited from FFaFieldContainer | |
| void | addRef (FFaReferenceBase *ref) |
| Adds a reference to the internal book keeping of this object. More... | |
| void | addRefList (FFaReferenceListBase *list) |
| Adds a reference list to the internal book keeping of this object. More... | |
| void | addField (const std::string &identifier, FFaFieldBase *field) |
| Adds a field to the internal book keeping of this object. More... | |
| void | removeField (const std::string &identifier) |
| Removes the field from the internal book keeping of this object. More... | |
Private Member Functions | |
| void | init () |
| Common initializer method used by both constructors. More... | |
| bool | updateFENodeAndDofs (FmPart *ownerPart, int nodeId=-1) |
| Internal method used only from connect() and initAfterResolve(). More... | |
| bool | removeJointBinding () |
| Deletes all joints that this triad is a member of. More... | |
Private Attributes | |
| FFaReferenceList< FmLink > | myAttachedLinks |
| FFaField< FFaReferenceListBase * > | myAttachedLinksField |
| FFaReference< FmEngine > | myMassEngine |
| FFaField< FFaReferenceBase * > | myMassEngineField |
| FFaField< DOFStatusVec > | itsBndC |
| Boundary conditions codes for this triad. More... | |
| FFaField< DoubleVec > | itsMass |
| Added mass terms for this triad. More... | |
| FFaField< int > | itsNDOFs |
| Number of triad DOFs (either 0, 3 or 6) More... | |
| FFlNode * | itsNode |
| Pointer to the FE node associated with this triad. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from FmIsRenderedBase | |
| static FmTriad * | detachTriad = NULL |
Static Public Attributes inherited from FmSimulationModelBase | |
| static std::string | relPathCorrection |
| For writing of solver input file. More... | |
Static Public Attributes inherited from FmModelMemberBase | |
| static bool | ignoreBaseID = false |
| Set to true when importing sub-assembly. More... | |
| static bool | inInteractiveErase = false |
| Set to true when interactive delete. More... | |
Protected Types inherited from FFaFieldContainer | |
| using | FDict = std::set< std::string > |
| Convenience type alias, a set of text strings used as a dictionary. More... | |
| using | FDictIt = FDict::const_iterator |
| Convenience type alias, a const_iterator pointing into a dictionary. More... | |
| using | FieldContainerMap = std::map< FDictIt, FFaFieldBase *, FDictLess > |
| Convenience type alias, a field container map. More... | |
| using | FieldContainerDict = FFaSingelton< FDict, FFaFieldContainer > |
| Convenience type alias, a heap-allocated dictionary singelton. More... | |
Static Protected Member Functions inherited from FmBase | |
| static bool | localParse (const char *keyWord, std::istream &activeStatement, FmBase *obj) |
| Parses the keyWord field for *obj, if it is a defined field. More... | |
Protected Attributes inherited from FmHasDOFsBase | |
| FFaReference< FmDofLoad > | myLoads [MAX_DOF] |
| FFaReference< FmDofMotion > | myMotions [MAX_DOF] |
| FFaField< FFaReferenceBase * > | myLoadFields [MAX_DOF] |
| FFaField< FFaReferenceBase * > | myMotionFields [MAX_DOF] |
| FFaField< DoubleVec > | initVel |
| FFaField< DoubleVec > | initAcc |
Protected Attributes inherited from FmIsPositionedBase | |
| FFaReference< FmIsPositionedBase > | myPosRef |
| FFaField< FFaReferenceBase * > | myPosRefField |
| FFaReference< FmIsPositionedBase > | myRotRef |
| FFaField< FFaReferenceBase * > | myRotRefField |
| FFaField< FFa3DLocation > | myLocation |
| FFaField< FaMat34 > | myCS |
Protected Attributes inherited from FmModelMemberBase | |
| FFaNoCopyField< int > | myBaseID |
| Base ID, unique over all object types. More... | |
| FFaField< std::string > | myTag |
| Text string used for grouping objects. More... | |
Protected Attributes inherited from FFaFieldContainer | |
| FieldContainerMap | myFields |
| All data fields of this object. More... | |
Static Protected Attributes inherited from FmIsMeasuredBase | |
| static FmSensorChoice | itsDofTable [NUM_DOF] |
| static FmSensorChoice | itsEntityTable [NUM_ENTITY] |
| using FmTriad::DOFStatusVec = std::vector<FmHasDOFsBase::DOFStatusEnum> |
Convenience type alias.
| FmTriad::FmTriad | ( | ) |
Default constructor.
| FmTriad::FmTriad | ( | const FaVec3 & | globalPos | ) |
Constructor creating a triad at specified location.
|
protectedvirtual |
The destructor diconnects the triad from the model database.
|
static |
Checks the consistency of the triad topology.
|
overridevirtual |
Copies the fields of another object into *this.
Reimplemented from FmBase.
|
overrideprotectedvirtual |
Clones the data fields of *obj into *this.
This method tries to copy all fields of the cloned object into this object.
Reimplemented from FmHasDOFsBase.
| bool FmTriad::connect | ( | FmBase * | parent, |
| int | nodeId = -1 |
||
| ) |
Adds this triad to the model database.
Use this method to insert the Triad into the main book-keeping ring, and update its FE connection. If parent is supplied (must be an FmLink) it will be added to myAttachedLinks. If parent is an FmPart, the local coordinate system of the triad is updated to be relative to this part, if it is the first part to be attached to the triad.
|
static |
Creates a triad at specified node.
This method is used when creating a system-level beam model from an FE part.
|
inlineoverridevirtual |
Reimplemented from FmIsRenderedBase.
| bool FmTriad::detach | ( | FmLink * | fromThisOnly, |
| bool | notFromDisabledPart = false |
||
| ) |
Detaches this triad from the part it is connected to.
If fromThisOnly is not NULL, the triad is detached only if it was connected to that link. If notFromDisabledPart is true, the triad is not detached if it is connected to a disabled part.
|
overridevirtual |
Removes this object from the model database.
Reimplemented from FmBase.
|
overrideprotectedvirtual |
Hook for class-specific tasks before deleting *this in erase().
This method is an external erase, doing the following:
Reimplemented from FmIsPlottedBase.
|
inline |
|
inline |
| bool FmTriad::fullyConstrained | ( | bool | fixedOnly = false | ) | const |
Returns true if all DOFs in this triad is fixed or prescribed.
| double FmTriad::getAddMass | ( | int | DOF = -1 | ) | const |
Returns the added mass on this triad, if any.
DOF < 0 means the average of the diagonal mass terms.
| void FmTriad::getBeamBinding | ( | std::vector< FmBeam * > & | toFill | ) | const |
| void FmTriad::getDamperBinding | ( | std::vector< FmAxialDamper * > & | toFill | ) | const |
|
override |
| void FmTriad::getElementBinding | ( | std::vector< FmLink * > & | toFill | ) | const |
|
override |
|
inline |
Returns the FE node itsNode (if any) connected to this triad.
|
overridevirtual |
Returns the global position matrix of this triad.
Reimplemented from FmIsPositionedBase.
| FaVec3 FmTriad::getGlobalTranslation | ( | ) | const |
Returns the translation part of the global position of this triad.
| void FmTriad::getJointBinding | ( | std::vector< FmJointBase * > & | toFill | ) | const |
| FmJointBase * FmTriad::getJointWhereSlave | ( | ) | const |
Returns the joint in which this triad is the slave.
|
overridevirtual |
Reimplemented from FmIsPositionedBase.
|
overridevirtual |
Returns the list view icon to be used in the Objects browser.
The icon is selected based on the most dominant DOF status in the triad. Joint triads are not checked further for DOF status. Neither are triads attached to FE parts without a matching FE node. They get the exclamation mark nevertheless.
Reimplemented from FFaListViewItem.
| void FmTriad::getLoadBinding | ( | std::vector< FmDofLoad * > & | toFill | ) | const |
| void FmTriad::getLoadBinding | ( | std::vector< FmLoad * > & | toFill | ) | const |
Returns the translation part of the local position of this triad.
|
inline |
| void FmTriad::getMotionBinding | ( | std::vector< FmDofMotion * > & | toFill | ) | const |
| int FmTriad::getNDOFs | ( | bool | checkForSuppressedOwner = false | ) | const |
Returns the number of DOFs in this triad.
| FmPart * FmTriad::getOwnerFEPart | ( | ) | const |
Returns the FE part this triad is attached to, if any.
| FmLink * FmTriad::getOwnerLink | ( | int | linkIndex = -1 | ) | const |
Returns the link this triad is attached to, if any.
| FmPart * FmTriad::getOwnerPart | ( | int | partIndex = -1 | ) | const |
Returns the part this triad is attached to, if any.
Returns local coordinate system of triad, relative to given link.
| void FmTriad::getSpringBinding | ( | std::vector< FmAxialSpring * > & | toFill | ) | const |
|
overridevirtual |
Returns the status code for the dof'th DOF in this triad.
Implements FmHasDOFsBase.
| void FmTriad::getTireBinding | ( | std::vector< FmTire * > & | toFill | ) | const |
|
inlineoverridevirtual |
Returns the type name of this object for use in the GUI.
Reimplemented from FmBase.
| bool FmTriad::hasAddMass | ( | ) | const |
| bool FmTriad::hasBeamBinding | ( | ) | const |
|
overridevirtual |
Implements FmHasDOFsBase.
| bool FmTriad::hasDamperBinding | ( | ) | const |
| bool FmTriad::hasElementBinding | ( | ) | const |
| bool FmTriad::hasInitAcc | ( | ) | const |
| bool FmTriad::hasInitVel | ( | ) | const |
| bool FmTriad::hasJointBinding | ( | ) | const |
| bool FmTriad::hasLoad | ( | int | DOF | ) | const |
| bool FmTriad::hasLoadBinding | ( | ) | const |
| bool FmTriad::hasOnlyFreeJoints | ( | ) | const |
Returns true if only free joints are connected to this triad.
| bool FmTriad::hasReferences | ( | ) | const |
Returns true if any object of any type refers to this triad.
| bool FmTriad::hasSpringBinding | ( | ) | const |
| bool FmTriad::hasTireBinding | ( | ) | const |
|
overridevirtual |
Reimplemented from FmIsRenderedBase.
| bool FmTriad::importantDirections | ( | ) |
Returns true if the triad represents something that is referring to its directions.
Either of the following is referring to the triad directions:
|
private |
Common initializer method used by both constructors.
|
overridevirtual |
Hook for initialisation after resolving cross references.
Reimplemented from FmHasDOFsBase.
|
overridevirtual |
Hook for class-dependent tasks for interactive deleting an object.
This method can be overriden in sub-classes when additional user feedback is needed before the object can be deleted. It returns false if the user cancelled the delete.
Reimplemented from FmModelMemberBase.
| bool FmTriad::isAttached | ( | bool | ignoreGPandEarth = false, |
| bool | allowMultipleLinks = true |
||
| ) | const |
Checks if this triad is attached to the specified link.
If ignoreGPandEarth is true, only FE parts are considered. If allowMultipleLinks is false, this method returns true only when the triad is attached to one single link and false if it is attached to more than one or not at all. If allowMultipleLinks is true, this method returns true no matter how many links the triad is attached to.
| bool FmTriad::isAttached | ( | const FmLink * | link, |
| bool | exceptForThis = false |
||
| ) | const |
Checks if this triad is attached to the specified link.
When exceptForThis is true, this method checks if the triad is attached to any link except the specified one.
| bool FmTriad::isInLinJoint | ( | ) | const |
Returns true if this triad connected to a multi-master joint.
|
overridevirtual |
Returns true if the DOF dof exists for this triad.
Implements FmHasDOFsBase.
| bool FmTriad::isMasterTriad | ( | bool | realMastersOnly = false | ) | const |
Returns true if this triad is a master in a joint.
| bool FmTriad::isMultiMaster | ( | bool | includingCam = true | ) | const |
Returns true if this triad is a master in a multi-master joint.
|
inlineoverridevirtual |
Reimplemented from FmIsPositionedBase.
| char FmTriad::isRotatable | ( | const FmJointBase * | jointToIgnore | ) | const |
Checks if this triad is free to be rotated.
This method is used in the Origin tab and the Align CS commands to find out if it is possible to rotate the triad. If it is either the dependent triad in a point joint or line joint, or an independent joint triad and its movability is connected to an "owning" joint, then it is not allowed to rotate it. If it is an independent triad of a prismatic or cylindric joint, it is only allowed to rotate about the local Z-axis of the joint.
| bool FmTriad::isSlaveTriad | ( | bool | realSlavesOnly = false | ) | const |
Returns true if this triad is the slave in a joint.
|
overridevirtual |
Implements FmHasDOFsBase.
|
inlineoverridevirtual |
Reimplemented from FmIsPositionedBase.
| bool FmTriad::isTranslatable | ( | const FmJointBase * | jointToIgnore | ) | const |
Checks if this triad is free to be translated.
This method is used in the Origin tab and the Align CS commands to find out if it is possible to translate the triad. If it is attached to an FE part, in a line joint, or in a point joint and its movability is connected to an "owning" joint, then it is not allowed to translate it.
| int FmTriad::printAdditionalMass | ( | FILE * | fp | ) |
Prints the additional masses of this triad for the solver.
| void FmTriad::printLocalPos | ( | FILE * | fp, |
| const FmLink * | link, | ||
| int | triadID = 0, |
||
| bool | endOfRecord = true |
||
| ) | const |
Prints the link-relative position of the triad for the solver.
|
overridevirtual |
Hoook for printing the solver input file entry for this object.
Reimplemented from FmModelMemberBase.
|
static |
Creates a new triad object by reading data from a stream.
|
private |
Deletes all joints that this triad is a member of.
If this triad is an independent line joint triad, the joint is deleted only if it is less than tree such triads left in the joint.
| void FmTriad::setAddedMass | ( | double | mass | ) |
| void FmTriad::setAddMass | ( | int | DOF, |
| double | mass | ||
| ) |
| bool FmTriad::setAsSlave | ( | FmJointBase * | jnt | ) |
Sets this triad as the slave in the joint jnt.
| bool FmTriad::setDOFStatus | ( | int | DOF, |
| DOFStatus | status | ||
| ) |
|
overridevirtual |
Sets the triad position to be aligned with the given global matrix.
This method takes into account the part the triad could be attached to.
If moveRelationsAlong is true, the triads in the joints this triad is a member of is moved as well, if the joints constraint system demands it.
This method assumes that it is not called on a triad (with relations) that is not movable.
Reimplemented from FmIsPositionedBase.
| void FmTriad::setInitAcc | ( | int | DOF, |
| double | acc | ||
| ) |
|
virtual |
Implements FmHasDOFsBase.
|
overridevirtual |
Sets the triad position relative to the part it is attached to.
This method is overridden to update the position of the connected stickers, if any, and to update the location data of the joint(s) using this triad.
Reimplemented from FmIsPositionedBase.
|
inline |
| bool FmTriad::setNDOFs | ( | int | NDOFs | ) |
Sets the number of DOFs for this triad.
|
overridevirtual |
Assigns the status code for the dof'th DOF in this triad.
Implements FmHasDOFsBase.
| bool FmTriad::showDirections | ( | ) |
Returns true if the triad represents something that requires its directions to be visualized.
The triad diractions should be shown if:
| bool FmTriad::showSymbol | ( | ) | const |
Returns true if the triad symbol is to be displayed.
The triad symbol should be displayed if:
| int FmTriad::syncOnFEmodel | ( | bool | useDialog | ) |
Syncronizes the FE node reference of the triad.
|
static |
Gets all triads along a generated beamstring.
The main purpose of this method is to facilitate easy generation of force- and moment diagrams.
|
overridevirtual |
Reimplemented from FmHasDOFsBase.
|
private |
Internal method used only from connect() and initAfterResolve().
This method sets up the allowed DOFs for the Triad and makes sure the associated FE node is labelled as external. If nodeId is specified (and larger than 0), it is taken as the connected FE node, if it exists in the FE model of the owner part. Otherwise (i.e., nodeId ≤ 0), the non-slave FE node closest to the triad location will be used.
|
overridevirtual |
Writes out this object in the model database file format.
Reimplemented from FmBase.
| FFaFieldUnsignedInt FmTriad::FENodeNo |
|
private |
Boundary conditions codes for this triad.
| FFaField<LocalDirectionEnum> FmTriad::itsLocalDir |
|
private |
Number of triad DOFs (either 0, 3 or 6)
|
private |
Pointer to the FE node associated with this triad.
|
private |
|
private |
|
private |
|
private |