FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
FmPart Class Reference

#include <FmPart.H>

Inheritance diagram for FmPart:
Inheritance graph
[legend]
Collaboration diagram for FmPart:
Collaboration graph
[legend]

Public Types

enum  DofFilter { ALL_DOFS = 0 , THREE_DOFS = 3 , SIX_DOFS = 6 }
 
enum  ReposType { INTERNAL_REP = 0 , EXTERNAL_REP , LINK_SPECIFIC }
 
enum  RamLevel { NOTHING = 0 , REDUCED_VIZ , SURFACE_FE , FULL_FE }
 
enum  LockLevel { FM_ALLOW_MODIFICATIONS , FM_ALLOW_LINK_EXT_NODE_MOD , FM_DENY_ALL_LINK_MOD , FM_DENY_LINK_USAGE }
 
enum  MassCalculation { EXPLICIT , FROM_GEOMETRY , FROM_FEM }
 
enum  InertiaRef { POS_CG_ROT_CS , POS_CG_ROT_CG }
 
enum  GenericPartStiffType { DEFAULT_RIGID , NODE_STIFFNESS }
 
enum  FloatPrecision { SINGLE_PRECISION = 1 , DOUBLE_PRECISION = 2 }
 
enum  CentripOption { MODEL_DEFAULT_CENTRIP_CORRECTION , USE_CENTRIP_CORRECTION , NO_CENTRIP_CORRECTION }
 
 Enumerator for different visualization modes. More...
 Enumerator related to shadow element positioning algorithm. More...
- 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

 FmPart (const FaVec3 &globalPos=FaVec3())
 Default constructor. More...
 
 FmPart (const char *EarthName)
 Constructor used for creating the earth link only. More...
 
bool interactiveErase () override
 Hook for class-dependent tasks for interactive deleting an object. More...
 
bool isDisabled () const final
 Returns true if the FE data of this link is disabled. More...
 
bool isSuppressed () const final
 Returns true if this link is suppressed. More...
 
bool isGenericPart () const final
 Returns true if this link is a generic part. More...
 
bool isFEPart (bool loadedOnly=false) const final
 Returns true if this is a used (and loaded) FE part. More...
 
FaMat34 getTransform () const
 
FmTriad * getTriadAtNode (int nodeNo) const
 Returns the triad associated with given FE node, or NULL if none. More...
 
FFlNode * getNodeAtPoint (const FaVec3 &point, double tolerance, FFlConnectorItems *addItems=NULL, int oldId=-1)
 Returns the closest FE node to a given point, or NULL if not found. More...
 
int getNodeIDAtPoint (const FaVec3 &point, double tolerance)
 
FFlNode * getNode (int nodeNo) const
 
int getNodePos (int nodeNo, double *x=NULL, double *y=NULL, double *z=NULL) const
 
bool getNodeConnectivity (int nodeNo, Strings &elements) const
 
FFlNode * getClosestNode (const FaVec3 &point) const
 
int getCompModesFlags (IntVec &BCcodes) const
 
bool getCompModesAlpha (DoubleVec &alpha, int type) const
 
bool hasLoads () const
 Checks if this part has any distributed loads. More...
 
void printSolverLoads (FILE *fp) const
 Writes distributed load data to the solver input file. More...
 
bool mergeGenericParts (FmPart *that)
 
bool getBBox (FaVec3 &max, FaVec3 &min) const final
 Calculates the bounding box of this link. More...
 
bool updateTriadTopologyRefs (bool checkUnloaded=true, char useOutput=3)
 Updates triad to FE node connection after (re)loading the FE model. More...
 
std::string getTaskName (const char *fmt="%d_") const
 
int getNumberOfTriads () const
 Returns the number of triads attached to this link. More...
 
FmTriad * findTriad (int baseID) const
 Returns a specified triad attached to this link. More...
 
void getTriads (std::vector< FmTriad * > &toFill, bool sortOnId=false) const
 Returns all triads attached to this link. More...
 
void getElementGroups (std::vector< FmElementGroupProxy * > &groups) const
 
bool setVisDetail (const std::vector< FmElementGroupProxy * > &groups, int dType)
 
void getFreeJointEnds (std::vector< FmTriad * > &toFill) const
 
void getStickers (std::vector< FmSticker * > &toFill) const override
 
bool setCGPosRef (FmIsPositionedBase *ref)
 
bool setCGRotRef (FmIsPositionedBase *ref)
 
FmIsPositionedBase * getCGPosRef () const
 
FmIsPositionedBase * getCGRotRef () const
 
const FFa3DLocation & getLocationCG () const
 
void setLocationCG (const FFa3DLocation &cg)
 
double getMass () const final
 Returns the total mass of this link. More...
 
FaMat34 getPositionCG (bool globalCS=true) const override
 Returns the Center of Gravity position for this part. More...
 
void setPositionCG (const FaVec3 &CoG, bool edited=false)
 
void setLocationCG (const FaVec3 &CoG, const FaVec3 &Iaxes)
 
void setOrientationCG (const FaVec3 &Xaxis, const FaVec3 &XYplane)
 
void setLocalCS (const FaMat34 &localCS) override
 
char isRotatable () const override
 
bool isTranslatable () const override
 
bool isMeshable () const
 
bool createFEData (bool parabolic)
 Generates a tetrahedron mesh from CAD data, if any. More...
 
