> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class MultiBodyCalculation

Namespace: [VM.Managed.DAFUL](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL)\
Assembly: VMDFBase.dll

This class is to represent the calculate multi body.

```csharp theme={null}
public class MultiBodyCalculation
```

#### Inheritance

object ←
[MultiBodyCalculation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### MultiBodyCalculation()

```csharp theme={null}
public MultiBodyCalculation()
```

## Methods

### GetTotalMassInertia(List\<VectorBase>, List\<OMatrix>, List\<double>, List\<Unit>, List\<Unit>, int, VectorBase, ref BodyInf)

Gets the total mass inertia.

```csharp theme={null}
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\<VectorBase>

The global CM pos.

`lstGlobalTensor` List\<OMatrix>

The global tensor.

`lstGlobalMass` List\<double>

The global mass.

`lstSrcUnit` List\<Unit>

The unit of source document.

`lstDstUnit` List\<Unit>

The unit of current document.

`nNumberOfBody` int

The number of body.

`vecTargetPos` VectorBase

The target position.

`bodyInf` [MultiBodyCalculation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.md).[BodyInf](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.BodyInf.md)

The body info.

#### Returns

bool

### GetTotalMassInertia(List\<VectorBase>, List\<OMatrix>, List\<double>, int, VectorBase, ref BodyInf)

Gets the total mass inertia.

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

#### Parameters

`lstGlobalCMPos` List\<VectorBase>

The global CM pos.

`lstGlobalTensor` List\<OMatrix>

The global tensor.

`lstGlobalMass` List\<double>

The global mass.

`nNumberOfBody` int

The number of body.

`vecTargetPos` VectorBase

The target position.

`bodyInf` [MultiBodyCalculation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.md).[BodyInf](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.BodyInf.md)

The body info.

#### Returns

bool

### GetTotalMassInertiaForAseembledBody(List\<VectorBase>, List\<OMatrix>, List\<double>, int, ref BodyInf)

```csharp theme={null}
public static bool GetTotalMassInertiaForAseembledBody(List<VectorBase> lstGlobalCMPos, List<OMatrix> lstGlobalTensor, List<double> lstGlobalMass, int nNumberOfBody, ref MultiBodyCalculation.BodyInf bodyInf)
```

#### Parameters

`lstGlobalCMPos` List\<VectorBase>

`lstGlobalTensor` List\<OMatrix>

`lstGlobalMass` List\<double>

`nNumberOfBody` int

`bodyInf` [MultiBodyCalculation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.md).[BodyInf](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.MultiBodyCalculation.BodyInf.md)

#### Returns

bool
