Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class NodalBody

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL.FE
Assembly: VMFE.dll

This class is to represent the nodal body.

public class NodalBody : InstanceContainer, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IReferencable, ITransformable, IVisible, IAssemblyOwner, IInterfaceTable, IGroup, IMultiChangable, IInstanceContainer, IEntityRelation, IMarkerParent, IModalBody, IBodyAnalysisType, IBody, ITemplateObject, IMassProp, IChainable, IChangableAssembly, INodalOutputContainer, ITemperatureComponent, IHeatGenerationComponent, IGeometricalComponent, IAutoContactableFlex, IAutoContactable, IHasMesh, IPostDeserialized, IHasMaterials, INodalBody

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase ← Object ← SubEntity ← InstanceContainer ← NodalBody

Implements

IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IReferencable, ITransformable, IVisible, IAssemblyOwner, IInterfaceTable, IGroup, IMultiChangable, IInstanceContainer, IEntityRelation, IMarkerParent, IModalBody, IBodyAnalysisType, IBody, ITemplateObject, IMassProp, IChainable, IChangableAssembly, INodalOutputContainer, ITemperatureComponent, IHeatGenerationComponent, IGeometricalComponent, IAutoContactableFlex, IAutoContactable, IHasMesh, IPostDeserialized, IHasMaterials, INodalBody

Inherited Members

InstanceContainer.InitInterfaceTable(), InstanceContainer.LinkRequestUpdate(object, LinkEventArgs), InstanceContainer.BindInterface(), InstanceContainer.BindInterface(ObjectBase, ObjectBase), InstanceContainer.BindInterface(InstanceContainer.InterfaceTable), InstanceContainer.Find(string), InstanceContainer.FindLocal(string), InstanceContainer.GetNewEntityName(string), InstanceContainer.GetNewEntityName(string, bool, int), InstanceContainer.GetNewEntityName(string, bool, int, int), InstanceContainer.GetUnnamedObjectName(object), InstanceContainer.MakeReferenceImpl(LinkedList), InstanceContainer.PostOpenDocumentAfterHookEvent(), InstanceContainer.TransformImpl(TMatrix), InstanceContainer.Redraw(), InstanceContainer.GetLayerImpl(), InstanceContainer.SetLayerImpl(Layer), InstanceContainer.IsDestroyContainer(), InstanceContainer.GetTargetListForUpdate(), InstanceContainer.ProcessDuplicateReferenceImpl(Reference), InstanceContainer.PostAddToDocument(), InstanceContainer.LinkRequestDestroy(object, LinkEventArgs), InstanceContainer.GetChildListImpl(), InstanceContainer.OnDeserialization(object), InstanceContainer.Instance, InstanceContainer.InterfaceTableList, InstanceContainer.InterfaceTables, InstanceContainer.Layer, InstanceContainer.IsVisible, SubEntity.Initialize(Unit.ConvertFactor), SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool), SubEntity.FixUp(ObjectBase), SubEntity.WriteTemplateImpl(XmlWriter), SubEntity.ReadTemplateImpl(XmlReader), SubEntity.Name, SubEntity.FullName, SubEntity.NonSymmetricName, SubEntity.DisplayName, SubEntity.IsEnabled, SubEntity.Comment, Object.GetKey(), Object.Initialize(Unit.ConvertFactor), Object.SetIconColor(Canvas), Object.OnDeserialization(object), Object.CustomGetObjectData(SerializationInfo, StreamingContext), Object.RollbackEvent(), Object.OnDeserializedCore(object), Object.Key, Object.UntypedEventCore, Object.EventCore, Object.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray(T[], T[]), ObjectBase.IsEqualList(List, List), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

NodalBody(string, string, TransformBase)

Initializes a new instance of the class.

public NodalBody(string strName, string strMeshFilePath, TransformBase transf)

Parameters

strName string

Name of the nodal body.

strMeshFilePath string

The nodal body file path.

transf TransformBase

The transformation.

NodalBody(string, Instance)

Initializes a new instance of the class.

public NodalBody(string strName, Instance instanceNodalBody)