bool getMeshParams (int *nnod, int *nel=NULL, bool *parabolic=NULL, int *ndof=NULL, std::string *elmTypeCount=NULL) const
 
bool openFEData ()
 Reads the FE data from a file already in the part DB. More...
 
bool saveFEData (bool forceSave=false)
 
bool setVisualizationFile (const std::string &fileName, bool updateViz=true)
 
bool writeToVTF (VTFAFile &vtfFile, IntVec *outputOrder, IntVec *fstOrdNodes) override
 Writes the FE data of this part to the specified vtfFile. More...
 
bool hasOP2files () const
 
bool convertOP2files (const std::string &filePath)
 
bool copyExternalFiles (const std::string &from, const std::string &to)
 
bool importPart (const std::string &fileName, const FFaUnitCalculator *conv=NULL, bool storeRelativePath=true, bool autoRefNodeTriads=false, bool isReloading=false)
 Imports FE part data from an external source. More...
 
bool exportPart (const std::string &ftlFile, bool extNodeInfo=true, bool withCheckSum=false, bool noMetaData=false) const
 Writes the FE data of this part to the specified ftlFile. More...
 
bool isSaved (bool checkFEpartsOnly=true) const
 Returns true if the part is saved in its associated repository. More...
 
bool isFELoaded (bool fullOnly=false) const
 Returns true if the part's FE model currently is loaded. More...
 
bool useFEModelAsVisualization () const
 Returns true if the part's FE model is used for visualization. More...
 
FFlLinkHandler * getLinkHandler () const
 Returns the current FE data model for this part. More...
 
void setLinkHandler (FFlLinkHandler *data, bool eraseGroupProxies=false)
 Assigns a new FE data model to the part. More...
 
void updateCachedCheckSum ()
 
void delayedCheckSumUpdate ()
 
void getCheckSum (FFaCheckSum &cs)
 
void forceSave ()
 
bool enforceStrainRosetteRecovery ()
 
bool hasChangedFEdata () const
 
bool hasStrainRosettes () const
 
bool hasStrainCoat () const
 
bool hasResults () const
 
void readyForUpdate (bool useExistingFmx=false)
 Clears data related to the FE model before importing a new one. More...
 
void clearSupelFiles (bool includeFTL=true)
 Clears all file paths derived from originalFEFile. More...
 
void createElemGroupProxies ()
 Creates proxy element groups based on the groups in the FE model. More...
 
void updateElemGroupProxies ()
 Updates element groups to be in sync with the FE model of the part. More...
 
void updateMassProperties ()
 Recalculates the mass properties of the part from its FE model. More...
 
void updateLoadCases ()
 Updates the load case data from the FE part data object. More...
 
bool syncRSD (bool askForMissingFiles=false)
 Syncronizes the FE part RSD with data found on disk. More...
 
ReposType usesRepository () const
 Checks if the part data files are saved in an external repository. More...
 
std::string getAbsFilePath (bool createDir=false) const override
 Returns the path to the directory in which the part will be saved. More...
 
std::string getBaseFTLFile (bool createDir=false) const
 Returns the full path of the saved FE data file of this part. More...
 
std::string getBaseFTLName (bool includExt=false) const
 Returns the base ftl-file name of this part. More...
 
const std::string & setValidBaseFTLFile (unsigned int cs=0)
 Assigns a valid filename for storing the FE data of this part. More...
 
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...
 
void initAfterResolve () override
 Hook for initialisation after resolving cross references. More...
 
FmBase * duplicate () const override
 Returns a connected copy of this object. More...
 
 FFaEnumMapping (RamLevel)
 
 FFaEnumMapping (MassCalculation)
 
 FFaEnumMapping (InertiaRef)
 
 FFaEnumMapping (GenericPartStiffType)
 
 FFaEnumMapping (FloatPrecision)
 
 FFaEnumMapping (CentripOption)
 
- Public Member Functions inherited from FmIsPositionedBase
virtual const FaMat34 & getLocalCS () const
 
virtual FaMat34 getGlobalCS () const
 
virtual void setGlobalCS (const FaMat34 &globalMat, bool=false)
 
virtual FaVec3 getTranslation () const
 
virtual void setTranslation (const FaVec3 &translation)
 
virtual FaMat33 getOrientation () const
 
virtual void setOrientation (const FaMat33 &orient, bool notify=false)
 
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 detach ()
 
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...
 
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...
 
virtual bool disconnect ()
 Removes this object from 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...
 
virtual const char ** getListViewPixmap () const
 Returns the pixmap of this item. 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 std::string locateFEfile (const std::string &fileName)
 
static int checkParts ()
 Checks the consistency of the part topology. More...
 
static bool readAndConnect (std::istream &is, std::ostream &os=std::cout)
 Creates a new part object by reading data from a stream. 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

FFaField< std::string > BMatFile
 
FFaField< std::string > EMatFile
 
FFaField< std::string > GMatFile
 
FFaField< std::string > MMatFile
 
FFaField< std::string > SMatFile
 
FFaField< std::string > LMatFile
 
FFaField< std::string > DMatFile
 
FFaField< std::string > FMatFile
 
FFaField< std::string > SAMdataFile
 
FFaField< std::string > reducedFTLFile
 
FFaField< FmResultStatusData > myRSD
 
FFaField< std::string > originalFEFile
 Full name of imported file. More...
 
