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

# DVS::IMeshChunk Class Reference

`#include <dvs_mesh_chunk_interface.h>`

Inheritance diagram for DVS::IMeshChunk:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=3140f3506a56bb38ede8cfd3a7e50f42)

## Public Types

| Type | Name |
| - | - |
| enum | [MeshType](#a8b7de1a1e47e05ab63f6bb41ccf5144a) \{ [UNKNOWN](#a8b7de1a1e47e05ab63f6bb41ccf5144aaa98ab1208c4de624d1af2488ea342b15) = 0 , [UNSTRUCTURED](#a8b7de1a1e47e05ab63f6bb41ccf5144aabd8a1a2f952443e439d96cbea674208e) = 1 , [PARALLELEPIPED](#a8b7de1a1e47e05ab63f6bb41ccf5144aa95416cf06dfb48f6331a1f7c5c2704d2) = 2 , [CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013) = 3 } |
| enum | [Axis](#a37105a87f7c965d7519eb02f4f63c3d8) \{ [X](#a37105a87f7c965d7519eb02f4f63c3d8a5f586336dff689b95a213ae63d5d971d) = 0 , [Y](#a37105a87f7c965d7519eb02f4f63c3d8aa51d837ff28664b76eb076c405cad710) = 1 , [Z](#a37105a87f7c965d7519eb02f4f63c3d8a91a3b034071a3ac6c0da72aaac13f1ed) = 2 } |

## Public Member Functions

| Type | Name |
| - | - |
| | **IMeshChunk** ()=default |
|  virtual | **\~IMeshChunk** ()=default |
| | **IMeshChunk** ([IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) &&)=default |
| [IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) & | **operator=** ([IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) &&)=default |
| | **IMeshChunk** (const [IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) &)=default |
| [IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) & | **operator=** (const [IMeshChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_mesh_chunk.md) &)=default |
| virtual [MeshType](#a8b7de1a1e47e05ab63f6bb41ccf5144a) | [get\_type](#ab025d1550b2b3cd77faefecec5199852) () const =0 |
| virtual const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object) \* | [get\_object](#abb13b29450a5ccfaa9027cfda3ceb108) () const =0 |
| virtual float | [get\_time](#a32ad562394805327fbabffa322643701) () const =0 |
| virtual uint32\_t | [get\_rank](#a6c520674083999e99bdf77b2b1eaacf8) () const =0 |
| virtual uint32\_t | [get\_chunk](#a6b894c57bfd1e70168290ce69ecc5af4) () const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_size](#a0fe402e619754256a19e0087b76e2c53) (uint32\_t \&component\_size)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords](#a7738e954570e849462ff493ec875bc80) (float \*x\_coords, float \*y\_coords, float \*z\_coords)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_interleaved](#a39c2d8cc95f14ecbe9789908881c92a0) (float \*coords)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_curv\_size](#a70b1069fc8737730efa0fc01a0698fbd) (uint32\_t \&component\_size)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_curv](#a8da90ca355541bf876fa23ed267f94cb) (float local\_ijk\_min\[3], float local\_ijk\_max\[3], float global\_ijk\_max\[3], float \*x\_coords, float \*y\_coords, float \*z\_coords)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_curv\_interleaved](#a5c191e3ec6d65a527fc1f3224f84d503) (float local\_ijk\_min\[3], float local\_ijk\_max\[3], float global\_ijk\_max\[3], float \*coords)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_parallele\_size](#abda21734e2f506b982b65007d17c92fd) (uint32\_t \&i\_vals\_size, uint32\_t \&j\_vals\_size, uint32\_t \&k\_vals\_size)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_coords\_parallele](#a959ecd945a3e46b25b4e816a35eb4123) (float origin\[3], float dir\_vec\_i\[3], float dir\_vec\_j\[3], float dir\_vec\_k\[3], float local\_ijk\_min\[3], float local\_ijk\_max\[3], float global\_ijk\_max\[3], float \*i\_vals, float \*j\_vals, float \*k\_vals)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_num\_variables](#a0b819acf4a968957e8ba90876dd880d9) (uint32\_t \&num\_vars, [VAR\_TYPE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__interface_8h#a84856d33cb231d1d87a603758b8b8066) type=VAR\_TYPE::FLOAT) const =0 |
| virtual const [DVS::IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \* | [get\_variable](#a3fbe50455053f953a39707671d8b3ab3) (uint32\_t index, [VAR\_TYPE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__interface_8h#a84856d33cb231d1d87a603758b8b8066) type=VAR\_TYPE::FLOAT) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_size](#a6d0e7efa6c204cbb7730ef1bf4024fbc) (uint32\_t index, uint32\_t \&num\_values, [VAR\_TYPE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__interface_8h#a84856d33cb231d1d87a603758b8b8066) type=VAR\_TYPE::FLOAT) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_size](#aad7ddb41a24c6108c245ed1189595816) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var, uint32\_t \&num\_values) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#ae7fe3d3b75e14f1cdd0d810e30a35fe0) (uint32\_t index, float \*array) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#a5364c963d939e919c73623834c89c471) (uint32\_t index, int64\_t \*array) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#a2fd35c1ebfad0967ff6a7bc3f62c81f5) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var, float \*array) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#aea8ffa951b66f338d13704a06648ac27) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var, int64\_t \*array) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#ab72dfdd09b4258da7de7308ef48cb1fc) (uint32\_t index, uint32\_t \*num\_values, float \*array)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_variable\_data](#ada793fcafd36d800dc3c4249b193318c) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var, uint32\_t \*num\_values, float \*array)=0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_num\_element\_blocks](#a5f3772e845d3ffe73c4a6525d78ab2ad) (uint32\_t \&num\_elem\_blocks) const =0 |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_element\_block\_types](#a44a916bcd71f4d6b33661b249d52c61b) ([dvs\_element\_type](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__enums_8h#af1c8824b29a0ab747460216716cc2895) \*element\_types) const =0 |
| virtual [DVS::IElementBlock](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_element_block.md) \* | [get\_element\_block](#af45268cbc0f5284d4a7fe41afab5c42b) (uint32\_t index)=0 |
| virtual [DVS::IElementBlock](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_element_block.md) \* | [get\_element\_block\_by\_type](#a7ca84ad8d766514684790bacd31803fc) ([dvs\_element\_type](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__enums_8h#af1c8824b29a0ab747460216716cc2895) type)=0 |

> [accordion] Public Member Functions inherited from DVS::IHash
>
> Public Member Functions inherited from [DVS::IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash)
>
> | Type | Name |
> | - | - |
> | | **IHash** ()=default |
> | virtual | **\~IHash** ()=default |
> | | **IHash** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &&)=default |
> | [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) & | **operator=** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &&)=default |
> | | **IHash** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &)=default |
> | [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) & | **operator=** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) &)=default |
> | virtual uint32\_t | [get\_hash\_size](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash#ac0dedeb8d9dfd442d49d16cb4ddfb221) () const =0 |
> | virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_hash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash#a51eaee86a6e2db4dda7f4326daa33874) (char \*hash) const =0 |

> [accordion] Public Member Functions inherited from DVS::IVarHash
>
> Public Member Functions inherited from [DVS::IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash)
>
> | Type | Name |
> | - | - |
> | | **IVarHash** ()=default |
> | virtual | **\~IVarHash** ()=default |
> | | **IVarHash** ([IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) &&)=default |
> | [IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) & | **operator=** ([IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) &&)=default |
> | | **IVarHash** (const [IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) &)=default |
> | [IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) & | **operator=** (const [IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) &)=default |
> | virtual uint32\_t | [get\_var\_hash\_size](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash#a85c3ade756029207e15b1c8de8cd5c1b) (uint32\_t index, [VAR\_TYPE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__interface_8h#a84856d33cb231d1d87a603758b8b8066) type=VAR\_TYPE::FLOAT) const =0 |
> | virtual uint32\_t | [get\_var\_hash\_size](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash#a81cd99bbf69ccc0d50e8bcb7dd291046) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var) const =0 |
> | virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_var\_hash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash#a17fff1548eb276edd326a0af08f6a7c4) (uint32\_t index, char \*hash, [VAR\_TYPE](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__var__interface_8h#a84856d33cb231d1d87a603758b8b8066) type=VAR\_TYPE::FLOAT) const =0 |
> | virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__error__codes_8h#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_var\_hash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash#a7348be86da47ac034252a68949b21007) (const [IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md) \*var, char \*hash) const =0 |

## Detailed Description

A mesh chunk in DVS contains the underlying mesh coordinates and nodal variable information for a specific timestep/rank/chunk. It also is the parent object for [IElementBlock](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_element_block.md) objects which contain the element / connectivity information. Mesh chucks can be unstructured or structured (paralellepiped or curvilinear). See [DVS::IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_hash) and [DVS::IVarHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var_hash) for the hash object interface.

Definition at line [48](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md) of file [dvs\_mesh\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md).

## Member Enumeration Documentation

### Axis

```cpp theme={null}
enum DVS::IMeshChunk::Axis
```

The AXIS or IJK component to request.

| Enumerator | |
| - | - |
| X | The X axis (or i component for structured parts) |
| Y | The X axis (or j component for structured parts) |
| Z | The Z axis (or k component for structured parts) |

Definition at line [75](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md) of file [dvs\_mesh\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md).

### MeshType

```cpp theme={null}
enum DVS::IMeshChunk::MeshType
```

The different mesh types allowed.

| Enumerator | |
| - | - |
| UNKNOWN | Unknown, a problem occurred. |
| UNSTRUCTURED | Unstructured mesh data. |
| PARALLELEPIPED | Parallelepiped structured mesh data. |
| CURVILINEAR | Curvilinear structured mesh data. |

Definition at line [63](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md) of file [dvs\_mesh\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md).

## Member Function Documentation

### get\_chunk()

```cpp theme={null}
virtual uint32_t DVS::IMeshChunk::get_chunk() const
```

`pure virtual`

Get the chunk for this mesh chunk.

**Returns**

uint32\_t the chunk this mesh chunk is associated with (zero based)

### get\_coords()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords(
    float * x_coords,
    float * y_coords,
    float * z_coords
)
```

`pure virtual`

Get the coordinates for an unstructured mesh.

Retrieves the coordinates for an unstructured mesh. To get the coordinates interleaved in a single array call [get\_coords\_interleaved()](#a39c2d8cc95f14ecbe9789908881c92a0).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_PARAM\_NULL: nullptr passed into method, method did nothing
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::UNSTRUCTURED](#a8b7de1a1e47e05ab63f6bb41ccf5144aabd8a1a2f952443e439d96cbea674208e)
* DVS\_INVALID\_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
* DVS\_DATA\_FAILED\_LOAD: There was a failure loading data, data is either empty or missing
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | x\_coords | output array for x coordinates (must not be nullptr) size to allocate from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53) |
| \[out] | y\_coords | output array for y coordinates (must not be nullptr) size to allocate from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53) |
| \[out] | z\_coords | output array for z coordiantes (must not be nullptr) size to allocate from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53) |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_curv()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_curv(
    float local_ijk_min [3],
    float local_ijk_max [3],
    float global_ijk_max [3],
    float * x_coords,
    float * y_coords,
    float * z_coords
)
```

`pure virtual`

Get coordinate data for a structured curvilinear mesh.

Structured curvilinear meshes have the XYZ information for every node in the IJK array for flexibility in defining the nodes. The connectivity for the mesh is implied so there are no connectivity arrays in the DVS::IElemBlock. If you'd like the XYZ coordinates interleaved in a single array call [get\_coords\_curv\_interleaved()](#a5c191e3ec6d65a527fc1f3224f84d503).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_PARAM\_NULL: nullptr passed into method, method did nothing
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013)
* DVS\_INVALID\_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
* DVS\_DATA\_FAILED\_LOAD: There was a failure loading data, data is either empty or missing
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data.
* DVS\_INVALID\_STRUCTURED\_DATA: Invalid structured data. There is a problem with the data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | local\_ijk\_min | array of size 3, returns 0 based ijk min for this chunk |
| \[out] | local\_ijk\_max | array of size 3, returns 0 based ijk max for this chunk |
| \[out] | global\_ijk\_max | array of size 3, returns 1 based global ijk max, this is the total ijk dimension across all mesh chunks |
| \[out] | x\_coords | output array for x coordinates (must not be nullptr) size to allocate from [get\_coords\_curv\_size()](#a70b1069fc8737730efa0fc01a0698fbd) |
| \[out] | y\_coords | output array for y coordinates (must not be nullptr) size to allocate from [get\_coords\_curv\_size()](#a70b1069fc8737730efa0fc01a0698fbd) |
| \[out] | z\_coords | output array for z coordinates (must not be nullptr) size to allocate from [get\_coords\_curv\_size()](#a70b1069fc8737730efa0fc01a0698fbd) |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_curv\_interleaved()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_curv_interleaved(
    float local_ijk_min [3],
    float local_ijk_max [3],
    float global_ijk_max [3],
    float * coords
)
```

`pure virtual`

Get the coords for structured curvilinear meshes interleaved in a single array.

Structured curvilinear meshes have the XYZ information for every node in the IJK array for flexibility in defining the nodes. The connectivity for the mesh is implied so there are no connectivity arrays in the DVS::IElemBlock. This method returns the XYZ coordinates interleaved in a single array of the format \[X0 Y0 Z0 X1 Y1 Z1]. If you'd like the XYZ coordinates in separate x,y,z arrays call [get\_coords\_curv()](#a8da90ca355541bf876fa23ed267f94cb).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_PARAM\_NULL: nullptr passed into method, method did nothing
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013)
* DVS\_INVALID\_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
* DVS\_DATA\_FAILED\_LOAD: There was a failure loading data, data is either empty or missing
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data.
* DVS\_INVALID\_STRUCTURED\_DATA: Invalid structured data. There is a problem with the data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | local\_ijk\_min | array of size 3, returns 0 based ijk min for this chunk |
| \[out] | local\_ijk\_max | array of size 3, returns 0 based ijk max for this chunk |
| \[out] | global\_ijk\_max | array of size 3, returns 1 based global ijk max, this is the total ijk dimension across all mesh chunks |
| \[out] | coords | output array of interleaved coords for form \[X0 Y0 Z0 X1 Y0 Z0] size to allocate component\_size\*3 from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53) |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_curv\_size()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_curv_size(uint32_t & component_size)
```

`pure virtual`

Get the size of each coordinate component for structured curvilinear meshes.

Returns the size of each component of a curvilinear mesh. This is used with the method [get\_coords\_curv()](#a8da90ca355541bf876fa23ed267f94cb). For [get\_coords\_curv\_interleaved()](#a5c191e3ec6d65a527fc1f3224f84d503) use the size component\_size\*3 to allocate the array.

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013)
* DVS\_INVALID\_STRUCTURED\_DATA: Structured data is invalid, should not happen

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | component\_size | the size of each x/y/z coordinate components |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_interleaved()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_interleaved(float * coords)
```

`pure virtual`

Get the coords for a unstructured meshes interleaved in a single array.

Retrieves the coordinates for an unstructured mesh interleaved (\[X0 Y0 Z0 X1 Y1 Z1]) instead of as separate X Y Z arrays as the method [get\_coords()](#a7738e954570e849462ff493ec875bc80) returns. The coords array should be of size component\_size\*3 returned from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_PARAM\_NULL: nullptr passed into method, method did nothing
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::UNSTRUCTURED](#a8b7de1a1e47e05ab63f6bb41ccf5144aabd8a1a2f952443e439d96cbea674208e)
* DVS\_INVALID\_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
* DVS\_DATA\_FAILED\_LOAD: There was a failure loading data, data is either empty or missing
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data.

  **Parameters**

  | Direction | Name | Description |
  | - | - | - |
  | \[out] | coords | output array of interleaved coords for form \[X0 Y0 Z0 X1 Y0 Z0] size to allocate component\_size\*3 from [get\_coords\_size()](#a0fe402e619754256a19e0087b76e2c53) |

  **Returns**

  dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_parallele()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_parallele(
    float origin [3],
    float dir_vec_i [3],
    float dir_vec_j [3],
    float dir_vec_k [3],
    float local_ijk_min [3],
    float local_ijk_max [3],
    float global_ijk_max [3],
    float * i_vals,
    float * j_vals,
    float * k_vals
)
```

`pure virtual`

Get the ijk mesh information for structured parallelepiped mesh chunks.

Retrieves the mesh information for a structured parallelepiped mush chunk. Parallelepiped structured meshes are described by an origin, XYZ direction vectors for each dimension and the amount of distance between the origin at each I, K and K increment. To get the size to allocate for i\_vals, j\_vals, and k\_vals call [get\_coords\_parallele\_size()](#abda21734e2f506b982b65007d17c92fd).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_PARAM\_NULL: nullptr passed into method, method did nothing
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013)
* DVS\_INVALID\_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
* DVS\_DATA\_FAILED\_LOAD: There was a failure loading data, data is either empty or missing
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data.
* DVS\_INVALID\_STRUCTURED\_DATA: Invalid structured data. There is a problem with the data.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | origin | The XYZ origin of the mesh |
| \[out] | dir\_vec\_i | array of size 3, returns the XYZ direction vector for I dimension |
| \[out] | dir\_vec\_j | array of size 3, returns the XYZ direction vector for J dimension |
| \[out] | dir\_vec\_k | array of size 3, returns the XYZ direction vector for K dimension |
| \[out] | local\_ijk\_min | array of size 3, returns 0 based ijk min for this chunk |
| \[out] | local\_ijk\_max | array of size 3, returns 0 based ijk max for this chunk |
| \[out] | global\_ijk\_max | array of size 3, returns 1 based global ijk max, this is the total ijk dimension across all mesh chunks |
| \[out] | i\_vals | the distance at each I increment from the origin size to allocate from [get\_coords\_parallele\_size()](#abda21734e2f506b982b65007d17c92fd) |
| \[out] | j\_vals | the distance at each J increment from the origin size to allocate from [get\_coords\_parallele\_size()](#abda21734e2f506b982b65007d17c92fd) |
| \[out] | k\_vals | the distance at each K increment from the origin size to allocate from [get\_coords\_parallele\_size()](#abda21734e2f506b982b65007d17c92fd) |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_parallele\_size()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_parallele_size(
    uint32_t & i_vals_size,
    uint32_t & j_vals_size,
    uint32_t & k_vals_size
)
```

`pure virtual`

Get the size of each ijk component for structured parallelpiped meshes.

Returns the size of each component of a parallelpiped mesh. This is used with the method [get\_coords\_parallele()](#a959ecd945a3e46b25b4e816a35eb4123). Use the sizes returned to allocate the arrays for [get\_coords\_parallele()](#a959ecd945a3e46b25b4e816a35eb4123).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::CURVILINEAR](#a8b7de1a1e47e05ab63f6bb41ccf5144aab7e091dc6959aa447a0b6a44be352013)
* DVS\_INVALID\_STRUCTURED\_DATA: Structured data is invalid, There is a problem with the data.

**Parameters**

| Name | Description |
| - | - |
| i\_vals\_size | size of the i dimension array to allocate for [get\_coords\_parallele()](#a959ecd945a3e46b25b4e816a35eb4123) |
| j\_vals\_size | size of the j dimension array to allocate for [get\_coords\_parallele()](#a959ecd945a3e46b25b4e816a35eb4123) |
| k\_vals\_size | size of the k dimension array to allocate for [get\_coords\_parallele()](#a959ecd945a3e46b25b4e816a35eb4123) |

**Returns**

dvs\_ret DVS\_NONE on success, see method documentation for errors

### get\_coords\_size()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_coords_size(uint32_t & component_size)
```

`pure virtual`

Get the size of each coordinate component for unstructured meshes.

Used for unstructured meshes. Returns the size of each x/y/z coordinate array to be used with [get\_coords()](#a7738e954570e849462ff493ec875bc80) or component\_size\*3 for [get\_coords\_interleaved()](#a39c2d8cc95f14ecbe9789908881c92a0).

Errors:

* DVS\_NO\_DATA: No data for this mesh, not an error
* DVS\_INVALID\_MESH\_TYPE: Mesh type is not [DVS::IMeshChunk::MeshType::UNSTRUCTURED](#a8b7de1a1e47e05ab63f6bb41ccf5144aabd8a1a2f952443e439d96cbea674208e)

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | component\_size | the size of each x/y/z coordinate components |

**Returns**

dvs\_ret DVS\_NONE on no error, see method documentation for errors

### get\_element\_block()

```cpp theme={null}
virtual DVS::IElementBlock * DVS::IMeshChunk::get_element_block(uint32_t index)
```

`pure virtual`

Get the element block by index.

Get the element block according to it's index in the mesh chunk. This range is from \[0, [get\_num\_element\_blocks()](#a5f3772e845d3ffe73c4a6525d78ab2ad)-1]. Every mesh chunk has a number of element blocks for each element type it has data for.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | the zero based index of the element block range: \[0, [get\_num\_element\_blocks()](#a5f3772e845d3ffe73c4a6525d78ab2ad)-1] |

**Returns**

[DVS::IElementBlock](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_element_block.md)\* nullptr if index is out of bounds, otherwise the element block

### get\_element\_block\_by\_type()

```cpp theme={null}
virtual DVS::IElementBlock * DVS::IMeshChunk::get_element_block_by_type(
    dvs_element_type type
)
```

`pure virtual`

Get the element block by element type.

Get the element block by dvs\_element\_type from this mesh chunk, the valid types for this mesh chunk may be obtained via the method [get\_element\_block\_types()](#a44a916bcd71f4d6b33661b249d52c61b).

Every mesh chunk has an element block for each element type it has data available for. These types are defined by the enum dvs\_element\_type in [dynamic\_visualization\_store\_enums.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__enums_8h) with a macro FOREACH\_ELEM\_ENUM.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | type | the type of element block to retrieve |

**Returns**

[DVS::IElementBlock](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_element_block.md)\* nullptr if invalid, otherwise the element block

### get\_element\_block\_types()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_element_block_types(dvs_element_type * element_types) const
```

`pure virtual`

Get an array of the element block types for this mesh chunk.

This returns an array of dvs\_element\_type for every block this mesh chunk contains. These types are defined by the enum dvs\_element\_type in [dynamic\_visualization\_store\_enums.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__enums_8h) with a macro FOREACH\_ELEM\_ENUM.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | element\_types | an array of size [get\_num\_element\_blocks()](#a5f3772e845d3ffe73c4a6525d78ab2ad) to fill out |

**Returns**

dvs\_ret DVS\_NONE on no errors, DVS\_PARAM\_NULL if element types nullptr

### get\_num\_element\_blocks()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_num_element_blocks(uint32_t & num_elem_blocks) const
```

`pure virtual`

Get the number of element blocks for this mesh chunk.

Every mesh chunk has an element block for each element type it has data available for. These types are defined by the enum dvs\_element\_type in [dynamic\_visualization\_store\_enums.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dynamic__visualization__store__enums_8h) with a macro FOREACH\_ELEM\_ENUM.

Errors:

* DVS\_NONE: Success

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | num\_elem\_blocks | if success, returns number of element blocks for this mesh chunk |

**Returns**

DVS\_NONE on success, else see method description

### get\_num\_variables()

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_num_variables(
    uint32_t & num_vars,
    VAR_TYPE type = VAR_TYPE::FLOAT
) const
```

`pure virtual`

Get the number of nodal variables this mesh chunk has data for, based on the specified type.

This method is intended to be used in conjunction with [get\_variable()](#a3fbe50455053f953a39707671d8b3ab3) and [get\_variable\_data()](#ae7fe3d3b75e14f1cdd0d810e30a35fe0) to retrieve nodal variable data.

Errors:

* DVS\_NONE: Success

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | num\_vars | if success, returns the number of nodal variables for this mesh chunk |
| \[in] | type | The enum type. By default, VAR\_TYPE::FLOAT |

**Returns**

dvs\_ret DVS\_NONE if success, else see method description

### get\_object()

```cpp theme={null}
virtual const DVS::IObject * DVS::IMeshChunk::get_object() const
```

`pure virtual`

Get the object definiton this mesh chunk is associated with.

**Returns**

const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_object)\* the object definition

### get\_rank()

```cpp theme={null}
virtual uint32_t DVS::IMeshChunk::get_rank() const
```

`pure virtual`

Get the rank for the mesh chunk.

**Returns**

uint32\_t the rank this mesh chunk is associated with (zero based)

### get\_time()

```cpp theme={null}
virtual float DVS::IMeshChunk::get_time() const
```

`pure virtual`

Get the time for this mesh chunk.

**Returns**

float the time this mesh chunk is associated with

### get\_type()

```cpp theme={null}
virtual MeshType DVS::IMeshChunk::get_type() const
```

`pure virtual`

Get the type of mesh chunk.

**Returns**

MeshType the type of mesh

### get\_variable()

```cpp theme={null}
virtual const DVS::IVar * DVS::IMeshChunk::get_variable(
    uint32_t index,
    VAR_TYPE type = VAR_TYPE::FLOAT
) const
```

`pure virtual`

Get the variable definition associates with the nodal variable for this index and the specified type.

This method retrieves the variable that is associated with the nodal variable of the mesh chunk at a specific index in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] and of the specified type

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index of variable definition to get in range \[0, [get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] |
| \[in] | type | The enum type. By default, VAR\_TYPE::FLOAT |

**Returns**

[DVS::IVar](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/class_d_v_s_1_1_i_var.md)\* nullptr if out of range, otherwise the variable associated with the index

### get\_variable\_data() \[1/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    const IVar * var,
    float * array
) const
```

`pure virtual`

Get the variable data by variable.

This method retrieves the nodal variable data based on a specific variable definitions.

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_INVALID\_VAR: Bad (or null) variable object passed into method
* DVS\_PARAM\_INVALID\_VAR\_ID: Mesh chunk does not have data for var passed in.
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | var | the variable definition to retrieve nodal variable data for |
| \[out] | array | an array whose size should be returned from [get\_variable\_size()](#a6d0e7efa6c204cbb7730ef1bf4024fbc). Overloaded for float and int64. |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_data() \[2/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    const IVar * var,
    int64_t * array
) const
```

`pure virtual`

Get the variable data by variable.

This method retrieves the nodal variable data based on a specific variable definitions.

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_INVALID\_VAR: Bad (or null) variable object passed into method
* DVS\_PARAM\_INVALID\_VAR\_ID: Mesh chunk does not have data for var passed in.
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | var | the variable definition to retrieve nodal variable data for |
| \[out] | array | an array whose size should be returned from [get\_variable\_size()](#a6d0e7efa6c204cbb7730ef1bf4024fbc). Overloaded for float and int64. |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_data() \[3/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    const IVar * var,
    uint32_t * num_values,
    float * array
)
```

`pure virtual`

Get the variable data by variable.

This method retrieves the nodal variable data based on a specific variable definitions.

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_INVALID\_VAR: Bad (or null) variable object passed into method
* DVS\_PARAM\_INVALID\_VAR\_ID: Mesh chunk does not have data for var passed in.
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | var | the variable definition to retrieve nodal variable data for |
| \[out] | num\_values | if not nullptr returns the number of values to allocate for array |
| \[out] | array | if not nullptr should be of size num\_values |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_data() \[4/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    uint32_t index,
    float * array
) const
```

`pure virtual`

Get the variable data by index.

This method retrieves nodal variable data based on an index in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]. To retrieve the variable definition associated with the index call [get\_variable()](#a3fbe50455053f953a39707671d8b3ab3).

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_PARAM\_OUT\_OF\_BOUNDS: Index out of bounds of \[0, [get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]
* DVS\_PARAM\_INVALID\_VAR: Invalid variable found at index, should not happen
* DVS\_PARAM\_INVALID\_VAR\_ID: Invalid variable id found at index, should not happen
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index of the variable data in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] |
| \[out] | array | an array whose size should be returned from [get\_variable\_size()](#a6d0e7efa6c204cbb7730ef1bf4024fbc). Overloaded for float and int64. |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_data() \[5/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    uint32_t index,
    int64_t * array
) const
```

`pure virtual`

Get the variable data by index.

This method retrieves nodal variable data based on an index in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]. To retrieve the variable definition associated with the index call [get\_variable()](#a3fbe50455053f953a39707671d8b3ab3).

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_PARAM\_OUT\_OF\_BOUNDS: Index out of bounds of \[0, [get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]
* DVS\_PARAM\_INVALID\_VAR: Invalid variable found at index, should not happen
* DVS\_PARAM\_INVALID\_VAR\_ID: Invalid variable id found at index, should not happen
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index of the variable data in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] |
| \[out] | array | an array whose size should be returned from [get\_variable\_size()](#a6d0e7efa6c204cbb7730ef1bf4024fbc). Overloaded for float and int64. |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_data() \[6/6]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_data(
    uint32_t index,
    uint32_t * num_values,
    float * array
)
```

`pure virtual`

Get the variable data by index.

This method retrieves nodal variable data based on an index in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]. To retrieve the variable definition associated with the index call [get\_variable()](#a3fbe50455053f953a39707671d8b3ab3).

Error Codes:

* DVS\_NONE: No error
* DVS\_PARAM\_NULL: All parameters are null. Method will do nothing.
* DVS\_PARAM\_OUT\_OF\_BOUNDS: Index out of bounds of \[0, [get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1]
* DVS\_PARAM\_INVALID\_VAR: Invalid variable found at index, should not happen
* DVS\_PARAM\_INVALID\_VAR\_ID: Invalid variable id found at index, should not happen
* DVS\_INVALID\_CACHE: Cache is unable to be read. Bad location or permissions
* DVS\_INVALID\_HASH: Hash of variable data is invalid. There is a problem with the data
* DVS\_DATA\_FAILED\_LOAD: Data hash in metadata is missing from blockstore. Bad cache or permissions?

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index of the variable data in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] |
| \[out] | num\_values | if not nullptr returns the number of values to allocate for array |
| \[out] | array | if not nullptr must be of size num\_values |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_size() \[1/2]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_size(
    const IVar * var,
    uint32_t & num_values
) const
```

`pure virtual`

Get the variable size by variable.

This method retrieves the nodal variable data size based on a specific variable definitions.

Error Codes:

* DVS\_NONE: Success
* DVS\_PARAM\_INVALID\_VAR: Bad (or null) variable object passed into method

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | var | the variable definition to retrieve nodal variable data for |
| \[out] | num\_values | a reference to a uint32\_t, representing the number of values of the variable |

**Returns**

dvs\_ret DVS\_NONE on no error, otherwise see method description

### get\_variable\_size() \[2/2]

```cpp theme={null}
virtual dvs_ret DVS::IMeshChunk::get_variable_size(
    uint32_t index,
    uint32_t & num_values,
    VAR_TYPE type = VAR_TYPE::FLOAT
) const
```

`pure virtual`

Get the variable size via the index and specified type.

This method retrieves the variable's size that is associated with the nodal variable of the mesh chunk at a specific index in range \[0,[get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] and of the specified type

Errors:

* DVS\_NONE: Success

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | index | index of variable definition to get in range \[0, [get\_num\_variables()](#a0b819acf4a968957e8ba90876dd880d9)-1] |
| \[out] | num\_values | a reference to a uint32\_t, representing the number of values of the variable |
| \[in] | type | the enum type. By default, VAR\_TYPE::FLOAT |

**Returns**

dvs\_ret DVS\_NONE if success, else see method description

The documentation for this class was generated from the following file:

* D:/ANSYSDev/Product-src/ensight/user\_defined\_src/readers/dvs/include/[dvs\_mesh\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r1/dvs__mesh__chunk__interface_8h_source.md)
