IRockyCFDModel Struct Reference
Last update: 17.07.2025#include <rocky_cfd_model.h>
Public Member Functions | |
| IRockyFluidScalarsModel | get_fluid_scalars () const |
| ECFDCouplingMode | get_coupling_mode () const |
| bool | is_cfd_coupling_iteration () const |
Detailed Description
IRockyCFDModel includes methods that provide basic information about the CFD model. The data associated to an IRockyCFDModel 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()
| ECFDCouplingMode IRockyCFDModel::get_coupling_mode | ( | ) | const |
- Returns
- An
ECFDCouplingModeenum which represents the CFD coupling mode. There are 5 coupling modes in Rocky:cfdcNone = 0cfdcOneWay = 1cfdcTwoWay = 2cfdcOneWayConstant = 3cfdcTwoWaySemiResolved = 4
◆ get_fluid_scalars()
| IRockyFluidScalarsModel IRockyCFDModel::get_fluid_scalars | ( | ) | const |
- Returns
- An
IRockyFluidScalarsModelobject, 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()
| 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.