RAFluentTwoWayCoupling#
- class ansys.rocky.app.ra_fluent_coupling.RAFluentTwoWayCoupling#
Bases:
ansys.rocky.app.ra_cfd_coupling.RABaseCFDCouplingRocky PrePost Scripting wrapper to manipulate Fluent Two-Way coupling properties.
This wrapper can be accessed via the project’s
RACFDCoupling:cfd_coupling = study.GetCFDCoupling() cfd_coupling.SetupFluentTwoWay('fluent.cas') two_way_process = cfd_coupling.GetCouplingProcess()
Overview#
Subclasses should implement this method if it’s a Process with visualization |
|
Get a list of available Fluent releases. |
|
Starts Fluent application |
|
Whether a Rocky-created Fluent process is running. |
|
Closes a running Fluent application |
|
Updates the latest changes from Fluent setup. |
|
Copies CAS file to Rocky’s project folder and update Fluent info |
|
Get the value of “Version”. |
|
Set the Ansys Fluent version to be used in CFD coupling (deprecated). |
|
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 “Absolute Value”. |
|
Set the value of “Absolute Value”. |
|
Get the value of “Maximum Iterations”. |
|
Set the value of “Maximum Iterations”. |
|
Get “Mapping Method” as a string. |
|
Set the value of “Mapping Method”. |
|
Get a list of all possible values for “Mapping Method”. |
|
Deprecated: Use |
|
Deprecated: Use |
|
Deprecated: Use |
|
Get the value of “Minimum Iterations”. |
|
Set the value of “Minimum Iterations”. |
|
Get “Averaging Radius Type” as a string. |
|
Set the value of “Averaging Radius Type”. |
|
Get a list of all possible values for “Averaging Radius Type”. |
|
Get the value of “Solids Maximum Volume Fraction Target”. |
|
Set the value of “Solids Maximum Volume Fraction Target”. |
|
Deprecated: Use |
|
Deprecated: Use |
|
Get the value of “Coupling Files Kept”. |
|
Set the value of “Coupling Files Kept”. |
|
Get the value of “Decomposition Factor”. |
|
Set the value of “Decomposition Factor”. |
|
Get the value of “Diffusion Coefficient”. |
|
Set the value of “Diffusion Coefficient”. |
|
Get the value of “Fluent Additional Args”. |
|
Set the value of “Fluent Additional Args”. |
|
Get “Fluent Execution Mode” as a string. |
|
Set the value of “Fluent Execution Mode”. |
|
Get a list of all possible values for “Fluent Execution Mode”. |
|
Get the value of “Fluent Output Frequency Multiplier”. |
|
Set the value of “Fluent Output Frequency Multiplier”. |
|
Get the value of “Fluent Solver Processes”. |
|
Set the value of “Fluent Solver Processes”. |
|
Get the value of “Fraction Particle Size”. |
|
Set the value of “Fraction Particle Size”. |
|
Get the value of “Maximum Residual Tolerance”. |
|
Set the value of “Maximum Residual Tolerance”. |
|
Get the value of “Maximum Time Steps”. |
|
Set the value of “Maximum Time Steps”. |
|
Get the value of “Minimum Time Steps”. |
|
Set the value of “Minimum Time Steps”. |
|
Get the value of “Number of Substeps”. |
|
Set the value of “Number of Substeps”. |
|
Get the value of “Number of Threads”. |
|
Set the value of “Number of Threads”. |
|
Get the value of “Overwrite Cfd Update Distance”. |
|
Set the value of “Overwrite Cfd Update Distance”. |
|
Get the value of “Maximum Volume Fraction”. |
|
Set the value of “Maximum Volume Fraction”. |
|
Get the value of “Back Diffusion”. |
|
Set the value of “Back Diffusion”. |
|
Set the value of “Back Diffusion” to True. |
|
Set the value of “Back Diffusion” to False. |
|
Check if the “Back Diffusion” is enabled. |
|
Get the value of “Use Dat Initialization”. |
|
Set the value of “Use Dat Initialization”. |
|
Get the value of “Substepping”. |
|
Set the value of “Substepping”. |
|
Set the value of “Substepping” to True. |
|
Set the value of “Substepping” to False. |
|
Check if the “Substepping” is enabled. |
|
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 RAFluentTwoWayCoupling
Property detail#
- property RAFluentTwoWayCoupling.fluent_release#
- property RAFluentTwoWayCoupling.fluent_phases#
- property RAFluentTwoWayCoupling.fluent_rocky_phase#
- property RAFluentTwoWayCoupling.fluent_solver_processes#
- property RAFluentTwoWayCoupling.use_dat_initialization#
- property RAFluentTwoWayCoupling.fluent_output_frequency_multiplier#
- property RAFluentTwoWayCoupling.coupling_files_kept#
- property RAFluentTwoWayCoupling.fluent_time_step#
- property RAFluentTwoWayCoupling.additional_input_variables#
- property RAFluentTwoWayCoupling.additional_output_variables#
- property RAFluentTwoWayCoupling.disabled_input_variables#
- property RAFluentTwoWayCoupling.disabled_output_variables#
Attribute detail#
- RAFluentTwoWayCoupling.dat_filename: _typeshed.Incomplete#
- RAFluentTwoWayCoupling.cas_filename: _typeshed.Incomplete#
Method detail#
- classmethod RAFluentTwoWayCoupling.GetWrappedClass()#
- classmethod RAFluentTwoWayCoupling.GetClassName()#
- RAFluentTwoWayCoupling.SetPartIdIfValid() None#
Subclasses should implement this method if it’s a Process with visualization
- RAFluentTwoWayCoupling.GetFluentReleases()#
Get a list of available Fluent releases.
- Return type:
list(unicode)
- Returns:
The list of available Fluent releases
- RAFluentTwoWayCoupling.SetupDatFilename(dat_filename)#
- RAFluentTwoWayCoupling.IsFluentRunning()#
Whether a Rocky-created Fluent process is running.
- Returns:
True whether a Fluent application is running false otherwise
- RAFluentTwoWayCoupling.SetupStoreFiles(cas_filename, case_config=None) None#
Copies CAS file to Rocky’s project folder and update Fluent info
- RAFluentTwoWayCoupling.SetFluentVersion(fluent_version) None#
Set the Ansys Fluent version to be used in CFD coupling (deprecated).
Currently, it’s not possible to change the version of Ansys Fluent used for CFD coupling. This method is being kept for backward compatibility (and also because there’s a chance of this feature to be brought back in future version).
- RAFluentTwoWayCoupling.GetAvailableCoupledBoundaryNames() collections.abc.Iterable[str]#
Obtain the names of the boundaries available for coupling in the fluent file.
- RAFluentTwoWayCoupling.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.
- RAFluentTwoWayCoupling.GetAbsoluteValue(unit: str | None = None) float#
Get the value of “Absolute Value”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RAFluentTwoWayCoupling.SetAbsoluteValue(value: str | float, unit: str | None = None) None#
Set the value of “Absolute Value”.
- 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”.
- RAFluentTwoWayCoupling.SetMaximumIterations(value: str | int) None#
Set the value of “Maximum Iterations”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.GetMappingMethod() str#
Get “Mapping Method” as a string.
- Returns:
The returned value will be one of [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- RAFluentTwoWayCoupling.SetMappingMethod(value: str) None#
Set the value of “Mapping Method”.
- Parameters:
value – The value to set. Must be one of [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- Raises:
RockyApiError – If value is not a valid “Mapping Method” option.
- RAFluentTwoWayCoupling.GetValidMappingMethodValues() list[str]#
Get a list of all possible values for “Mapping Method”.
- Returns:
The returned list is [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- RAFluentTwoWayCoupling.GetAveragingMethod() str#
Deprecated: Use
GetMappingMethod()instead.- Returns:
The returned value will be one of [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- RAFluentTwoWayCoupling.SetAveragingMethod(value: str)#
Deprecated: Use
SetMappingMethod()instead.- Parameters:
value – The value to set. Must be one of [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- Raises:
RockyApiError – If value is not a valid “Averaging Method” option.
- RAFluentTwoWayCoupling.GetValidAveragingMethodValues() list[str]#
Deprecated: Use
GetValidMappingMethodValues()instead.- Returns:
The returned list is [‘UniformDistribution’, ‘VolumetricDiffusion’, ‘DiffusionSolution’].
- RAFluentTwoWayCoupling.SetMinimumIterations(value: str | int) None#
Set the value of “Minimum Iterations”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.GetAveragingRadiusType() str#
Get “Averaging Radius Type” as a string.
- Returns:
The returned value will be one of [‘FractionMaximumParticleSize’, ‘AbsoluteValue’].
- RAFluentTwoWayCoupling.SetAveragingRadiusType(value: str) None#
Set the value of “Averaging Radius Type”.
- Parameters:
value – The value to set. Must be one of [‘FractionMaximumParticleSize’, ‘AbsoluteValue’].
- Raises:
RockyApiError – If value is not a valid “Averaging Radius Type” option.
- RAFluentTwoWayCoupling.GetValidAveragingRadiusTypeValues() list[str]#
Get a list of all possible values for “Averaging Radius Type”.
- Returns:
The returned list is [‘FractionMaximumParticleSize’, ‘AbsoluteValue’].
- RAFluentTwoWayCoupling.GetSolidsMaximumVolumeFractionTarget() float#
Get the value of “Solids Maximum Volume Fraction Target”.
- RAFluentTwoWayCoupling.SetSolidsMaximumVolumeFractionTarget(value: str | float) None#
Set the value of “Solids Maximum Volume Fraction Target”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAFluentTwoWayCoupling.GetVolumeFractionTarget() float#
Deprecated: Use
GetSolidsMaximumVolumeFractionTarget()instead.
- RAFluentTwoWayCoupling.SetVolumeFractionTarget(value: float) None#
Deprecated: Use
SetSolidsMaximumVolumeFractionTarget()instead.- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.SetCouplingFilesKept(value: str | int) None#
Set the value of “Coupling Files Kept”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.SetDecompositionFactor(value: str | float) None#
Set the value of “Decomposition Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAFluentTwoWayCoupling.GetDiffusionCoefficient(unit: str | None = None) float#
Get the value of “Diffusion Coefficient”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m2/s”.
- RAFluentTwoWayCoupling.SetDiffusionCoefficient(value: str | float, unit: str | None = None) None#
Set the value of “Diffusion Coefficient”.
- 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 “m2/s”.
- RAFluentTwoWayCoupling.SetFluentAdditionalArgs(value: str) None#
Set the value of “Fluent Additional Args”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.GetFluentExecutionMode() str#
Get “Fluent Execution Mode” as a string.
- Returns:
The returned value will be one of [‘serial’, ‘local_parallel’, ‘distributed_parallel’].
- RAFluentTwoWayCoupling.SetFluentExecutionMode(value: str) None#
Set the value of “Fluent Execution Mode”.
- Parameters:
value – The value to set. Must be one of [‘serial’, ‘local_parallel’, ‘distributed_parallel’].
- Raises:
RockyApiError – If value is not a valid “Fluent Execution Mode” option.
- RAFluentTwoWayCoupling.GetValidFluentExecutionModeValues() list[str]#
Get a list of all possible values for “Fluent Execution Mode”.
- Returns:
The returned list is [‘serial’, ‘local_parallel’, ‘distributed_parallel’].
- RAFluentTwoWayCoupling.GetFluentOutputFrequencyMultiplier() int#
Get the value of “Fluent Output Frequency Multiplier”.
- RAFluentTwoWayCoupling.SetFluentOutputFrequencyMultiplier(value: str | int) None#
Set the value of “Fluent Output Frequency Multiplier”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.SetFluentSolverProcesses(value: str | int) None#
Set the value of “Fluent Solver Processes”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.GetFractionParticleSize(unit: str | None = None) float#
Get the value of “Fraction Particle Size”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “-“.
- RAFluentTwoWayCoupling.SetFractionParticleSize(value: str | float, unit: str | None = None) None#
Set the value of “Fraction Particle Size”.
- 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 “-“.
- RAFluentTwoWayCoupling.GetMaximumResidualTolerance() float#
Get the value of “Maximum Residual Tolerance”.
- RAFluentTwoWayCoupling.SetMaximumResidualTolerance(value: str | float) None#
Set the value of “Maximum Residual Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAFluentTwoWayCoupling.SetMaximumTimeSteps(value: str | int) None#
Set the value of “Maximum Time Steps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.SetMinimumTimeSteps(value: str | int) None#
Set the value of “Minimum Time Steps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.SetNumberOfSubsteps(value: str | int) None#
Set the value of “Number of Substeps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.SetNumberOfThreads(value: str | int) None#
Set the value of “Number of Threads”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAFluentTwoWayCoupling.GetOverwriteCfdUpdateDistance() bool#
Get the value of “Overwrite Cfd Update Distance”.
- RAFluentTwoWayCoupling.SetOverwriteCfdUpdateDistance(value: bool) None#
Set the value of “Overwrite Cfd Update Distance”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.GetMaximumVolumeFraction(unit: str | None = None) float#
Get the value of “Maximum Volume Fraction”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “-“.
- RAFluentTwoWayCoupling.SetMaximumVolumeFraction(value: str | float, unit: str | None = None) None#
Set the value of “Maximum Volume Fraction”.
- 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 “-“.
- RAFluentTwoWayCoupling.SetBackDiffusion(value: bool) None#
Set the value of “Back Diffusion”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.SetUseDatInitialization(value: bool) None#
Set the value of “Use Dat Initialization”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.SetSubstepping(value: bool) None#
Set the value of “Substepping”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.GetUseTurbulentDispersion() bool#
Get the value of “Use Turbulent Dispersion”.
- RAFluentTwoWayCoupling.SetUseTurbulentDispersion(value: bool) None#
Set the value of “Use Turbulent Dispersion”.
- Parameters:
value – The value to set.
- RAFluentTwoWayCoupling.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”.
- RAFluentTwoWayCoupling.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”.