FFaField< FFaUnitCalculator > importConverter
 Converter to modeling units. More...
 
FFaField< bool > externalSource
 Externally reduced FE data? More...
 
FFaField< std::string > myRepository
 Part-specific model data repository. More...
 
FFaField< std::string > baseFTLFile
 The part file basename actually used. More...
 
FFaField< RamLevelEnum > ramUsageLevel
 
FFaNoPrintField< int > lockLevel
 
FFaField< bool > suppressInSolver
 ON-OFF toggle. More...
 
FFaField< int > minSize
 
FFaField< double > quality
 
FFaReference< FmMaterialProperty > material
 
FFaField< FFaReferenceBase * > materialField
 
FFaField< bool > useGenericProperties
 ON-OFF toggle. More...
 
FFaField< bool > condenseOutCoG
 Should the CoG DOFs be condensed out? More...
 
FFaField< double > kt
 Translational stiffness at each triad. More...
 
FFaField< double > kr
 Rotational stiffness at each triad. More...
 
FFaField< double > mass
 Total mass. More...
 
FFaField< FFaTensor3 > inertia
 Mass inertia about the centre of gravity. More...
 
FFaField< MassCalculationEnum > myCalculateMass
 
FFaField< InertiaRefEnum > myInertiaRef
 
FFaField< GenericPartStiffTypeEnum > myGenericPartStiffType
 
FFaField< bool > overrideChecksum
 Ignore checksum for reducer and solver - only check file presence. More...
 
FFaField< int > nGenModes
 
FFaField< int > nEigvalsCalc
 
FFaField< bool > expandModeShapes
 
FFaField< bool > useConsistentMassMatrix
 
FFaField< bool > factorizeMassMxEigSol
 
FFaField< FloatPrecisionEnum > recoveryMatrixSavePrecision
 
FFaField< double > tolFactorize
 
FFaField< double > tolEigenval
 
FFaField< CentripOptionEnum > myCentripOption
 
FFaReferenceList< FmEngine > myLoadEngines
 
FFaField< FFaReferenceListBase * > myLoadEnginesField
 
FFaField< DoubleVec > myLoadDelays
 
FFaField< DoubleVec > myLoadFactors
 
FFaField< IntVec > myLoadCases
 
FFaField< int > recoveryDuringSolve
 
FFaField< bool > ignoreInRecovery
 
FFaField< bool > useExternalResFile
 
FFaField< std::string > externalResFileName
 
FFaField< bool > useNonlinearReduction
 
FFaField< int > numberOfNonlinearSolutions
 
FFaField< int > nonLinStates
 
FFaField< std::string > nonlinearDataFileName
 
FFaField< bool > hasBuoyancy
 
- Public Attributes inherited from FmIsPlottedBase
FFaField< BoolVec > mySaveVar
 Toggles for result output. More...
 

Static Public Attributes

static bool enableNonlinearFE = false
 
- 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 Member Functions

virtual ~FmPart ()
 The destructor disconnects the part from the model database. More...
 
 FmPart (const FmPart &)=delete
 Deleted copy constructor. More...
 
FmPart operator= (const FmPart &)=delete
 Deleted assignment operator. More...
 
bool cloneLocal (FmBase *obj, int depth) override
 Clones the data fields of *obj into *this. More...
 
bool attachTriad (FmTriad *attachTr, FmTriad *oldTr, bool isSilent) final
 Attaching a triad when having an old triad in the same place. More...
 
std::pair< FmTriad *, bool > getExistingTriad (const FmTriad *triad) final
 Returns a triad co-located with another triad, if any. More...
 
bool isAttachable () const final
 Returns true if external node status changes are allowed. More...
 
- 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 eraseOptions ()
 Hook for class-specific tasks before deleting *this in erase(). More...
 
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...
 
bool cloneLocal (FmBase *obj, int depth) override
 Clones the data fields of *obj into *this. 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...
 
bool eraseOptions () override
 Hook for class-specific tasks before deleting *this in erase(). 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

bool renewFEmodel ()
 Allocates a new FFlLinkHandler object for the storage of FE data. More...
 

Static Private Member Functions

static bool locateOriginalFEfile (std::string &fileName, bool &useUnitCalc)
 Private method searching for the original FE file of a part. More...
 

Private Attributes

FFlLinkHandler * myFEData
 The actual FE model data. More...
 
FFaNoPrintField< bool > needsCSupdate
 To delay checksum calculation. More...
 
FFaField< FFaCheckSum > cachedChecksum
 Used when FE model is unloaded. More...
 
FFaNoPrintField< unsigned long > savedCS
 The last saved checksum value. More...
 
FFaField< FFa3DLocation > myCG
 
FFaReference< FmIsPositionedBase > myCGPosRef
 
FFaField< FFaReferenceBase * > myCGPosRefField
 
FFaReference< FmIsPositionedBase > myCGRotRef
 
FFaField< FFaReferenceBase * > myCGRotRefField
 
bool isCGedited
 If true, the CG has been edited manually. More...
 
int fileVersion
 Version number of the saved FTL-file. More...
 

Additional Inherited Members

- 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 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]
 

Member Enumeration Documentation

◆ CentripOption

Enumerator
MODEL_DEFAULT_CENTRIP_CORRECTION 
USE_CENTRIP_CORRECTION 
NO_CENTRIP_CORRECTION 

◆ DofFilter

