    

 ## On this page

  

 

 # IRockyGeometryTriangleHost Struct Reference

 Last update: 17.07.2025 

`#include <<a class="el" href="rocky__boundary__api_8hpp_source.xhtml">rocky_boundary_api.hpp</a>>`

Inherits IRockyGeometryTriangleImpl&lt; RockyModel &gt;.

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

ROCKY\_FUNCTIONS [IRockyMaterial](structIRockyMaterial.xhtml) [get\_material](structIRockyGeometryTriangleHost.xhtml#a4d4f0981020bd999343324777061578f) () const   
  
 ROCKY\_FUNCTIONS double3 [get\_normal\_unit\_vector](structIRockyGeometryTriangleHost.xhtml#acf71ec5c2b5cf6d20f276e3e11cf5ede) () const   
  
 ROCKY\_FUNCTIONS double [get\_area](structIRockyGeometryTriangleHost.xhtml#ab782a5e82eba4116e3fdc03086ac6e70) () const   
  
 ROCKY\_FUNCTIONS double3 [get\_centroid](structIRockyGeometryTriangleHost.xhtml#ae049045265b3b4d44366e60086052049) () const   
  
 ROCKY\_FUNCTIONS int [get\_geometry\_index](structIRockyGeometryTriangleHost.xhtml#a90f497b2b42411676707aae7b1c73dbc) () const   
  
 ROCKY\_FUNCTIONS int [get\_material\_index](structIRockyGeometryTriangleHost.xhtml#ab68909270e06bc1b702c11e54fc39b87) () const   
  
 ROCKY\_FUNCTIONS double3 [get\_translational\_velocity](structIRockyGeometryTriangleHost.xhtml#af55f61fe49b8582002b87e1c5d4db703) (double current\_time) const   
  
 ROCKY\_FUNCTIONS double3 [get\_geometry\_rotational\_velocity](structIRockyGeometryTriangleHost.xhtml#a1d39d94664969c8e81279f4d395cfd7e) () const   
  
 ROCKY\_FUNCTIONS double3 [get\_geometry\_rotation\_center](structIRockyGeometryTriangleHost.xhtml#a35e0413744dea0b6d847172dec76ada4) () const   
  
 ROCKY\_FUNCTIONS double [get\_temperature](structIRockyGeometryTriangleHost.xhtml#ad63935796d98370d0164f0e700639a82) () const   
  
 ROCKY\_FUNCTIONS void [set\_temperature](structIRockyGeometryTriangleHost.xhtml#a2da990675204aa1b75f7d99d27d0edf4) (double value)   
  
 ROCKY\_FUNCTIONS bool [is\_adiabatic](structIRockyGeometryTriangleHost.xhtml#a296b5f25ba526e166233ecc93a361840) () const   
  
 ROCKY\_FUNCTIONS double [get\_thermal\_conductivity](structIRockyGeometryTriangleHost.xhtml#aba16fb8ad2df2dc54ff931c091850675) () const   
  
 ROCKY\_FUNCTIONS void [set\_thermal\_conductivity](structIRockyGeometryTriangleHost.xhtml#a4b7dc627f3943f1a897e28c3219da0ba) (double value)   
  
 ROCKY\_FUNCTIONS double [get\_poisson\_ratio](structIRockyGeometryTriangleHost.xhtml#a48d3df84ac1785c1ada100faad008624) () const   
  
 ROCKY\_FUNCTIONS void [set\_poisson\_ratio](structIRockyGeometryTriangleHost.xhtml#a53c07e03e2af77cfe1549d7ad9ac22ee) (double value)   
  
 ROCKY\_FUNCTIONS [IRockyTriangleScalars](structIRockyTriangleScalars.xhtml) [get\_scalars](structIRockyGeometryTriangleHost.xhtml#a32507720156ec81050cfe8c9179a18a2) ()   
  
 <a id="details" name="details"></a>## Detailed Description

`<a class="el" href="structIRockyGeometryTriangleHost.xhtml">IRockyGeometryTriangleHost</a>` is the counterpart of `<a class="el" href="structIRockyGeometryTriangleHost.xhtml">IRockyGeometryTriangleHost</a>` intended to be used during initialization operations, which is always performed on CPU. Both of them share the same methods.



## Member Function Documentation

<a id="ab782a5e82eba4116e3fdc03086ac6e70" name="ab782a5e82eba4116e3fdc03086ac6e70"></a>## [◆ ](#ab782a5e82eba4116e3fdc03086ac6e70)get\_area()

 ROCKY\_FUNCTIONS double IRockyGeometryTriangleHost::get\_area  ( )  const

ReturnsThe unsigned area of the geometry triangle.   




<a id="ae049045265b3b4d44366e60086052049" name="ae049045265b3b4d44366e60086052049"></a>## [◆ ](#ae049045265b3b4d44366e60086052049)get\_centroid()

 ROCKY\_FUNCTIONS double3 IRockyGeometryTriangleHost::get\_centroid  ( )  const

ReturnsThe centroid point of the geometry triangle in Cartesian coordinates.   




<a id="a90f497b2b42411676707aae7b1c73dbc" name="a90f497b2b42411676707aae7b1c73dbc"></a>## [◆ ](#a90f497b2b42411676707aae7b1c73dbc)get\_geometry\_index()

 ROCKY\_FUNCTIONS int IRockyGeometryTriangleHost::get\_geometry\_index  ( )  const

ReturnsThe index that uniquely identifies the geometry to which the geometry triangle belongs.   




<a id="a35e0413744dea0b6d847172dec76ada4" name="a35e0413744dea0b6d847172dec76ada4"></a>## [◆ ](#a35e0413744dea0b6d847172dec76ada4)get\_geometry\_rotation\_center()

 ROCKY\_FUNCTIONS double3 IRockyGeometryTriangleHost::get\_geometry\_rotation\_center  ( )  const

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




<a id="a1d39d94664969c8e81279f4d395cfd7e" name="a1d39d94664969c8e81279f4d395cfd7e"></a>## [◆ ](#a1d39d94664969c8e81279f4d395cfd7e)get\_geometry\_rotational\_velocity()

 ROCKY\_FUNCTIONS double3 IRockyGeometryTriangleHost::get\_geometry\_rotational\_velocity  ( )  const

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




<a id="a4d4f0981020bd999343324777061578f" name="a4d4f0981020bd999343324777061578f"></a>## [◆ ](#a4d4f0981020bd999343324777061578f)get\_material()

 ROCKY\_FUNCTIONS [IRockyMaterial](structIRockyMaterial.xhtml) IRockyGeometryTriangleHost::get\_material  ( )  const

ReturnsAn `<a class="el" href="structIRockyMaterial.xhtml">IRockyMaterial</a>` object that gives access to the values of physical properties associated to the material from which the geometry triangle is made.   




<a id="ab68909270e06bc1b702c11e54fc39b87" name="ab68909270e06bc1b702c11e54fc39b87"></a>## [◆ ](#ab68909270e06bc1b702c11e54fc39b87)get\_material\_index()

 ROCKY\_FUNCTIONS int IRockyGeometryTriangleHost::get\_material\_index  ( )  const

ReturnsThe material index that uniquely identifies the material associated to the geometry triangle.   




<a id="acf71ec5c2b5cf6d20f276e3e11cf5ede" name="acf71ec5c2b5cf6d20f276e3e11cf5ede"></a>## [◆ ](#acf71ec5c2b5cf6d20f276e3e11cf5ede)get\_normal\_unit\_vector()

 ROCKY\_FUNCTIONS double3 IRockyGeometryTriangleHost::get\_normal\_unit\_vector  ( )  const

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




<a id="a48d3df84ac1785c1ada100faad008624" name="a48d3df84ac1785c1ada100faad008624"></a>## [◆ ](#a48d3df84ac1785c1ada100faad008624)get\_poisson\_ratio()

 ROCKY\_FUNCTIONS double IRockyGeometryTriangleHost::get\_poisson\_ratio  ( )  const

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




<a id="a32507720156ec81050cfe8c9179a18a2" name="a32507720156ec81050cfe8c9179a18a2"></a>## [◆ ](#a32507720156ec81050cfe8c9179a18a2)get\_scalars()

 ROCKY\_FUNCTIONS [IRockyTriangleScalars](structIRockyTriangleScalars.xhtml) IRockyGeometryTriangleHost::get\_scalars  ( ) 

ReturnsA `<a class="el" href="structIRockyTriangleScalars.xhtml">IRockyTriangleScalars</a>` object that gives access to all triangle scalars variables defined in the project.   




<a id="ad63935796d98370d0164f0e700639a82" name="ad63935796d98370d0164f0e700639a82"></a>## [◆ ](#ad63935796d98370d0164f0e700639a82)get\_temperature()

 ROCKY\_FUNCTIONS double IRockyGeometryTriangleHost::get\_temperature  ( )  const

ReturnsThe 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 `<a class="el" href="structIRockyGeometryTriangle.xhtml#a4286e7ea37b1863c8ea48d2fcd729b9c">IRockyGeometryTriangle::set_temperature</a>` method. Otherwise, this method will return the temperature value specified in the UI for the geometry to which the geometry triangle belongs.   




<a id="aba16fb8ad2df2dc54ff931c091850675" name="aba16fb8ad2df2dc54ff931c091850675"></a>## [◆ ](#aba16fb8ad2df2dc54ff931c091850675)get\_thermal\_conductivity()

 ROCKY\_FUNCTIONS double IRockyGeometryTriangleHost::get\_thermal\_conductivity  ( )  const

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




<a id="af55f61fe49b8582002b87e1c5d4db703" name="af55f61fe49b8582002b87e1c5d4db703"></a>## [◆ ](#af55f61fe49b8582002b87e1c5d4db703)get\_translational\_velocity()

 ROCKY\_FUNCTIONS double3 IRockyGeometryTriangleHost::get\_translational\_velocity  ( double  *current\_time*)  const

Parameters current\_timeThe current value of the simulation time.ReturnsThe instantaneous triangle's translational velocity vector, expressed in Cartesian coordinates.   




<a id="a296b5f25ba526e166233ecc93a361840" name="a296b5f25ba526e166233ecc93a361840"></a>## [◆ ](#a296b5f25ba526e166233ecc93a361840)is\_adiabatic()

 ROCKY\_FUNCTIONS bool IRockyGeometryTriangleHost::is\_adiabatic  ( )  const

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




<a id="a53c07e03e2af77cfe1549d7ad9ac22ee" name="a53c07e03e2af77cfe1549d7ad9ac22ee"></a>## [◆ ](#a53c07e03e2af77cfe1549d7ad9ac22ee)set\_poisson\_ratio()

 ROCKY\_FUNCTIONS void IRockyGeometryTriangleHost::set\_poisson\_ratio  ( double  *value*) 

This method sets the triangle's Poisson's ratio, if this propertywas defined as variable in the module's specification file. If this method is used otherwise, a segmentation fault will occur.Parameters valueThe Poisson's ratio to be set.   




<a id="a2da990675204aa1b75f7d99d27d0edf4" name="a2da990675204aa1b75f7d99d27d0edf4"></a>## [◆ ](#a2da990675204aa1b75f7d99d27d0edf4)set\_temperature()

 ROCKY\_FUNCTIONS void IRockyGeometryTriangleHost::set\_temperature  ( double  *value*) 

This method can be used only if the temperature was defined as a variable propertyfor 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 valueThe temperature value to be assigned to the geometry triangle.   




<a id="a4b7dc627f3943f1a897e28c3219da0ba" name="a4b7dc627f3943f1a897e28c3219da0ba"></a>## [◆ ](#a4b7dc627f3943f1a897e28c3219da0ba)set\_thermal\_conductivity()

 ROCKY\_FUNCTIONS void IRockyGeometryTriangleHost::set\_thermal\_conductivity  ( double  *value*) 

This method sets the triangle's thermal conductivity, if this propertywas defined as variable in the module's specification file. If this method is used otherwise, a segmentation fault will occur.Parameters valueThe thermal conductivity to be set.