RAFluentOneWayCoupling#
- class ansys.rocky.app.ra_fluent_coupling.RAFluentOneWayCoupling#
Bases:
ansys.rocky.app.ra_cfd_coupling.RABaseCFDCouplingRocky PrePost Scripting wrapper to Fluent one way CFD coupling process.
This wrapper can be accessed via the project’s
RACFDCoupling:cfd_coupling = study.GetCFDCoupling() cfd_coupling.SetupOneWayFluent('fluent.cas') one_way_process = cfd_coupling.GetCouplingProcess()
Overview#
Set the file with Fluent to Rocky information. |
|
Obtain the names of the boundaries available for coupling in the fluent file. |
|
Create a coupled boundary for each of the coupled boundary name passed by the user. |
|
Get the value of “Is One Way Periodic”. |
|
Set the value of “Is One Way Periodic”. |
|
Get the value of “Overwrite Cfd Update Distance”. |
|
Set the value of “Overwrite Cfd Update Distance”. |
|
Get the value of “Start Time”. |
|
Set the value of “Start Time”. |
|
Get the value of “Use Turbulent Dispersion”. |
|
Set the value of “Use Turbulent Dispersion”. |
|
Get the value of “User Cfd Update Distance”. |
|
Set the value of “User Cfd Update Distance”. |
Import detail#
from ansys.rocky.app.ra_fluent_coupling import RAFluentOneWayCoupling
Method detail#
- classmethod RAFluentOneWayCoupling.GetWrappedClass()#
- classmethod RAFluentOneWayCoupling.GetClassName()#
- RAFluentOneWayCoupling.SetupStoreFiles(filename) None#
Set the file with Fluent to Rocky information.
- Parameters:
filename (str) – The filename for the .f2r file.
- RAFluentOneWayCoupling.GetAvailableCoupledBoundaryNames() collections.abc.Iterable[str]#
Obtain the names of the boundaries available for coupling in the fluent file.
- RAFluentOneWayCoupling.CreateCoupledBoundaries(coupled_boundary_names: list[str]) None#
Create a coupled boundary for each of the coupled boundary name passed by the user. Check GetAvailableCoupledBoundaryNames to obtain the list of available boundaries.
- RAFluentOneWayCoupling.SetIsOneWayPeriodic(value: bool) None#
Set the value of “Is One Way Periodic”.
- Parameters:
value – The value to set.
- RAFluentOneWayCoupling.GetOverwriteCfdUpdateDistance() bool#
Get the value of “Overwrite Cfd Update Distance”.
- RAFluentOneWayCoupling.SetOverwriteCfdUpdateDistance(value: bool) None#
Set the value of “Overwrite Cfd Update Distance”.
- Parameters:
value – The value to set.
- RAFluentOneWayCoupling.GetStartTime(unit: str | None = None) float#
Get the value of “Start Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAFluentOneWayCoupling.SetStartTime(value: str | float, unit: str | None = None) None#
Set the value of “Start Time”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RAFluentOneWayCoupling.GetUseTurbulentDispersion() bool#
Get the value of “Use Turbulent Dispersion”.
- RAFluentOneWayCoupling.SetUseTurbulentDispersion(value: bool) None#
Set the value of “Use Turbulent Dispersion”.
- Parameters:
value – The value to set.
- RAFluentOneWayCoupling.GetUserCfdUpdateDistance(unit: str | None = None) float#
Get the value of “User Cfd Update Distance”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RAFluentOneWayCoupling.SetUserCfdUpdateDistance(value: str | float, unit: str | None = None) None#
Set the value of “User Cfd Update Distance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m”.