Enumerator
ALL_DOFS 
THREE_DOFS 
SIX_DOFS 

◆ FloatPrecision

Enumerator
SINGLE_PRECISION 
DOUBLE_PRECISION 

◆ GenericPartStiffType

Enumerator
DEFAULT_RIGID 
NODE_STIFFNESS 

◆ InertiaRef

Enumerator
POS_CG_ROT_CS 
POS_CG_ROT_CG 

◆ LockLevel

Enumerator
FM_ALLOW_MODIFICATIONS 
FM_ALLOW_LINK_EXT_NODE_MOD 
FM_DENY_ALL_LINK_MOD 
FM_DENY_LINK_USAGE 

◆ MassCalculation

Enumerator
EXPLICIT 
FROM_GEOMETRY 
FROM_FEM 

◆ RamLevel

Enumerator
NOTHING 
REDUCED_VIZ 
SURFACE_FE 
FULL_FE 

◆ ReposType

Enumerator
INTERNAL_REP 
EXTERNAL_REP 
LINK_SPECIFIC 

Constructor & Destructor Documentation

◆ FmPart() [1/3]

FmPart::FmPart ( const FaVec3 &  globalPos = FaVec3())

Default constructor.

◆ FmPart() [2/3]

FmPart::FmPart ( const char *  EarthName)

Constructor used for creating the earth link only.

For the earth link, no field initialization or visualization model is needed.

◆ ~FmPart()

FmPart::~FmPart ( )
protectedvirtual

The destructor disconnects the part from the model database.

◆ FmPart() [3/3]

FmPart::FmPart ( const FmPart &  )
protecteddelete

Deleted copy constructor.

Member Function Documentation

◆ attachTriad()

bool FmPart::attachTriad ( FmTriad *  attachTr,
FmTriad *  oldTr,
bool  isSilent 
)
finalprotectedvirtual

Attaching a triad when having an old triad in the same place.

This is what has to be done in this method:

  • If the triad to attach is a dependent joint triad and the old triad has boundary conditions, inquire if the boundary conditions should be moved to the joint instead.
  • Clone properties from the old triad to the attached one.
  • Erase the old triad.

HOW THE COORDINATE SYSTEMS FOR THE TRIADS ARE CHECKED AND MATCHED

Master = Independent joint triad
Slave  = Dependent joint triad

Old triad                    New triad
---------                    ---------
Master    --- CS check >>--  Master >> if the CSs are the same: OK
Master    ---- XX ----       Slave  (except FreeJoint: same as None->Slave)
Master    -- CS -->          None w/o dirs

Slave     ---- XX ----       Master (except FreeJoint: same as None->Master)
Slave     ---- XX ----       Slave  (except FreeJoint: same as None->Slave)
Slave     -- CS -->          None

None      <-- CS --          Master
None      <-- CS --          Slave
None      -- CS -->          None

Reimplemented from FmLink.

◆ checkParts()

int FmPart::checkParts ( )
static

Checks the consistency of the part topology.

This method checks that:

  1. At least one triad on each part.
  2. All triads must have a proper FE-node.

◆ clearSupelFiles()

void FmPart::clearSupelFiles ( bool  includeFTL = true)

Clears all file paths derived from originalFEFile.

◆ clone()

bool FmPart::clone ( FmBase *  ,
int   
)
overridevirtual

Copies the fields of another object into *this.

Reimplemented from FmBase.

◆ cloneLocal()

bool FmPart::cloneLocal ( FmBase *  obj,
int  depth 
)
overrideprotectedvirtual

Clones the data fields of *obj into *this.

This method tries to copy all fields of the cloned object into this object.

Returns
true if all of them have a matching field in this and false otherwise.

Reimplemented from FmLink.

◆ convertOP2files()

bool FmPart::convertOP2files ( const std::string &  filePath)

◆ copyExternalFiles()

bool FmPart::copyExternalFiles ( const std::string &  from,
const std::string &  to 
)

◆ createElemGroupProxies()

void FmPart::createElemGroupProxies ( )

Creates proxy element groups based on the groups in the FE model.

◆ createFEData()

bool FmPart::createFEData ( bool  parabolic)

Generates a tetrahedron mesh from CAD data, if any.

◆ delayedCheckSumUpdate()

void FmPart::delayedCheckSumUpdate ( )
inline

◆ duplicate()

FmBase * FmPart::duplicate ( ) const
overridevirtual

Returns a connected copy of this object.

Reimplemented from FmModelMemberBase.

◆ enforceStrainRosetteRecovery()

bool FmPart::enforceStrainRosetteRecovery ( )

◆ exportPart()

bool FmPart::exportPart ( const std::string &  ftlFile,
bool  extNodeInfo = true,
bool  withCheckSum = false,
bool  noMetaData = false 
) const

Writes the FE data of this part to the specified ftlFile.

This method writes the FE data toghether with some additional meta information on from where, who, and when the file was written. Optionally, the part check-sum is also written, which then is used to detect whether the file has been edited manually when reading it.

◆ FFaEnumMapping() [1/6]

FmPart::FFaEnumMapping ( CentripOption  )
inline

◆ FFaEnumMapping() [2/6]

FmPart::FFaEnumMapping ( FloatPrecision  )
inline

◆ FFaEnumMapping() [3/6]

FmPart::FFaEnumMapping ( GenericPartStiffType  )
inline

