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

# IRockyCFDModel Struct Reference

`#include <rocky_cfd_model.h>`

## Public Member Functions

| Type | Name |
| - | - |
| [IRockyFluidScalarsModel](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyFluidScalarsModel.md) | [get\_fluid\_scalars](#a001b18af80c99c01ce4baa357bac4977) () const |
| ECFDCouplingMode | [get\_coupling\_mode](#a121e67b3f5efdd1783a32a7fa642080c) () const |
| bool | [is\_cfd\_coupling\_iteration](#a733281fb5b40b3cfbf10c29869208343) () const |
| bool | [is\_single\_phase](#a0eaf07fa0aa63473b83a633dad1e8f25) () const |
| bool | [has\_species](#a4ac3f8164add3366c5f08f4f819a79fd) () const |
| std::vector\< std::string > | [get\_phase\_names](#a6bc367fb97d56786d71d89351957a2a1) () |
| std::string | [get\_primary\_phase\_name](#a83c9a597793b791d1e42e0756ddddb06) () |
| std::vector\< std::string > | [get\_species\_names](#aac7f217cdfc15f0dd301dfd99127a194) () |

## Detailed Description

[`IRockyCFDModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyCFDModel) includes methods that provide basic information about the CFD model. The data associated to an [`IRockyCFDModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyCFDModel) object resides entirely on host memory, consequently, it can be accessed only within hooks executed on the host side.

## Member Function Documentation

### get\_coupling\_mode()

```cpp theme={null}
ECFDCouplingMode IRockyCFDModel::get_coupling_mode() const
```

**Returns**

An `ECFDCouplingMode` enum which represents the CFD coupling mode. There are 5 coupling modes in Rocky:\
&#x20;`cfdcNone = 0`\
&#x20;`cfdcOneWay = 1`\
&#x20;`cfdcTwoWay = 2`\
&#x20;`cfdcOneWayConstant = 3`\
&#x20;`cfdcTwoWaySemiResolved = 4`

### get\_fluid\_scalars()

```cpp theme={null}
IRockyFluidScalarsModel IRockyCFDModel::get_fluid_scalars() const
```

**Returns**

An [`IRockyFluidScalarsModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r2/structIRockyFluidScalarsModel) object, which allows users to add new fluid scalars during a setup of a module. Fluid scalars are special variables attached to CFD cell elements that are able to store values that are preserved between time iterations.

### get\_phase\_names()

```cpp theme={null}
std::vector< std::string > IRockyCFDModel::get_phase_names()
```

**Returns**

This method returns a vector with phase names. It returns an empty vector for single-phase cases.

### get\_primary\_phase\_name()

```cpp theme={null}
std::string IRockyCFDModel::get_primary_phase_name()
```

**Returns**

This method returns the primary phase name defined in Fluent. It return a empty string for single-phase cases.

### get\_species\_names()

```cpp theme={null}
std::vector< std::string > IRockyCFDModel::get_species_names()
```

**Returns**

This method returns a vector with species names. It returns an empty vector for cases without species.

### has\_species()

```cpp theme={null}
bool IRockyCFDModel::has_species() const
```

**Returns**

This method returns true if Fluent case has species.

### is\_cfd\_coupling\_iteration()

```cpp theme={null}
bool IRockyCFDModel::is_cfd_coupling_iteration() const
```

**Returns**

On simulations with CFD 1-way or 2-way coupling, this methods returns true if, in the current solver iteration, Rocky will communicate with Fluent (2-way) or read Fluent transient data (1-way). Both operations happen at the end of the iteration, after all Rocky steps. It return false in all other scenarios.

### is\_single\_phase()

```cpp theme={null}
bool IRockyCFDModel::is_single_phase() const
```

**Returns**

This method returns true if Fluent case is single-phase.
