    

 ## On this page

  

 

 # Class MultiBodyCalculation

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL](VM.Managed.DAFUL.md)  
Assembly: VMDFBase.dll

This class is to represent the calculate multi body.

```csharp
public class MultiBodyCalculation

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [MultiBodyCalculation](VM.Managed.DAFUL.MultiBodyCalculation.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### MultiBodyCalculation()

```csharp
public MultiBodyCalculation()

```

## Methods

### GetTotalMassInertia(List&lt;VectorBase&gt;, List&lt;OMatrix&gt;, List&lt;double&gt;, List&lt;Unit&gt;, List&lt;Unit&gt;, int, VectorBase, ref BodyInf)

Gets the total mass inertia.

```csharp
public static bool GetTotalMassInertia(List<VectorBase> lstGlobalCMPos, List<OMatrix> lstGlobalTensor, List<double> lstGlobalMass, List<Unit> lstSrcUnit, List<Unit> lstDstUnit, int nNumberOfBody, VectorBase vecTargetPos, ref MultiBodyCalculation.BodyInf bodyInf)

```

#### Parameters

`lstGlobalCMPos` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;VectorBase&gt;

The global CM pos.

`lstGlobalTensor` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;OMatrix&gt;

The global tensor.

`lstGlobalMass` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[double](https://learn.microsoft.com/dotnet/api/system.double)&gt;

The global mass.

`lstSrcUnit` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;Unit&gt;

The unit of source document.

`lstDstUnit` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;Unit&gt;

The unit of current document.

`nNumberOfBody` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of body.

`vecTargetPos` VectorBase

The target position.

`bodyInf` [MultiBodyCalculation](VM.Managed.DAFUL.MultiBodyCalculation.md).[BodyInf](VM.Managed.DAFUL.MultiBodyCalculation.BodyInf.md)

The body info.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### GetTotalMassInertia(List&lt;VectorBase&gt;, List&lt;OMatrix&gt;, List&lt;double&gt;, int, VectorBase, ref BodyInf)

Gets the total mass inertia.

```csharp
public static bool GetTotalMassInertia(List<VectorBase> lstGlobalCMPos, List<OMatrix> lstGlobalTensor, List<double> lstGlobalMass, int nNumberOfBody, VectorBase vecTargetPos, ref MultiBodyCalculation.BodyInf bodyInf)

```

#### Parameters

`lstGlobalCMPos` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;VectorBase&gt;

The global CM pos.

`lstGlobalTensor` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;OMatrix&gt;

The global tensor.

`lstGlobalMass` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;[double](https://learn.microsoft.com/dotnet/api/system.double)&gt;

The global mass.

`nNumberOfBody` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The number of body.

`vecTargetPos` VectorBase

The target position.

`bodyInf` [MultiBodyCalculation](VM.Managed.DAFUL.MultiBodyCalculation.md).[BodyInf](VM.Managed.DAFUL.MultiBodyCalculation.BodyInf.md)

The body info.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)