◆ FFaEnumMapping() [4/6]

FmPart::FFaEnumMapping ( InertiaRef  )
inline

◆ FFaEnumMapping() [5/6]

FmPart::FFaEnumMapping ( MassCalculation  )
inline

◆ FFaEnumMapping() [6/6]

FmPart::FFaEnumMapping ( RamLevel  )
inline

◆ findTriad()

FmTriad * FmPart::findTriad ( int  baseID) const
virtual

Returns a specified triad attached to this link.

Implements FmLink.

◆ forceSave()

void FmPart::forceSave ( )
inline

◆ getAbsFilePath()

std::string FmPart::getAbsFilePath ( bool  createDir = false) const
overridevirtual

Returns the path to the directory in which the part will be saved.

This method will try to create the directory if it does not exist, but only if createDir is true.

Reimplemented from FmLink.

◆ getBaseFTLFile()

std::string FmPart::getBaseFTLFile ( bool  createDir = false) const

Returns the full path of the saved FE data file of this part.

◆ getBaseFTLName()

std::string FmPart::getBaseFTLName ( bool  includExt = false) const

Returns the base ftl-file name of this part.

◆ getBBox()

bool FmPart::getBBox ( FaVec3 &  max,
FaVec3 &  min 
) const
finalvirtual

Calculates the bounding box of this link.

Reimplemented from FmLink.

◆ getCGPosRef()

FmIsPositionedBase* FmPart::getCGPosRef ( ) const
inline

◆ getCGRotRef()

FmIsPositionedBase* FmPart::getCGRotRef ( ) const
inline

◆ getCheckSum()

void FmPart::getCheckSum ( FFaCheckSum &  cs)

◆ getClosestNode()

FFlNode * FmPart::getClosestNode ( const FaVec3 &  point) const

◆ getCompModesAlpha()

bool FmPart::getCompModesAlpha ( DoubleVec &  alpha,
int  type 
) const

◆ getCompModesFlags()

int FmPart::getCompModesFlags ( IntVec &  BCcodes) const

◆ getElementGroups()

void FmPart::getElementGroups ( std::vector< FmElementGroupProxy * > &  groups) const

◆ getExistingTriad()

std::pair< FmTriad *, bool > FmPart::getExistingTriad ( const FmTriad *  triad)
finalprotectedvirtual

Returns a triad co-located with another triad, if any.

This method returns any existing triad that is positioned at the same point as triad on this part, and whether triad is attachable in case no triad is found. The method is used internally by FmLink::isTriadAttachable().

Reimplemented from FmLink.

◆ getFreeJointEnds()

void FmPart::getFreeJointEnds ( std::vector< FmTriad * > &  toFill) const

◆ getLinkHandler()

FFlLinkHandler* FmPart::getLinkHandler ( ) const
inline

Returns the current FE data model for this part.

◆ getLocationCG()

const FFa3DLocation& FmPart::getLocationCG ( ) const
inline

◆ getMass()

double FmPart::getMass ( ) const
inlinefinalvirtual

Returns the total mass of this link.

Implements FmLink.

◆ getMeshParams()

bool FmPart::getMeshParams ( int *  nnod,
int *  nel = NULL,
bool *  parabolic = NULL,
int *  ndof = NULL,
std::string *  elmTypeCount = NULL 
) const

◆ getNode()

FFlNode * FmPart::getNode ( int  nodeNo) const

◆ getNodeAtPoint()

FFlNode * FmPart::getNodeAtPoint ( const FaVec3 &  point,
double  tolerance,
FFlConnectorItems *  addItems = NULL,
int  oldId = -1 
)

Returns the closest FE node to a given point, or NULL if not found.

If oldId is given and larger than zero, it is taken as the existing node at the point and will be used if it satisfies the other search criteria. If the found node is a dependent FE node, a new node is created by adding a stiff CBUSH element between the dependent node and the newly created node. The new node is then returned.

◆ getNodeConnectivity()

bool FmPart::getNodeConnectivity ( int  nodeNo,
Strings &  elements 
) const

◆ getNodeIDAtPoint()

int FmPart::getNodeIDAtPoint ( const FaVec3 &  point,
double  tolerance 
)

◆ getNodePos()

int FmPart::getNodePos ( int  nodeNo,
double *  x = NULL,
double *  y = NULL,
double *  z = NULL 
) const

◆ getNumberOfTriads()

int FmPart::getNumberOfTriads ( ) const
virtual

Returns the number of triads attached to this link.

Implements FmLink.

◆ getPositionCG()

FaMat34 FmPart::getPositionCG ( bool  globalCS = true) const
overridevirtual

Returns the Center of Gravity position for this part.

Parameters
[in]globalCSIf false, use part coordinates, otherwise global

Implements FmLink.

◆ getStickers()

void FmPart::getStickers ( std::vector< FmSticker * > &  toFill) const
overridevirtual

Reimplemented from FmIsPositionedBase.

◆ getTaskName()

std::string FmPart::getTaskName ( const char *  fmt = "%d_") const

◆ getTransform()

FaMat34 FmPart::getTransform ( ) const

◆ getTriadAtNode()

FmTriad * FmPart::getTriadAtNode ( int  nodeNo) const

Returns the triad associated with given FE node, or NULL if none.

◆ getTriads()

void FmPart::getTriads ( std::vector< FmTriad * > &  toFill,
bool  sortOnId = false 
) const
virtual

