> ## 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.

# IRockyGeometryTriangleHost Struct Reference

`#include <rocky_boundary_api.hpp>`

Inherits IRockyGeometryTriangleImpl\< RockyModel >.

## Public Member Functions

| Type | Name |
| - | - |
| ROCKY\_FUNCTIONS [IRockyMaterial](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyMaterial.md) | [get\_material](#a4d4f0981020bd999343324777061578f) () const |
| ROCKY\_FUNCTIONS double3 | [get\_normal\_unit\_vector](#acf71ec5c2b5cf6d20f276e3e11cf5ede) () const |
| ROCKY\_FUNCTIONS double | [get\_area](#ab782a5e82eba4116e3fdc03086ac6e70) () const |
| ROCKY\_FUNCTIONS double3 | [get\_centroid](#ae049045265b3b4d44366e60086052049) () const |
| ROCKY\_FUNCTIONS int | [get\_geometry\_index](#a90f497b2b42411676707aae7b1c73dbc) () const |
| ROCKY\_FUNCTIONS int | [get\_material\_index](#ab68909270e06bc1b702c11e54fc39b87) () const |
| ROCKY\_FUNCTIONS double3 | [get\_translational\_velocity](#af55f61fe49b8582002b87e1c5d4db703) (double current\_time) const |
| ROCKY\_FUNCTIONS double3 | [get\_geometry\_rotational\_velocity](#a1d39d94664969c8e81279f4d395cfd7e) () const |
| ROCKY\_FUNCTIONS double3 | [get\_geometry\_rotation\_center](#a35e0413744dea0b6d847172dec76ada4) () const |
| ROCKY\_FUNCTIONS double | [get\_temperature](#ad63935796d98370d0164f0e700639a82) () const |
| ROCKY\_FUNCTIONS void | [set\_temperature](#a2da990675204aa1b75f7d99d27d0edf4) (double value) |
| ROCKY\_FUNCTIONS bool | [is\_adiabatic](#a296b5f25ba526e166233ecc93a361840) () const |
| ROCKY\_FUNCTIONS double | [get\_thermal\_conductivity](#aba16fb8ad2df2dc54ff931c091850675) () const |
| ROCKY\_FUNCTIONS void | [set\_thermal\_conductivity](#a4b7dc627f3943f1a897e28c3219da0ba) (double value) |
| ROCKY\_FUNCTIONS double | [get\_poisson\_ratio](#a48d3df84ac1785c1ada100faad008624) () const |
| ROCKY\_FUNCTIONS void | [set\_poisson\_ratio](#a53c07e03e2af77cfe1549d7ad9ac22ee) (double value) |
| ROCKY\_FUNCTIONS [IRockyTriangleScalars](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyTriangleScalars.md) | [get\_scalars](#a32507720156ec81050cfe8c9179a18a2) () |

## Detailed Description

[`IRockyGeometryTriangleHost`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyGeometryTriangleHost) is the counterpart of [`IRockyGeometryTriangleHost`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyGeometryTriangleHost) intended to be used during initialization operations, which is always performed on CPU. Both of them share the same methods.

## Member Function Documentation

### get\_area()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyGeometryTriangleHost::get_area() const
```

**Returns**

The unsigned area of the geometry triangle. \


### get\_centroid()

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyGeometryTriangleHost::get_centroid() const
```

**Returns**

The centroid point of the geometry triangle in Cartesian coordinates. \


### get\_geometry\_index()

```cpp theme={null}
ROCKY_FUNCTIONS int IRockyGeometryTriangleHost::get_geometry_index() const
```

**Returns**

The index that uniquely identifies the geometry to which the geometry triangle belongs. \


### get\_geometry\_rotation\_center()

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyGeometryTriangleHost::get_geometry_rotation_center() const
```

**Returns**

The Cartesian coordinates of the rotation center of the motion frame attached to the geometry to which the triangle belongs. \


### get\_geometry\_rotational\_velocity()

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyGeometryTriangleHost::get_geometry_rotational_velocity() const
```

**Returns**

The rotational velocity vector of the geometry to which the triangle belongs, expressed in Cartesian coordinates. \


### get\_material()

```cpp theme={null}
ROCKY_FUNCTIONS IRockyMaterial IRockyGeometryTriangleHost::get_material() const
```

**Returns**

An [`IRockyMaterial`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyMaterial) object that gives access to the values of physical properties associated to the material from which the geometry triangle is made. \


### get\_material\_index()

```cpp theme={null}
ROCKY_FUNCTIONS int IRockyGeometryTriangleHost::get_material_index() const
```

**Returns**

The material index that uniquely identifies the material associated to the geometry triangle. \


### get\_normal\_unit\_vector()

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyGeometryTriangleHost::get_normal_unit_vector() const
```

**Returns**

A unit vector in the normal direction to the geometry triangle, in Cartesian coordinates. The orientation of this vector is arbitrary, since collision with particles can potentially happen on either side of the geometry triangle. \


### get\_poisson\_ratio()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyGeometryTriangleHost::get_poisson_ratio() const
```

**Returns**

The triangle's Poisson's ratio. If this property was defined as variable for triangles in the module's specification file, this method will return the value set specifically for the geometry triangle. Otherwise, the returned value will be the one specified for the triangle's material in the Rocky UI. \


### get\_scalars()

```cpp theme={null}
ROCKY_FUNCTIONS IRockyTriangleScalars IRockyGeometryTriangleHost::get_scalars()
```

**Returns**

A [`IRockyTriangleScalars`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyTriangleScalars) object that gives access to all triangle scalars variables defined in the project. \


### get\_temperature()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyGeometryTriangleHost::get_temperature() const
```

**Returns**

The temperature associated to the triangle. If that temperature was defined as a variable property in the module's specification file, each triangle in a geometry may have a different temperature value, set by a module using the [`IRockyGeometryTriangle::set_temperature`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/structIRockyGeometryTriangle#a4286e7ea37b1863c8ea48d2fcd729b9c) method. Otherwise, this method will return the temperature value specified in the UI for the geometry to which the geometry triangle belongs. \


### get\_thermal\_conductivity()

```cpp theme={null}
ROCKY_FUNCTIONS double IRockyGeometryTriangleHost::get_thermal_conductivity() const
```

**Returns**

The triangle's thermal conductivity. If this property was defined as variable for triangles in the module's specification file, this method will return the value set specifically for the geometry triangle. Otherwise, the returned value will be the one specified for the triangle's material in the Rocky UI. \


### get\_translational\_velocity()

```cpp theme={null}
ROCKY_FUNCTIONS double3 IRockyGeometryTriangleHost::get_translational_velocity(
    double current_time
) const
```

***

**Parameters**

| Name | Description |
| - | - |
| current\_time | The current value of the simulation time. |

**Returns**

The instantaneous triangle's translational velocity vector, expressed in Cartesian coordinates. \


### is\_adiabatic()

```cpp theme={null}
ROCKY_FUNCTIONS bool IRockyGeometryTriangleHost::is_adiabatic() const
```

**Returns**

True if the geometry to which the boundary triangle belongs is adiabatic (i.e. it is not enabled to exchange heat with particles). \


### set\_poisson\_ratio()

```cpp theme={null}
ROCKY_FUNCTIONS void IRockyGeometryTriangleHost::set_poisson_ratio(double value)
```

**This method sets the triangle's Poisson's ratio, if this property**

was defined as variable in the module's specification file. If this method is used otherwise, a segmentation fault will occur.

**Parameters**

| Name | Description |
| - | - |
| value | The Poisson's ratio to be set. |

### set\_temperature()

```cpp theme={null}
ROCKY_FUNCTIONS void IRockyGeometryTriangleHost::set_temperature(double value)
```

**This method can be used only if the temperature was defined as a variable property**

for geometry triangles in the module's specification file. A segmentation fault will occur if this method is used otherwise. The temperature value specified with this method will be used by Rocky when solving the thermal balance equations for the particles in contact with the geometry triangle.

**Parameters**

| Name | Description |
| - | - |
| value | The temperature value to be assigned to the geometry triangle. |

### set\_thermal\_conductivity()

```cpp theme={null}
ROCKY_FUNCTIONS void IRockyGeometryTriangleHost::set_thermal_conductivity(double value)
```

**This method sets the triangle's thermal conductivity, if this property**

was defined as variable in the module's specification file. If this method is used otherwise, a segmentation fault will occur.

**Parameters**

| Name | Description |
| - | - |
| value | The thermal conductivity to be set. |
