Skip to main content
#include <rocky_cfd_model.h>

Public Member Functions

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()

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

get_fluid_scalars()

Returns An IRockyFluidScalarsModel 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()

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

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()

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

has_species()

Returns This method returns true if Fluent case has species.

is_cfd_coupling_iteration()

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()

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