Returns all triads attached to this link.

Implements FmLink.

◆ getUITypeName()

const char* FmPart::getUITypeName ( ) const
inlineoverridevirtual

Returns the type name of this object for use in the GUI.

Reimplemented from FmBase.

◆ hasChangedFEdata()

bool FmPart::hasChangedFEdata ( ) const

◆ hasLoads()

bool FmPart::hasLoads ( ) const

Checks if this part has any distributed loads.

◆ hasOP2files()

bool FmPart::hasOP2files ( ) const

◆ hasResults()

bool FmPart::hasResults ( ) const

◆ hasStrainCoat()

bool FmPart::hasStrainCoat ( ) const

◆ hasStrainRosettes()

bool FmPart::hasStrainRosettes ( ) const

◆ importPart()

bool FmPart::importPart ( const std::string &  fileName,
const FFaUnitCalculator *  conv = NULL,
bool  storeRelativePath = true,
bool  autoRefNodeTriads = false,
bool  isReloading = false 
)

Imports FE part data from an external source.

The fileName is here supposed to be a full-path name of an existing file outside the model database. It can be of any of the supported file formats. If conv is specified (i.e., not NULL), it is used to convert the units of all dimensional quantities in the imported file to the current modeling units. If storeRelativePath is true, only the path relative to current model file location is stored in originalFEFile, otherwise the full path is stored.

This method will also create triads at all FE nodes in the imported file that are tagged as external. In addition (but only if autoRefNodeTriads is true), triads will be created at the reference nodes of WAVGM and RGD elements in the model, if no other elements are connected to these nodes. For the WAVGM elements, this will results in additional nodes and elements being created since the WAVGM reference node itslef is a slave node and can not be external, see getNodeAtPoint().

◆ initAfterResolve()

void FmPart::initAfterResolve ( )
overridevirtual

Hook for initialisation after resolving cross references.

Reimplemented from FmSimulationModelBase.

◆ interactiveErase()

bool FmPart::interactiveErase ( )
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 FmLink.

◆ isAttachable()

bool FmPart::isAttachable ( ) const
finalprotectedvirtual

Returns true if external node status changes are allowed.

Reimplemented from FmLink.

◆ isDisabled()

bool FmPart::isDisabled ( ) const
finalvirtual

Returns true if the FE data of this link is disabled.

Reimplemented from FmLink.

◆ isFELoaded()

bool FmPart::isFELoaded ( bool  fullOnly = false) const

Returns true if the part's FE model currently is loaded.

◆ isFEPart()

bool FmPart::isFEPart ( bool  loadedOnly = false) const
finalvirtual

Returns true if this is a used (and loaded) FE part.

Reimplemented from FmLink.

◆ isGenericPart()

bool FmPart::isGenericPart ( ) const
inlinefinalvirtual

Returns true if this link is a generic part.

Reimplemented from FmLink.

◆ isMeshable()

bool FmPart::isMeshable ( ) const

◆ isRotatable()

char FmPart::isRotatable ( ) const
inlineoverridevirtual

Reimplemented from FmIsPositionedBase.

◆ isSaved()

bool FmPart::isSaved ( bool  checkFEpartsOnly = true) const

Returns true if the part is saved in its associated repository.

Always return true for generic parts if checkFEpartsOnly is true.

◆ isSuppressed()

bool FmPart::isSuppressed ( ) const
inlinefinalvirtual

Returns true if this link is suppressed.

Reimplemented from FmLink.

◆ isTranslatable()

bool FmPart::isTranslatable ( ) const
overridevirtual

Reimplemented from FmIsPositionedBase.

◆ locateFEfile()

std::string FmPart::locateFEfile ( const std::string &  fileName)
static

◆ locateOriginalFEfile()

bool FmPart::locateOriginalFEfile ( std::string &  fileName,
bool &  useUnitCalc 
)
staticprivate

Private method searching for the original FE file of a part.

Based on the given fileName, the following possible locations are checked:

  • The original FE part location, as given in the model file
  • The original FE part, in a sub-folder of current model file path
  • The original FE part, in a parallel folder to current model file path
  • The original FE part, next to the model file
  • (new) ftl file, next to model file, unless this is the same as the original part file (for this case, ignore the specified unit calculator). The latter case is considered only when useUnitCalc is true on input.

◆ mergeGenericParts()

bool FmPart::mergeGenericParts ( FmPart *  that)

◆ openFEData()

bool FmPart::openFEData ( )

Reads the FE data from a file already in the part DB.

◆ operator=()

FmPart FmPart::operator= ( const FmPart &  )
protecteddelete

Deleted assignment operator.

◆ printSolverLoads()

void FmPart::printSolverLoads ( FILE *  fp) const

Writes distributed load data to the solver input file.

◆ readAndConnect()

bool FmPart::readAndConnect ( std::istream &  is,
std::ostream &  os = std::cout 
)
static

Creates a new part object by reading data from a stream.

◆ readyForUpdate()

void FmPart::readyForUpdate ( bool  useExistingFmx = false)

Clears data related to the FE model before importing a new one.

◆ renewFEmodel()

bool FmPart::renewFEmodel ( )
private

Allocates a new FFlLinkHandler object for the storage of FE data.

◆ saveFEData()

bool FmPart::saveFEData ( bool  forceSave = false)

