Skip to main content

Rocky PrePost scripting 2026 R1

RACFDCoupling

Last update: 23.02.2026

class RACFDCoupling

Rocky PrePost Scripting wrapper to configure the CFD coupling mode in a project.

This wrapper can be accessed directly via the project’s RAStudy:

cfd_coupling = study.GetCFDCoupling()
cfd_coupling.SetupFluentTwoWay('fluent.cas')
two_way_process = cfd_coupling.GetCouplingProcess()

Methods:

Name Description
GetCouplingMode()
GetCouplingProcess()
GetOneWayLBM() Get the PrePost Scripting wrapper for 1-Way LBM properties.
SetupFluentTwoWaySemiResolved(cas_filename) Configure the project to use Fluent Two-Way Semi Resolved.
SetupNoCoupling() Configure the project to use no CFD coupling.
SetupOneWayConstant() Configure the project to use 1-Way Constant.
SetupOneWayFluent(f2r_filename) Configure the project to use 1-Way Fluent.
SetupOneWayLBM() Configure the project to use 1-Way LBM.
SetupTwoWayFluent(cas_filename) Configure the project to use 2-Way Fluent.

GetCouplingMode()

  • Return type: unicode
  • Returns: The current coupling mode

GetCouplingProcess()

  • Returns: The configured coupling process

GetOneWayLBM()

Get the PrePost Scripting wrapper for 1-Way LBM properties.

Returns None if the current CFD coupling mode isn’t Air Flow.

SetupFluentTwoWaySemiResolved(cas_filename: str)

Configure the project to use Fluent Two-Way Semi Resolved.

  • Parameters: cas_filename – The filename describing the Fluent simulation

SetupNoCoupling()

Configure the project to use no CFD coupling.

SetupOneWayConstant()

Configure the project to use 1-Way Constant.

SetupOneWayFluent(f2r_filename: str)

Configure the project to use 1-Way Fluent.

  • Parameters: f2r_filename – str The exported file name describing the Fluent simulation

SetupOneWayLBM()

Configure the project to use 1-Way LBM.

SetupTwoWayFluent(cas_filename: str)

Configure the project to use 2-Way Fluent.

  • Parameters: cas_filename – str The Fluent file name describing the Fluent simulation

Connect with Ansys