Class DFMFReader
Last update: 09.03.2026Namespace: VM.Models.FE.Utilities
Assembly: VM.Models.FE.Utilities.dll
public abstract class DFMFReader : IDFMFReader
Inheritance
object ← DFMFReader
Derived
Implements
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
DFMFReader()
protected DFMFReader()
Fields
V1Version
protected const int V1Version = 2010011432
Field Value
int
Properties
AddedNodesForRBE
public ReadOnlyCollection<Vector> AddedNodesForRBE { get; }
Property Value
ReadOnlyCollection<Vector>
ArrudaBoyceMaterials
public ReadOnlyCollection<MaterialAB> ArrudaBoyceMaterials { get; }
Property Value
ReadOnlyCollection<MaterialAB>
AvailableAsNodal
public bool AvailableAsNodal { get; protected set; }
Property Value
bool
Beam2Elements
public ReadOnlyCollection<FEElement> Beam2Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
BeamLProperties
public ReadOnlyCollection<FEPropertyBeamL> BeamLProperties { get; }
Property Value
ReadOnlyCollection<FEPropertyBeamL>
BeamProperties
public ReadOnlyCollection<FEPropertyBeam> BeamProperties { get; }
Property Value
ReadOnlyCollection<FEPropertyBeam>
DFMFFileType
public DFMFFileType DFMFFileType { get; protected set; }
Property Value
EdgeSets
public ReadOnlyCollection<NamedSelection> EdgeSets { get; }
Property Value
ReadOnlyCollection<NamedSelection>
FactorForce
public double FactorForce { get; protected set; }
Property Value
double
FactorLength
public double FactorLength { get; protected set; }
Property Value
double
FactorMass
public double FactorMass { get; protected set; }
Property Value
double
FactorScale
public double FactorScale { get; protected set; }
Property Value
double
FactorTime
public double FactorTime { get; protected set; }
Property Value
double
FilePath
public string FilePath { get; protected set; }
Property Value
string
Hash
public string Hash { get; }
Property Value
string
ISOMaterials
public ReadOnlyCollection<MaterialISO> ISOMaterials { get; }
Property Value
ReadOnlyCollection<MaterialISO>
InterfacePoints
public ReadOnlyCollection<Vector> InterfacePoints { get; }
Property Value
ReadOnlyCollection<Vector>
InvariantFilePosition
public long InvariantFilePosition { get; protected set; }
Property Value
long
Level
public uint Level { get; protected set; }
Property Value
uint
MarkerPositions
public ReadOnlyCollection<Vector> MarkerPositions { get; }
Property Value
ReadOnlyCollection<Vector>
Mass
public double Mass { get; protected set; }
Property Value
double
MassCenter
public Vector MassCenter { get; protected set; }
Property Value
Vector
MassInfoForOldVerArray
public ReadOnlyCollection<MassInfoForOldVer> MassInfoForOldVerArray { get; }
Property Value
ReadOnlyCollection<MassInfoForOldVer>
MasterPoints
public ReadOnlyCollection<uint> MasterPoints { get; }
Property Value
ReadOnlyCollection<uint>
ModalType
public DFMFType ModalType { get; protected set; }
Property Value
Modes
public ReadOnlyCollection<Mode> Modes { get; }
Property Value
ReadOnlyCollection<Mode>
MomentOfInertia
public ReadOnlyCollection<double> MomentOfInertia { get; protected set; }
Property Value
ReadOnlyCollection<double>
MooneyRivlinMaterials
public ReadOnlyCollection<MaterialMR> MooneyRivlinMaterials { get; }
Property Value
ReadOnlyCollection<MaterialMR>
NBodies
public ReadOnlyCollection<NBody> NBodies { get; }
Property Value
ReadOnlyCollection<NBody>
NeoHookeanMaterials
public ReadOnlyCollection<MaterialNH> NeoHookeanMaterials { get; }
Property Value
ReadOnlyCollection<MaterialNH>
NodePositions
public ReadOnlyCollection<Vector> NodePositions { get; }
Property Value
ReadOnlyCollection<Vector>
NumberOfDummyNode
public int NumberOfDummyNode { get; protected set; }
Property Value
int
NumberOfInterfacePoints
public int NumberOfInterfacePoints { get; protected set; }
Property Value
int
NumberOfMarkerPositions
public int NumberOfMarkerPositions { get; protected set; }
Property Value
int
NumberOfMassInfosForOldVersion
public int NumberOfMassInfosForOldVersion { get; protected set; }
Property Value
int
NumberOfMasterPoints
public int NumberOfMasterPoints { get; protected set; }
Property Value
int
NumberOfModes
public int NumberOfModes { get; protected set; }
Property Value
int
NumberOfNodes
public int NumberOfNodes { get; protected set; }
Property Value
int
NumberOfTetraConnectivities
public int NumberOfTetraConnectivities { get; protected set; }
Property Value
int
NumberOfTriaConnectivities
public int NumberOfTriaConnectivities { get; protected set; }
Property Value
int
ORTHOMaterials
public ReadOnlyCollection<MaterialORTHO> ORTHOMaterials { get; }
Property Value
ReadOnlyCollection<MaterialORTHO>
OgdenMaterials
public ReadOnlyCollection<MaterialOG> OgdenMaterials { get; }
Property Value
ReadOnlyCollection<MaterialOG>
PatchSets
public ReadOnlyCollection<NamedSelection> PatchSets { get; }
Property Value
ReadOnlyCollection<NamedSelection>
RBE2s
public ReadOnlyCollection<FEConstraintRBE> RBE2s { get; }
Property Value
ReadOnlyCollection<FEConstraintRBE>
RBE3s
public ReadOnlyCollection<FEConstraintRBE> RBE3s { get; }
Property Value
ReadOnlyCollection<FEConstraintRBE>
Shell3Elements
public ReadOnlyCollection<FEElement> Shell3Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Shell4Elements
public ReadOnlyCollection<FEElement> Shell4Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Shell6Elements
public ReadOnlyCollection<FEElement> Shell6Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Shell8Elements
public ReadOnlyCollection<FEElement> Shell8Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
ShellProperties
public ReadOnlyCollection<FEPropertyShell> ShellProperties { get; }
Property Value
ReadOnlyCollection<FEPropertyShell>
Solid10Elements
public ReadOnlyCollection<FEElement> Solid10Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid13Elements
public ReadOnlyCollection<FEElement> Solid13Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid15Elements
public ReadOnlyCollection<FEElement> Solid15Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid20Elements
public ReadOnlyCollection<FEElement> Solid20Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid4Elements
public ReadOnlyCollection<FEElement> Solid4Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid5Elements
public ReadOnlyCollection<FEElement> Solid5Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid6Elements
public ReadOnlyCollection<FEElement> Solid6Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
Solid8Elements
public ReadOnlyCollection<FEElement> Solid8Elements { get; }
Property Value
ReadOnlyCollection<FEElement>
SolidProperties
public ReadOnlyCollection<FEPropertySolid> SolidProperties { get; }
Property Value
ReadOnlyCollection<FEPropertySolid>
TetraConnectivities
public ReadOnlyCollection<int> TetraConnectivities { get; }
Property Value
ReadOnlyCollection<int>
Ties
public ReadOnlyCollection<FEConstraintTie> Ties { get; }
Property Value
ReadOnlyCollection<FEConstraintTie>
TotalNodesForModal
public int TotalNodesForModal { get; }
Property Value
int
TriaConnectivities
public ReadOnlyCollection<int> TriaConnectivities { get; }
Property Value
ReadOnlyCollection<int>
UnitForce
public double UnitForce { get; protected set; }
Property Value
double
UnitLength
public double UnitLength { get; protected set; }
Property Value
double
UnitMass
public double UnitMass { get; protected set; }
Property Value
double
UnitTime
public double UnitTime { get; protected set; }
Property Value
double
Version
public uint Version { get; protected set; }
Property Value
uint
Methods
CalcUnitFactor(Unit)
protected void CalcUnitFactor(Unit unit)
Parameters
unit Unit
Create(string, Unit, bool)
public static IDFMFReader Create(string path, Unit unit, bool readAutomatically = true)
Parameters
path string
unit Unit
readAutomatically bool
Returns
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing bool
DisposeManagedResource()
protected virtual void DisposeManagedResource()
DisposeNativeResources()
protected virtual void DisposeNativeResources()
EqualsPatch(FEPatchInfo[], FEPatchInfo[])
public bool EqualsPatch(FEPatchInfo[] infoTarget, FEPatchInfo[] infoTool)
Parameters
infoTarget FEPatchInfo[]
infoTool FEPatchInfo[]
Returns
bool
~DFMFReader()
protected ~DFMFReader()
GetMarkerInformation(Vector, int, out Vector, out Vector)
public bool GetMarkerInformation(Vector position, int modeSequence, out Vector vecTrans, out Vector vecRot)
Parameters
position Vector
modeSequence int
vecTrans Vector
vecRot Vector
Returns
bool
GetModeInterPoint(Vector, int, out Vector, out Vector)
public bool GetModeInterPoint(Vector position, int modeSequence, out Vector vecTransMode, out Vector vecRotMode)
Parameters
position Vector
modeSequence int
vecTransMode Vector
vecRotMode Vector
Returns
bool
GetMultipleShapes(ModeMeta, ICollection<int>, int, double, out Vector[])
protected abstract void GetMultipleShapes(DFMFReader.ModeMeta rotationalShape, ICollection<int> colModeSeq, int nodeSeq, double v, out Vector[] vecModes)
Parameters
rotationalShape DFMFReader.ModeMeta
colModeSeq ICollection<int>
nodeSeq int
v double
vecModes Vector[]
GetMultipleStress(ModeMeta, ICollection<int>, int, double, out ICollection<double[]>)
protected abstract void GetMultipleStress(DFMFReader.ModeMeta meta, ICollection<int> colModeSeq, int nodeSeq, double factor, out ICollection<double[]> stress)
Parameters
meta DFMFReader.ModeMeta
colModeSeq ICollection<int>
nodeSeq int
factor double
stress ICollection<double[]>
GetPointInformation(ICollection<Vector>, ModeMeta, Vector, int, out Vector, out Vector)
protected abstract bool GetPointInformation(ICollection<Vector> points, DFMFReader.ModeMeta meta, Vector position, int modeSequence, out Vector vecTra, out Vector vecRot)
Parameters
points ICollection<Vector>
meta DFMFReader.ModeMeta
position Vector
modeSequence int
vecTra Vector
vecRot Vector
Returns
bool
GetPointInformationImpl(ICollection<Vector>, ModeMeta, Vector, int, out Vector, out Vector, Func<int, (Vector, Vector)>)
protected bool GetPointInformationImpl(ICollection<Vector> points, DFMFReader.ModeMeta meta, Vector position, int modeSequence, out Vector vecTra, out Vector vecRot, Func<int, (Vector, Vector)> functionToRead)
Parameters
points ICollection<Vector>
meta DFMFReader.ModeMeta
position Vector
modeSequence int
vecTra Vector
vecRot Vector
functionToRead Func<int, (Vector, Vector)>
Returns
bool
GetRotationalShape(int, int, out Vector)
public void GetRotationalShape(int nModeSeq, int nNodeSeq, out Vector vecMode)
Parameters
nModeSeq int
nNodeSeq int
vecMode Vector
GetRotationalShape(ICollection<int>, int, out Vector[])
public void GetRotationalShape(ICollection<int> colModeSeq, int nNodeSeq, out Vector[] arVecMode)
Parameters
colModeSeq ICollection<int>
nNodeSeq int
arVecMode Vector[]
GetSingleShape(ModeMeta, int, int, double, out Vector)
protected abstract void GetSingleShape(DFMFReader.ModeMeta meta, int modeSeq, int nodeSeq, double factor, out Vector mode)
Parameters
meta DFMFReader.ModeMeta
modeSeq int
nodeSeq int
factor double
mode Vector
GetSingleStress(ModeMeta, int, int, double, out double[])
protected abstract void GetSingleStress(DFMFReader.ModeMeta meta, int modeSeq, int nodeSeq, double factor, out double[] stress)
Parameters
meta DFMFReader.ModeMeta
modeSeq int
nodeSeq int
factor double
stress double[]
GetStressShape(int, int, out double[])
public void GetStressShape(int modeSeq, int nodeSeq, out double[] stress)
Parameters
modeSeq int
nodeSeq int
stress double[]
GetStressShape(ICollection<int>, int, out ICollection<double[]>)
public void GetStressShape(ICollection<int> colModeSeq, int nodeSeq, out ICollection<double[]> stress)
Parameters
colModeSeq ICollection<int>
nodeSeq int
stress ICollection<double[]>
GetTranslationalShape(int, int, out Vector)
public void GetTranslationalShape(int nModeSeq, int nNodeSeq, out Vector vecMode)
Parameters
nModeSeq int
nNodeSeq int
vecMode Vector
GetTranslationalShape(ICollection<int>, int, out Vector[])
public void GetTranslationalShape(ICollection<int> colModeSeq, int nNodeSeq, out Vector[] arVecMode)
Parameters
colModeSeq ICollection<int>
nNodeSeq int
arVecMode Vector[]
GetUnusedModeIndexes()
public ReadOnlyCollection<int> GetUnusedModeIndexes()
Returns
ReadOnlyCollection<int>
ImportImpl(string, Unit)
protected abstract void ImportImpl(string strModeFileName, Unit unit)
Parameters
strModeFileName string
unit Unit
ReadConstraintInformation()
protected abstract void ReadConstraintInformation()
ReadHashInformation()
protected abstract void ReadHashInformation()
ReadInterfacePoints()
protected abstract void ReadInterfacePoints()
ReadMarkerPositions()
protected abstract void ReadMarkerPositions()
ReadMassInfoForOldVer()
protected abstract void ReadMassInfoForOldVer()
ReadMasterPoints()
protected abstract void ReadMasterPoints()
ReadMaterialInformation()
protected abstract void ReadMaterialInformation()
ReadModes()
protected abstract void ReadModes()
ReadNBodyInformations()
protected abstract void ReadNBodyInformations()
ReadNamedSelectionFromConstraintInformation()
protected void ReadNamedSelectionFromConstraintInformation()
ReadNamedSelectionInformation()
protected abstract void ReadNamedSelectionInformation()
ReadPropertyInformation()
protected abstract void ReadPropertyInformation()
SetConstraintInformation(FEConstraintRBE[], FEConstraintRBE[], FEConstraintTie[])
protected void SetConstraintInformation(FEConstraintRBE[] rbe2s, FEConstraintRBE[] rbe3s, FEConstraintTie[] ties)
Parameters
rbe2s FEConstraintRBE[]
rbe3s FEConstraintRBE[]
ties FEConstraintTie[]
SetHashInformation(string)
protected void SetHashInformation(string hash)
Parameters
hash string
SetInterfacePoints(Vector[])
protected void SetInterfacePoints(Vector[] points)
Parameters
points Vector[]
SetMarkerPositions(Vector[])
protected void SetMarkerPositions(Vector[] points)
Parameters
points Vector[]
SetMassInfosForOldVer(MassInfoForOldVer[])
protected void SetMassInfosForOldVer(MassInfoForOldVer[] infos)
Parameters
infos MassInfoForOldVer[]
SetMasterPoints(uint[])
protected void SetMasterPoints(uint[] points)
Parameters
points uint[]
SetMaterialInformation(MaterialISO[], MaterialORTHO[], MaterialAB[], MaterialNH[], MaterialMR[], MaterialOG[])
protected void SetMaterialInformation(MaterialISO[] isoMaterials, MaterialORTHO[] orthoMaterials, MaterialAB[] arrudaboyceMaterials, MaterialNH[] neohookeanMaterials, MaterialMR[] mooneyrivlinMaterials, MaterialOG[] ogdenMaterials)
Parameters
isoMaterials MaterialISO[]
orthoMaterials MaterialORTHO[]
arrudaboyceMaterials MaterialAB[]
neohookeanMaterials MaterialNH[]
mooneyrivlinMaterials MaterialMR[]
ogdenMaterials MaterialOG[]
SetModes(Mode[])
protected void SetModes(Mode[] modes)
Parameters
modes Mode[]
SetNBodyInformations(Vector[], int[], int[])
protected void SetNBodyInformations(Vector[] nodes, int[] triaConnectivities, int[] tetraConnectivities)
Parameters
nodes Vector[]
triaConnectivities int[]
tetraConnectivities int[]
SetNBodyInformations(NBody[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[], FEElement[])
protected void SetNBodyInformations(NBody[] nodes, FEElement[] beam2Elements, FEElement[] shell3Elements, FEElement[] shell4Elements, FEElement[] shell6Elements, FEElement[] shell8Elements, FEElement[] solid4Elements, FEElement[] solid5Elements, FEElement[] solid6Elements, FEElement[] solid8Elements, FEElement[] solid10Elements, FEElement[] solid13Elements, FEElement[] solid15Elements, FEElement[] solid20Elements)
Parameters
nodes NBody[]
beam2Elements FEElement[]
shell3Elements FEElement[]
shell4Elements FEElement[]
shell6Elements FEElement[]
shell8Elements FEElement[]
solid4Elements FEElement[]
solid5Elements FEElement[]
solid6Elements FEElement[]
solid8Elements FEElement[]
solid10Elements FEElement[]
solid13Elements FEElement[]
solid15Elements FEElement[]
solid20Elements FEElement[]
SetNamedSelectionInformation(NamedSelection[], NamedSelection[])
protected void SetNamedSelectionInformation(NamedSelection[] patchSets, NamedSelection[] edgeSets)
Parameters
patchSets NamedSelection[]
edgeSets NamedSelection[]
SetNodesForRBE(Vector[])
protected void SetNodesForRBE(Vector[] addedNodesForRBE)
Parameters
addedNodesForRBE Vector[]
SetPropertyInformation(FEPropertyBeam[], FEPropertyBeamL[], FEPropertyShell[], FEPropertySolid[])
protected void SetPropertyInformation(FEPropertyBeam[] beamProperties, FEPropertyBeamL[] beamLProperties, FEPropertyShell[] shellProperties, FEPropertySolid[] solidProperties)
Parameters
beamProperties FEPropertyBeam[]
beamLProperties FEPropertyBeamL[]
shellProperties FEPropertyShell[]
solidProperties FEPropertySolid[]
SetUnusedModeIndexes(IEnumerable<int>)
public void SetUnusedModeIndexes(IEnumerable<int> collection)
Parameters
collection IEnumerable<int>