◆ setCGPosRef()

bool FmPart::setCGPosRef ( FmIsPositionedBase *  ref)

◆ setCGRotRef()

bool FmPart::setCGRotRef ( FmIsPositionedBase *  ref)

◆ setLinkHandler()

void FmPart::setLinkHandler ( FFlLinkHandler *  part,
bool  eraseGroupProxies = false 
)

Assigns a new FE data model to the part.

The current FE model data pointed to by myFEData is deleted. This method will also clear all existing proxy element groups in this part. Either they are erased completely, or the pointer to the real finite element group is reset to NULL.

◆ setLocalCS()

void FmPart::setLocalCS ( const FaMat34 &  localCS)
overridevirtual

This method is overridden to update the location data on all triads on this part when changing this parts position.

Also move any joints whose dependent triad is connected to this part, if the corresponding independent triad is un-attached or attached to ground.

Reimplemented from FmIsPositionedBase.

◆ setLocationCG() [1/2]

void FmPart::setLocationCG ( const FaVec3 &  CoG,
const FaVec3 &  Iaxes 
)

◆ setLocationCG() [2/2]

void FmPart::setLocationCG ( const FFa3DLocation &  cg)

◆ setOrientationCG()

void FmPart::setOrientationCG ( const FaVec3 &  Xaxis,
const FaVec3 &  XYplane 
)

◆ setPositionCG()

void FmPart::setPositionCG ( const FaVec3 &  CoG,
bool  edited = false 
)

◆ setValidBaseFTLFile()

const std::string & FmPart::setValidBaseFTLFile ( unsigned int  cs = 0)

Assigns a valid filename for storing the FE data of this part.

This method sets the baseFTLFile name of this part based on the originalFEFile, such that the name is unique for all parts (in case this FE model is used more than once). The name is set to <bName>.ftl where <bName> equals originalFEFile without the directory part (if any) and file extension (if any). Note that all non-alphanumeric characters also are replaced by "_"'s.

◆ setVisDetail()

bool FmPart::setVisDetail ( const std::vector< FmElementGroupProxy * > &  groups,
int  dType 
)

◆ setVisualizationFile()

bool FmPart::setVisualizationFile ( const std::string &  fileName,
bool  updateViz = true 
)

◆ syncRSD()

bool FmPart::syncRSD ( bool  askForMissingFiles = false)

Syncronizes the FE part RSD with data found on disk.

◆ updateCachedCheckSum()

void FmPart::updateCachedCheckSum ( )

◆ updateElemGroupProxies()

void FmPart::updateElemGroupProxies ( )

Updates element groups to be in sync with the FE model of the part.

◆ updateLoadCases()

void FmPart::updateLoadCases ( )

Updates the load case data from the FE part data object.

◆ updateMassProperties()

void FmPart::updateMassProperties ( )

Recalculates the mass properties of the part from its FE model.

◆ updateTriadTopologyRefs()

bool FmPart::updateTriadTopologyRefs ( bool  checkUnloaded = true,
char  useOutput = 3 
)

Updates triad to FE node connection after (re)loading the FE model.

This method is supposed to find all triads on this part that are not valid for solving, because they are wrongly positioned or can not be associated with a valid FE node. It is used to keep the model as consistent as possible.

  • If it is a generic or suppressed part:
    • No checking, all triads are valid.
  • If it is a FE part:
    • If no FE data is loaded:
      • Checks that all triads have a FE node assigned.
      • Report those triads that don't.
    • If FE data is loaded:
      • Checks which triads are validly connected to the underlying FE mesh.
      • Updates the FE node number on each triad. Set to -1 if no FE node found.

◆ useFEModelAsVisualization()

bool FmPart::useFEModelAsVisualization ( ) const

Returns true if the part's FE model is used for visualization.

◆ usesRepository()

FmPart::ReposType FmPart::usesRepository ( ) const

Checks if the part data files are saved in an external repository.

◆ writeFMF()

std::ostream & FmPart::writeFMF ( std::ostream &  os = std::cout)
overridevirtual

Writes out this object in the model database file format.

Reimplemented from FmBase.

◆ writeToVTF()

bool FmPart::writeToVTF ( VTFAFile &  vtfFile,
IntVec *  outputOrder,
IntVec *  fstOrdNodes 
)
overridevirtual

Writes the FE data of this part to the specified vtfFile.

Implements FmLink.

Member Data Documentation

◆ baseFTLFile

FFaField<std::string> FmPart::baseFTLFile

The part file basename actually used.

◆ BMatFile

FFaField<std::string> FmPart::BMatFile

◆ cachedChecksum

FFaField<FFaCheckSum> FmPart::cachedChecksum
private

Used when FE model is unloaded.

◆ condenseOutCoG

FFaField<bool> FmPart::condenseOutCoG

Should the CoG DOFs be condensed out?

◆ DMatFile

FFaField<std::string> FmPart::DMatFile

◆ EMatFile

FFaField<std::string> FmPart::EMatFile

◆ enableNonlinearFE

bool FmPart::enableNonlinearFE = false
static

◆ expandModeShapes

FFaField<bool> FmPart::expandModeShapes

◆ externalResFileName

FFaField<std::string> FmPart::externalResFileName

◆ externalSource

FFaField<bool> FmPart::externalSource

Externally reduced FE data?

◆ factorizeMassMxEigSol