Parameters

strName string

Name of the nodal body.

instanceNodalBody Instance

The instance nodal body.

NodalBody()

Initializes a new instance of the class.

public NodalBody()

Properties

AnalysisType

Gets or sets the type of body.

BodyAnalysisType AnalysisType { get; set; }

Property Value

BodyAnalysisType

BodyType

Gets or sets the type of body.

[Obsolete]
public virtual FlexibleBodyType BodyType { get; set; }

Property Value

FlexibleBodyType

ChangedDocument

Gets the document.

Document ChangedDocument { get; }

Property Value

Document

FilePath

Gets or sets the file path.

string FilePath { get; }

Property Value

string

InitVel

Gets or sets the initial velocity.

public BodyPropertyBase.InitialVelocity InitVel { get; set; }

Property Value

BodyPropertyBase.InitialVelocity

IsModalBody

Gets a value indicating whether is modal body.

public bool IsModalBody { get; }

Property Value

bool

LargeDeformation

Gets or sets the flag of large deformation.

public bool LargeDeformation { get; set; }

Property Value

bool

MassCenter

Gets the mass center.

public Vector MassCenter { get; }

Property Value

Vector

MassCenterImpl

Gets the massCenter.

Vector MassCenterImpl { get; }

Property Value

Vector

MassValue

Gets the mass value.

public double MassValue { get; }

Property Value

double

MeshList

Gets the mesh container.

public List<mesh> MeshList { get; }

Property Value

ListMesh&gt;

ModalMassCenter

Gets the mass center for modal.

public Vector ModalMassCenter { get; }

Property Value

Vector

ModalMassValue

Gets the mass for modal.

public double ModalMassValue { get; }

Property Value

double

ModalMomentOfInertiaValue

Gets the inertial for modal.

public _MomentOfInertia ModalMomentOfInertiaValue { get; }

Property Value

_MomentOfInertia

MomentOfInertiaValue

Gets the moment of inertia value.

public _MomentOfInertia MomentOfInertiaValue { get; }

Property Value

_MomentOfInertia

MovingReferenceFrame

Gets or sets the moving reference frame.

public IMarker MovingReferenceFrame { get; set; }

Property Value

IMarker

NumberOfEdgeset

Gets the number of edgeset.

public int NumberOfEdgeset { get; }

Property Value

int

NumberOfElement

Gets the number of element.

public int NumberOfElement { get; }

Property Value

int

NumberOfElementset

Gets the number of elementset.

public int NumberOfElementset { get; }

Property Value

int

NumberOfFrequency

Gets the number of frequency.

public int NumberOfFrequency { get; }

Property Value

int

NumberOfNode

Gets the number of node.

public int NumberOfNode { get; }

Property Value

int

NumberOfNodeset

Gets the number of nodeset.

public int NumberOfNodeset { get; }

Property Value

int

NumberOfPatchset

Gets the number of patchset.

public int NumberOfPatchset { get; }

Property Value

int

NumberOfProperty

Gets the number of property.

public int NumberOfProperty { get; }

Property Value

int

ParentType

Gets the type of the parent.

MarkerParentType ParentType { get; }

Property Value

MarkerParentType

ReferenceFrameType

Gets the type of the reference frame.

MarkerReferenceFrameType ReferenceFrameType { get; }

Property Value

MarkerReferenceFrameType

ReferenceMarker

Gets or sets the reference marker.

public InvisibleMarker ReferenceMarker { get; set; }

Property Value

InvisibleMarker

TopologyEntityTypeName

Get the object type name

public override string TopologyEntityTypeName { get; }

Property Value

string

UseAdvancedOption

public bool UseAdvancedOption { get; set; }

Property Value

bool

UseRMovingReferenceFrame

public bool UseRMovingReferenceFrame { get; set; }

Property Value

bool

UseTMovingReferenceFrame

public bool UseTMovingReferenceFrame { get; set; }

Property Value

bool

_MovingReferenceFrame

Gets or sets the moving reference frame.

public Linker<imarker> _MovingReferenceFrame { get; set; }

Property Value

