> ## 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-r1/structIRockyFluidScalarsModel.md) | [get\_fluid\_scalars](#a001b18af80c99c01ce4baa357bac4977) () const |
| ECFDCouplingMode | [get\_coupling\_mode](#a121e67b3f5efdd1783a32a7fa642080c) () const |
| bool | [is\_cfd\_coupling\_iteration](#a733281fb5b40b3cfbf10c29869208343) () const |

## Detailed Description

[`IRockyCFDModel`](https://developer.synopsys.com/docs/rocky/rocky-solver-sdk/2025-r1/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-r1/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-r1/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.

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