RAFluentSemiResolvedCoupling#
- class ansys.rocky.app.ra_semi_resolved_coupling.RAFluentSemiResolvedCoupling(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemPrePost Scripting wrapper class for the Fluent Two-Way Semi Resolved coupling mode
Overview#
Set the process’ part id (unused for now) |
|
Copies CAS file to Rocky’s project folder and update Fluent info |
|
Get a list of available Fluent releases. |
|
Get the value of “Version”. |
|
Set the Ansys Fluent version to be used in CFD coupling (deprecated). |
|
Get the value of “Coupling Files Kept”. |
|
Set the value of “Coupling Files Kept”. |
|
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 “Use Dat Initialization”. |
|
Set the value of “Use Dat Initialization”. |
Import detail#
from ansys.rocky.app.ra_semi_resolved_coupling import RAFluentSemiResolvedCoupling
Method detail#
- RAFluentSemiResolvedCoupling.SetupStoreFiles(cas_filename: str, case_config: rocky30coupling.fluent.io.fluent_cas_description.FluentCaseConfig | None = None) None#
Copies CAS file to Rocky’s project folder and update Fluent info
- RAFluentSemiResolvedCoupling.GetFluentReleases() list[str]#
Get a list of available Fluent releases.
- Return type:
list(unicode)
- Returns:
The list of available Fluent releases
- RAFluentSemiResolvedCoupling.SetFluentVersion(fluent_version: str) str#
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).
- RAFluentSemiResolvedCoupling.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.
- RAFluentSemiResolvedCoupling.GetFluentAdditionalArgs() str#
Get the value of “Fluent Additional Args”.
- RAFluentSemiResolvedCoupling.SetFluentAdditionalArgs(value: str) None#
Set the value of “Fluent Additional Args”.
- Parameters:
value – The value to set.
- RAFluentSemiResolvedCoupling.GetFluentExecutionMode() str#
Get “Fluent Execution Mode” as a string.
- Returns:
The returned value will be one of [‘serial’, ‘local_parallel’, ‘distributed_parallel’].
- RAFluentSemiResolvedCoupling.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.
- RAFluentSemiResolvedCoupling.GetValidFluentExecutionModeValues() list[str]#
Get a list of all possible values for “Fluent Execution Mode”.
- Returns:
The returned list is [‘serial’, ‘local_parallel’, ‘distributed_parallel’].
- RAFluentSemiResolvedCoupling.GetFluentOutputFrequencyMultiplier() int#
Get the value of “Fluent Output Frequency Multiplier”.
- RAFluentSemiResolvedCoupling.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.
- RAFluentSemiResolvedCoupling.GetFluentSolverProcesses() int#
Get the value of “Fluent Solver Processes”.
- RAFluentSemiResolvedCoupling.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.