Linker

Methods

ChangeNodalModal(BodyAnalysisType)

Change Nodal or Modal.

public void ChangeNodalModal(BodyAnalysisType type)

Parameters

type BodyAnalysisType

The flexible body type.

Create(SubSystemDocument, string, MeshDocument, TransformBase)

Create New class with given and .

public static NodalBody Create(SubSystemDocument docToAdd, string strBodyName, MeshDocument meshDocument, TransformBase transformMesh)

Parameters

docToAdd SubSystemDocument

The to add created .

strBodyName string

The body name of new .

meshDocument MeshDocument

The to create

transformMesh TransformBase

The for the new .

Returns

NodalBody

The new .

Create(SubSystemDocument, string, MeshDocument)

Create New class with given with identity transformation.

public static NodalBody Create(SubSystemDocument docToAdd, string strBodyName, MeshDocument meshDocument)

Parameters

docToAdd SubSystemDocument

The to add created .

strBodyName string

The body name of new .

meshDocument MeshDocument

The to create

Returns

NodalBody

The new .

FindLocal(string)

Finds an object that matches a specified name in local.

public override IObjectBase FindLocal(string strName)

Parameters

strName string

Name to search for.

Returns

IObjectBase

An object that matches a specified name.

FixUp(ObjectBase)

Before destroy the old object, perform a work.

public override bool FixUp(ObjectBase ob)

Parameters

ob ObjectBase

The old object.

Returns

bool

true if success; otherwise, false.

GetContactables()

Gets the contactable list.

public virtual ObjectBase[] GetContactables()

Returns

ObjectBase[]

the contactable list.

GetElementInformation()

Get element information.

public NodalBody.ElementInformation[] GetElementInformation()

Returns

NodalBody.ElementInformation[]

GetGeometryNavigatorInformation(XmlDocument, XmlElement)

Gets the geometry information for model navigator .

public virtual bool GetGeometryNavigatorInformation(XmlDocument xmlDom, XmlElement xmlEle)

Parameters

xmlDom XmlDocument

The XmlDocument information.

xmlEle XmlElement

The XmlElement information.

Returns

bool

true if success; otherwise, false.

GetMassPropImpl(ref double, VectorBase, OMatrix, double[], bool)

Gets the mass property.

virtual void GetMassPropImpl(ref double dMass, VectorBase vecCenterPosition, OMatrix vecOrientation, double[] arTensor, bool bGlobal)

Parameters

dMass double

The mass.

vecCenterPosition VectorBase

The center position.

vecOrientation OMatrix

The orientation.

arTensor double[]

The tensor.

bGlobal bool

GetMeshesImpl()

Gets the meshes.

virtual ObjectBase[] GetMeshesImpl()

Returns

ObjectBase[]

The builders.

GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)

Gets the object information for model navigator [implementation].

protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlRootEle, bool bHasChild)

Parameters

xmlDom XmlDocument

The XmlDocument for object.

xmlRootEle XmlElement

The XmlElement for object.

bHasChild bool

if set to true [has child].

Returns

bool

true if success; otherwise, false.

GetNodePositions()

Get node position.

public NodalBody.NodeInformation[] GetNodePositions()

Returns

NodalBody.NodeInformation[]

GetNodePositionsForMesh(Mesh, int)

public VectorBase GetNodePositionsForMesh(Mesh mesh, int nIndex)

Parameters

mesh Mesh

nIndex int

Returns

VectorBase

GetNodePositionsForMesh(Mesh)

Get node position for mesh.

public VectorBase[] GetNodePositionsForMesh(Mesh mesh)

Parameters

mesh Mesh

The owner mesh.

Returns

VectorBase[]

GetPointDirection(ref VectorBase, ref VectorBase, IReferencable)

Gets the point direction.

public virtual bool GetPointDirection(ref VectorBase point, ref VectorBase direction, IReferencable reference)

Parameters

point VectorBase

The point.

direction VectorBase

The direction.

reference IReferencable

The reference.

Returns

bool

true if success; otherwise, false.

InitBodyType(BodyAnalysisType, bool)