FFaField<bool> FmPart::factorizeMassMxEigSol

◆ fileVersion

int FmPart::fileVersion
private

Version number of the saved FTL-file.

◆ FMatFile

FFaField<std::string> FmPart::FMatFile

◆ GMatFile

FFaField<std::string> FmPart::GMatFile

◆ hasBuoyancy

FFaField<bool> FmPart::hasBuoyancy

◆ ignoreInRecovery

FFaField<bool> FmPart::ignoreInRecovery

◆ importConverter

FFaField<FFaUnitCalculator> FmPart::importConverter

Converter to modeling units.

◆ inertia

FFaField<FFaTensor3> FmPart::inertia

Mass inertia about the centre of gravity.

◆ isCGedited

bool FmPart::isCGedited
private

If true, the CG has been edited manually.

◆ kr

FFaField<double> FmPart::kr

Rotational stiffness at each triad.

◆ kt

FFaField<double> FmPart::kt

Translational stiffness at each triad.

◆ LMatFile

FFaField<std::string> FmPart::LMatFile

◆ lockLevel

FFaNoPrintField<int> FmPart::lockLevel

◆ mass

FFaField<double> FmPart::mass

Total mass.

◆ material

FFaReference<FmMaterialProperty> FmPart::material

◆ materialField

FFaField<FFaReferenceBase*> FmPart::materialField

◆ minSize

FFaField<int> FmPart::minSize

◆ MMatFile

FFaField<std::string> FmPart::MMatFile

◆ myCalculateMass

FFaField<MassCalculationEnum> FmPart::myCalculateMass

◆ myCentripOption

FFaField<CentripOptionEnum> FmPart::myCentripOption

◆ myCG

FFaField<FFa3DLocation> FmPart::myCG
private

◆ myCGPosRef

FFaReference<FmIsPositionedBase> FmPart::myCGPosRef
private

◆ myCGPosRefField

FFaField<FFaReferenceBase*> FmPart::myCGPosRefField
private

◆ myCGRotRef

FFaReference<FmIsPositionedBase> FmPart::myCGRotRef
private

◆ myCGRotRefField

FFaField<FFaReferenceBase*> FmPart::myCGRotRefField
private

◆ myFEData

FFlLinkHandler* FmPart::myFEData
private

The actual FE model data.

◆ myGenericPartStiffType

FFaField<GenericPartStiffTypeEnum> FmPart::myGenericPartStiffType

◆ myInertiaRef

FFaField<InertiaRefEnum> FmPart::myInertiaRef

◆ myLoadCases

FFaField<IntVec> FmPart::myLoadCases

◆ myLoadDelays

FFaField<DoubleVec> FmPart::myLoadDelays

◆ myLoadEngines

FFaReferenceList<FmEngine> FmPart::myLoadEngines

◆ myLoadEnginesField

FFaField<FFaReferenceListBase*> FmPart::myLoadEnginesField

◆ myLoadFactors

FFaField<DoubleVec> FmPart::myLoadFactors

◆ myRepository

FFaField<std::string> FmPart::myRepository

Part-specific model data repository.

◆ myRSD

FFaField<FmResultStatusData> FmPart::myRSD

◆ needsCSupdate

FFaNoPrintField<bool> FmPart::needsCSupdate
private

To delay checksum calculation.

◆ nEigvalsCalc

FFaField<int> FmPart::nEigvalsCalc

◆ nGenModes

FFaField<int> FmPart::nGenModes

◆ nonlinearDataFileName

FFaField<std::string> FmPart::nonlinearDataFileName

◆ nonLinStates

FFaField<int> FmPart::nonLinStates

◆ numberOfNonlinearSolutions

FFaField<int> FmPart::numberOfNonlinearSolutions

◆ originalFEFile

FFaField<std::string> FmPart::originalFEFile

Full name of imported file.

◆ overrideChecksum

FFaField<bool> FmPart::overrideChecksum

Ignore checksum for reducer and solver - only check file presence.

◆ quality

FFaField<double> FmPart::quality

◆ ramUsageLevel

FFaField<RamLevelEnum> FmPart::ramUsageLevel

◆ recoveryDuringSolve

FFaField<int> FmPart::recoveryDuringSolve

◆ recoveryMatrixSavePrecision

FFaField<FloatPrecisionEnum> FmPart::recoveryMatrixSavePrecision

◆ reducedFTLFile

FFaField<std::string> FmPart::reducedFTLFile

◆ SAMdataFile

FFaField<std::string> FmPart::SAMdataFile

◆ savedCS

FFaNoPrintField<unsigned long> FmPart::savedCS
private

The last saved checksum value.

◆ SMatFile

FFaField<std::string> FmPart::SMatFile

◆ suppressInSolver

FFaField<bool> FmPart::suppressInSolver

ON-OFF toggle.

◆ tolEigenval

FFaField<double> FmPart::tolEigenval

◆ tolFactorize

FFaField<double> FmPart::tolFactorize

◆ useConsistentMassMatrix

FFaField<bool> FmPart::useConsistentMassMatrix

◆ useExternalResFile

FFaField<bool> FmPart::useExternalResFile

◆ useGenericProperties

FFaField<bool> FmPart::useGenericProperties

ON-OFF toggle.

◆ useNonlinearReduction

FFaField<bool> FmPart::useNonlinearReduction

The documentation for this class was generated from the following files: