    

 ## On this page

  

 

 # get\_num\_compute\_nodes

 Last update: 29.04.2026 

<a id="ansys.meshing.prime.Model.get_num_compute_nodes"></a>

#### Model.get\_num\_compute\_nodes()

Get the number of compute nodes.

**Returns:**

**[`int`](https://docs.python.org/3.11/library/functions.html#int)**

Returns the number of compute nodes.

**Return type:**

[`int`](https://docs.python.org/3.11/library/functions.html#int)

### Examples

```pycon
>>> model = client.model
>>> num_compute_nodes = model.get_num_compute_nodes()

```