Initialize body type.

public void InitBodyType(BodyAnalysisType type, bool bUpdateNavi)

Parameters

type BodyAnalysisType

The flexible body type.

bUpdateNavi bool

The Update Navigator.

InitBodyType(BodyAnalysisType)

Initialize body type.

public void InitBodyType(BodyAnalysisType type)

Parameters

type BodyAnalysisType

The flexible body type.

InitInterfaceTable()

Initialize the interface table.

public override void InitInterfaceTable()

Initialize(ConvertFactor)

Initializes member through unit convert factor.

public override void Initialize(Unit.ConvertFactor factor)

Parameters

factor Unit.ConvertFactor

The unit convert factor.

IsAutoContactable()

Determines whether the specified auto contactable.

public virtual bool IsAutoContactable()

Returns

bool

true if the specified auto contactable; otherwise, false.

IsDestroyContainer()

Determines whether is [destroy container].

public override bool IsDestroyContainer()

Returns

bool

true if is [destroy container]; otherwise, false.

IsOnlyLinearMaterial(ObjectBase)

Determines whether refer linear material only.

public static bool IsOnlyLinearMaterial(ObjectBase obNodalBody)

Parameters

obNodalBody ObjectBase

Returns

bool

true if this instance refer only linear material; otherwise, false.

IsReadDFN()

Get indicates dfn file has been read.

public bool IsReadDFN()

Returns

bool

true if read; otherwise, false.

LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

PostOpenDocumentAfterHookEvent()

Call when post [open document] after hook event.

public override void PostOpenDocumentAfterHookEvent()

ProcessDuplicateReferenceImpl(Reference)

Process for duplicated reference

protected override void ProcessDuplicateReferenceImpl(Reference refer)

Parameters

refer Reference

The reference.

ReAssembly()

public virtual void ReAssembly()

ReadTemplateImpl(XmlReader)

Reads the template document [implementation].

protected override void ReadTemplateImpl(XmlReader reader)

Parameters

reader XmlReader

The reader.

Redraw()

Redraw.

public override void Redraw()

RemoveDuplicatedReference()

Remove duplicated reference

void RemoveDuplicatedReference()

SetBodyAnalysisType(BodyAnalysisType)

public void SetBodyAnalysisType(BodyAnalysisType type)

Parameters

type BodyAnalysisType

SetMassPropImpl(double, VectorBase, OMatrix, double[], bool)

Sets the mass property.

virtual void SetMassPropImpl(double dMass, VectorBase vecCenterPosition, OMatrix vecOrientation, double[] arTensor, bool bGlobal)

Parameters

dMass double

The mass.

vecCenterPosition VectorBase

The center position.

vecOrientation OMatrix

The orientation.

arTensor double[]

The tensor.

bGlobal bool

SetNodeElementInformation(NodeInformation[], ElementInformation[])

Set node and element information.

public bool SetNodeElementInformation(NodalBody.NodeInformation[] arNodePos, NodalBody.ElementInformation[] arEleInfo)

Parameters

arNodePos NodalBody.NodeInformation[]

The node information.

arEleInfo NodalBody.ElementInformation[]

The element information.

Returns

bool

true if success; otherwise, false.

SetNodePositions(Vector[], OMatrix[])

Set node position for mesh.

public bool SetNodePositions(Vector[] arvecPos, OMatrix[] armatOri)

Parameters

arvecPos Vector[]

The position array .

armatOri OMatrix[]

The orientation.

Returns

bool

true if success; otherwise, false.

SetNodePositions(string)

Set node position for mesh.

public bool SetNodePositions(string strDFNPath)

Parameters

strDFNPath string

The dfn file path.

Returns

bool

true if success; otherwise, false.

TransformImpl(TMatrix)

Transforms [implementation].

protected override void TransformImpl(TMatrix matT)

Parameters

matT TMatrix

The mat T.

WriteTemplateImpl(XmlWriter)

Writes the template document [implementation].

protected override void WriteTemplateImpl(XmlWriter writer)

Parameters

writer XmlWriter

The writer.

Connect with Ansys