> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RAFluentOneWayCoupling

### *class* RAFluentOneWayCoupling

Rocky PrePost Scripting wrapper to Fluent one way CFD coupling process.

This wrapper can be accessed via the project’s [`RACFDCoupling`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDCoupling#generated.RACFDCoupling):

```python theme={null}
cfd_coupling = study.GetCFDCoupling()
cfd_coupling.SetupOneWayFluent('fluent.cas')
one_way_process = cfd_coupling.GetCouplingProcess()
```

**Methods:**

| Name | Description |
| - | - |
| [`AddCurve`](#generated.RAFluentOneWayCoupling.AddCurve)(curve\_name, timesteps, values, unit) | Add a curve to the element with a time-steps domain |
| [`AddCustomCurve`](#generated.RAFluentOneWayCoupling.AddCustomCurve)(name\[, curve\_type, ...]) | Add a custom curve in the database. :param name:     The name of the curve to be set. :param curve\_type:     The type of the custom curve to be added. :param output\_unit:     The output unit, in which case the unit database will be queried for a quantity that makes sense. If None, the quantity is considered unknown. :param scope:     The scope to be set. :param sources:     A dict pointing the variable used to the curve association it represents and a     string indicating in which unit the input data should be gotten. :param expression:     The expression to be set. |
| [`AddCustomProperty`](#generated.RAFluentOneWayCoupling.AddCustomProperty)(name\[, property\_type, ...]) | Add a custom property to the database |
| [`AddGridFunction`](#generated.RAFluentOneWayCoupling.AddGridFunction)(grid\_function\_name, ...\[, ...]) | Adds a grid function to the grid. |
| [`CreateCoupledBoundaries`](#generated.RAFluentOneWayCoupling.CreateCoupledBoundaries)(coupled\_boundary\_names) | Create a coupled boundary for each of the coupled boundary name passed by the user. |
| [`CreateCurveOutputVariable`](#generated.RAFluentOneWayCoupling.CreateCurveOutputVariable)(curve\_name\[, ...]) | Used to create an output variable based on a curve which doesn't change at each new timestep (i.e.: a curve with a single value for each time). |
| [`CreateGridFunction`](#generated.RAFluentOneWayCoupling.CreateGridFunction)(values\[, location, time\_step]) | Create a grid function from the given values, location and time-step. |
| [`CreateGridFunctionArrayOnCells`](#generated.RAFluentOneWayCoupling.CreateGridFunctionArrayOnCells)(\[time\_step]) | Creates a numpy array with the number of elements based on the cells and returns it. |
| [`CreateGridFunctionStatisticOutputVariable`](#generated.RAFluentOneWayCoupling.CreateGridFunctionStatisticOutputVariable)(...) | Used to create an output variable based on a grid function statistic (i.e.: will get a grid function, compute its statistic based on statistic\_operation and then based on the statistic values will apply the operation to get a single scalar). |
| [`CreateTransientCurveOutputVariable`](#generated.RAFluentOneWayCoupling.CreateTransientCurveOutputVariable)(curve\_name) | Used to create an output variable based on a curve for which there's a completely new representation for each time step -- such as Power : Impact X Belt Width (i.e.: will get the curve multiple times based on the time range, compute a value for each time based on the operation, to convert the multiple curves into a single curve and then will apply the time\_operation to get a single scalar from those values). |
| [`EditCustomCurve`](#generated.RAFluentOneWayCoupling.EditCustomCurve)(edit\_curve\[, new\_name, ...]) | Edit a custom curve saved in the database. :param edit\_curve:     The name of the curve to be edited. :param new\_name:     The new name of the curve to be set. :param sources:     A dict pointing the variable used to the curve association it represents and a     string indicating in which unit the input data should be gotten. :param expression:     The expression to be set. |
| [`EditCustomProperty`](#generated.RAFluentOneWayCoupling.EditCustomProperty)(edit\_property\[, ...]) | Edit a custom property saved in the database. :param edit\_property:     The name of the property to be edited. :param new\_name:     The new name of the property to be set. :param sources:     A dict pointing the variable used to the property association it represents and a     string indicating in which unit the input data should be gotten. :param expression:     The expression to be set. |
| [`GetActivesArray`](#generated.RAFluentOneWayCoupling.GetActivesArray)(\[time\_step]) | Get an array representing the cells' "active" status. |
| [`GetAvailableCoupledBoundaryNames`](#generated.RAFluentOneWayCoupling.GetAvailableCoupledBoundaryNames)() | Obtain the names of the boundaries available for coupling in the fluent file. |
| [`GetBoundingBox`](#generated.RAFluentOneWayCoupling.GetBoundingBox)(\[unit, time\_step]) | Get the element's bounding box. |
| [`GetCFDParametersList`](#generated.RAFluentOneWayCoupling.GetCFDParametersList)() | Get the list of per-Particle CFD parameter sets. |
| [`GetCellAreaAsArray`](#generated.RAFluentOneWayCoupling.GetCellAreaAsArray)(\[time\_step]) | Get an array containing the area of each cell. |
| [`GetCellCenterAsArray`](#generated.RAFluentOneWayCoupling.GetCellCenterAsArray)(\[time\_step]) | Get an array containing the center coordinates of each cell. |
| [`GetCellDzAsArray`](#generated.RAFluentOneWayCoupling.GetCellDzAsArray)(\[time\_step]) | Get an array containing the thickness (in Z) of each cell. |
| [`GetCellFromIJK`](#generated.RAFluentOneWayCoupling.GetCellFromIJK)(i, j, k\[, time\_step]) | Creates a grid cell handle from the current I, J, K indexes |
| [`GetCellIJK`](#generated.RAFluentOneWayCoupling.GetCellIJK)(cell\_handle\[, time\_step]) | Converts the given cell handle to it's I, J, K indexes |
| [`GetCellNumberOfVertices`](#generated.RAFluentOneWayCoupling.GetCellNumberOfVertices)(cell\[, time\_step]) | Get an array containing the number of vertices of each cell. |
| [`GetCellPointsAsFunction`](#generated.RAFluentOneWayCoupling.GetCellPointsAsFunction)(\[time\_step]) | Get a function for the points (vertices) of each cell. |
| [`GetCellVolumeAsArray`](#generated.RAFluentOneWayCoupling.GetCellVolumeAsArray)(\[time\_step]) | Get an array with the volume of each cell. |
| [`GetConvectiveHeatTransferLaw`](#generated.RAFluentOneWayCoupling.GetConvectiveHeatTransferLaw)() | Get the current "Convective Heat Transfer Law". |
| [`GetCurve`](#generated.RAFluentOneWayCoupling.GetCurve)(curve\_name\[, simulation\_name, ...]) | Override base class method to check for a request of a grid function statistic. |
| [`GetCurveNames`](#generated.RAFluentOneWayCoupling.GetCurveNames)(\[simulation\_name]) | @param simulation\_name: unicode |
| [`GetCurveNamesAssociation`](#generated.RAFluentOneWayCoupling.GetCurveNamesAssociation)(\[simulation\_name]) | Get this element's curve names. |
| [`GetDragLaw`](#generated.RAFluentOneWayCoupling.GetDragLaw)() | Get the current "Drag Law". |
| [`GetElementCurve`](#generated.RAFluentOneWayCoupling.GetElementCurve)(element\_name, curve\_name\[, ...]) | Return the curves for the given element and name. |
| [`GetFacePositions`](#generated.RAFluentOneWayCoupling.GetFacePositions)(\[time\_step]) | Get the index of the faces. |
| [`GetFaceVertices`](#generated.RAFluentOneWayCoupling.GetFaceVertices)(\[time\_step]) | Get the index of the vertices for all faces. |
| [`GetGeometryQuantity`](#generated.RAFluentOneWayCoupling.GetGeometryQuantity)() | Get the quantity corresponding to the grid's geometry. |
| [`GetGeometryTransform`](#generated.RAFluentOneWayCoupling.GetGeometryTransform)(\[time\_step]) | Get the geometry transform for the grid at the given time step. |
| [`GetGeometryUnit`](#generated.RAFluentOneWayCoupling.GetGeometryUnit)() | Get the grid's geometry's unit. |
| [`GetGridFunction`](#generated.RAFluentOneWayCoupling.GetGridFunction)(grid\_function\_name\[, ...]) | Gets a grid function given its name. |
| [`GetGridFunctionNames`](#generated.RAFluentOneWayCoupling.GetGridFunctionNames)(\[translated, context]) | Overridden to filter out deprecated property names. |
| [`GetIsOneWayPeriodic`](#generated.RAFluentOneWayCoupling.GetIsOneWayPeriodic)() | Get the value of "Is One Way Periodic". |
| [`GetLiftLaw`](#generated.RAFluentOneWayCoupling.GetLiftLaw)() | Get the current "Lift Law". |
| [`GetMeshColoring`](#generated.RAFluentOneWayCoupling.GetMeshColoring)(window) | Get the RAMeshColoring related to the current object and a window. |
| [`GetMorsiAndAlexanderK1`](#generated.RAFluentOneWayCoupling.GetMorsiAndAlexanderK1)() | Get the current "Morsi And Alexander K1". |
| [`GetMorsiAndAlexanderK2`](#generated.RAFluentOneWayCoupling.GetMorsiAndAlexanderK2)() | Get the current "Morsi And Alexander K2". |
| [`GetMorsiAndAlexanderK3`](#generated.RAFluentOneWayCoupling.GetMorsiAndAlexanderK3)() | Get the current "Morsi And Alexander K3". |
| [`GetNumberOfCells`](#generated.RAFluentOneWayCoupling.GetNumberOfCells)(\[time\_step]) | Get the total number of cells. |
| [`GetNumberOfNodes`](#generated.RAFluentOneWayCoupling.GetNumberOfNodes)(\[time\_step]) | Get the total number of nodes (vertices). |
| [`GetNumpyCurve`](#generated.RAFluentOneWayCoupling.GetNumpyCurve)(curve\_name\[, unit, realization]) | Returns a curve as a tuple of numpy arrays (time, property) for the given element and name. |
| [`GetOutputVariableValue`](#generated.RAFluentOneWayCoupling.GetOutputVariableValue)(variable\_name) | Get the value of a previously-created output variable. |
| [`GetOverwriteCfdUpdateDistance`](#generated.RAFluentOneWayCoupling.GetOverwriteCfdUpdateDistance)() | Get the value of "Overwrite Cfd Update Distance". |
| [`GetStartTime`](#generated.RAFluentOneWayCoupling.GetStartTime)(\[unit]) | Get the value of "Start Time". |
| [`GetSyamlalObrienC1`](#generated.RAFluentOneWayCoupling.GetSyamlalObrienC1)() | Get the current "Syamlal Obrien C1". |
| [`GetSyamlalObrienD1`](#generated.RAFluentOneWayCoupling.GetSyamlalObrienD1)() | Get the current "Syamlal Obrien D1". |
| [`GetTimeSet`](#generated.RAFluentOneWayCoupling.GetTimeSet)() | Get the list of time-steps associated to the grid. |
| [`GetTimeStatistics`](#generated.RAFluentOneWayCoupling.GetTimeStatistics)() | Get the object responsible for handling time-statistics grid functions for this process. |
| [`GetTimeStep`](#generated.RAFluentOneWayCoupling.GetTimeStep)(time\_step\[, accept\_global]) | Get the timestep corresponding to the given time. |
| [`GetTopologyShape`](#generated.RAFluentOneWayCoupling.GetTopologyShape)(\[time\_step]) | Get the shape of the topology (similar to the shape of numpy arrays). |
| [`GetTorqueLaw`](#generated.RAFluentOneWayCoupling.GetTorqueLaw)() | Get the current "Torque Law". |
| [`GetUseTurbulentDispersion`](#generated.RAFluentOneWayCoupling.GetUseTurbulentDispersion)() | Get the value of "Use Turbulent Dispersion". |
| [`GetUseUserDefinedConstants`](#generated.RAFluentOneWayCoupling.GetUseUserDefinedConstants)() | Get the current "Use User Defined Constants". |
| [`GetUserCfdUpdateDistance`](#generated.RAFluentOneWayCoupling.GetUserCfdUpdateDistance)(\[unit]) | Get the value of "User Cfd Update Distance". |
| [`GetVertices`](#generated.RAFluentOneWayCoupling.GetVertices)(\[time\_step]) | Get the geometry vertices of the grid at the given time step. |
| [`GetVirtualMassLaw`](#generated.RAFluentOneWayCoupling.GetVirtualMassLaw)() | Get the current "Virtual Mass Law". |
| [`HasGridFunction`](#generated.RAFluentOneWayCoupling.HasGridFunction)(grid\_function\_name) | Whether the grid has the given grid function. |
| [`IsCellActive`](#generated.RAFluentOneWayCoupling.IsCellActive)(i, j, k\[, time\_step]) | Checks if the given cell is active or not |
| [`IterCellVertices`](#generated.RAFluentOneWayCoupling.IterCellVertices)(cell\[, time\_step]) | Iterate on the vertices of active grid cells at the given time. |
| [`IterCells`](#generated.RAFluentOneWayCoupling.IterCells)(\[time\_step]) | Iterate on the active grid cells at the given time. |
| [`Modified`](#generated.RAFluentOneWayCoupling.Modified)(\*args, \*\*kwargs) | Resets all the cache information after a change in the subject being tracked. |
| [`RemoveCustomCurve`](#generated.RAFluentOneWayCoupling.RemoveCustomCurve)(name) | Remove the curve from the database :param name:     The name of the curve to be removed. |
| [`RemoveCustomProperty`](#generated.RAFluentOneWayCoupling.RemoveCustomProperty)(name) | Remove the property from the database :param name:     The name of the property to be removed. |
| [`RemoveOutputVariable`](#generated.RAFluentOneWayCoupling.RemoveOutputVariable)(variable\_name) | Removes some output variable. |
| [`RemoveProcess`](#generated.RAFluentOneWayCoupling.RemoveProcess)() | Removes the process from the project. |
| [`SetConvectiveHeatTransferLaw`](#generated.RAFluentOneWayCoupling.SetConvectiveHeatTransferLaw)(value) | Set the current "Convective Heat Transfer Law". |
| [`SetCurrentTimeStep`](#generated.RAFluentOneWayCoupling.SetCurrentTimeStep)(time\_step) | Sets the current time step. |
| [`SetDragLaw`](#generated.RAFluentOneWayCoupling.SetDragLaw)(value) | Set the current "Drag Law". |
| [`SetIsOneWayPeriodic`](#generated.RAFluentOneWayCoupling.SetIsOneWayPeriodic)(value) | Set the value of "Is One Way Periodic". |
| [`SetLiftLaw`](#generated.RAFluentOneWayCoupling.SetLiftLaw)(value) | Set the current "Lift Law". |
| [`SetMorsiAndAlexanderK1`](#generated.RAFluentOneWayCoupling.SetMorsiAndAlexanderK1)(value) | Set the current "Morsi And Alexander K1". |
| [`SetMorsiAndAlexanderK2`](#generated.RAFluentOneWayCoupling.SetMorsiAndAlexanderK2)(value) | Set the current "Morsi And Alexander K2". |
| [`SetMorsiAndAlexanderK3`](#generated.RAFluentOneWayCoupling.SetMorsiAndAlexanderK3)(value) | Set the current "Morsi And Alexander K3". |
| [`SetOverwriteCfdUpdateDistance`](#generated.RAFluentOneWayCoupling.SetOverwriteCfdUpdateDistance)(value) | Set the value of "Overwrite Cfd Update Distance". |
| [`SetPartIdIfValid`](#generated.RAFluentOneWayCoupling.SetPartIdIfValid)() | Subclasses should implement this method if it's a Process with visualization |
| [`SetStartTime`](#generated.RAFluentOneWayCoupling.SetStartTime)(value\[, unit]) | Set the value of "Start Time". |
| [`SetSyamlalObrienC1`](#generated.RAFluentOneWayCoupling.SetSyamlalObrienC1)(value) | Set the current "Syamlal Obrien C1". |
| [`SetSyamlalObrienD1`](#generated.RAFluentOneWayCoupling.SetSyamlalObrienD1)(value) | Set the current "Syamlal Obrien D1". |
| [`SetTorqueLaw`](#generated.RAFluentOneWayCoupling.SetTorqueLaw)(value) | Set the current "Torque Law". |
| [`SetUseTurbulentDispersion`](#generated.RAFluentOneWayCoupling.SetUseTurbulentDispersion)(value) | Set the value of "Use Turbulent Dispersion". |
| [`SetUseUserDefinedConstants`](#generated.RAFluentOneWayCoupling.SetUseUserDefinedConstants)(value) | Set the current "Use User Defined Constants". |
| [`SetUserCfdUpdateDistance`](#generated.RAFluentOneWayCoupling.SetUserCfdUpdateDistance)(value\[, unit]) | Set the value of "User Cfd Update Distance". |
| [`SetVirtualMassLaw`](#generated.RAFluentOneWayCoupling.SetVirtualMassLaw)(value) | Set the current "Virtual Mass Law". |
| [`SetupStoreFiles`](#generated.RAFluentOneWayCoupling.SetupStoreFiles)(filename) | Set the file with Fluent to Rocky information. |

#### AddCurve(curve\_name, timesteps, values, unit, realization=None, timesteps\_unit=None, initial\_date=None)

Add a curve to the element with a time-steps domain

* **Parameters:**
  * **curve\_name** (*unicode* *or* *SemanticAssociation*) – The curve’s name or semantic association
  * **timesteps** (*list* \*(\**TimeStep* *) or* *list* \*(\**float* *) or* *TimeSet*) – The list of time-steps, in such case a initial date can be provided
    The list of elapsed time as floats, in such case a timesteps\_units can be
    provide or days will be used
    The curve’s TimeSet
  * **values** (*list* \*(\**float* *)*) – The list of curve image values
  * **unit** (*unicode* *or* *Quantity*) – The curve image unit or quantity
  * **realization** (*unicode*) – An additional keyword to identify the curve realization
  * **timesteps\_units** (*unicode*) – The elapsed time values unit
    It should be given if a list of floats is used to define the time-set
    If not given days are assumed
  * **initial\_date** (*tuple* \*(\**int* *,* *int* *,* *int* *,* *int* *,* *int* *,* *int* *) or* *TimeStep*) – The initial date for the time-steps given
    A tuple with the year, month, day, hour, minute and seconds
    Or a TimeStep

#### AddCustomCurve(name: str, curve\_type: str = 'simple', output\_unit: str = '\<unknown>', scope: str = 'user', sources: dict\[str, str] | None = None, expression: str = '')

Add a custom curve in the database.
:param name:

> The name of the curve to be set.

* **Parameters:**
  * **curve\_type** – The type of the custom curve to be added.
  * **output\_unit** – The output unit, in which case the unit database will be queried for a quantity that makes sense.
    If None, the quantity is considered unknown.
  * **scope** – The scope to be set.
  * **sources** – A dict pointing the variable used to the curve association it represents and a
    string indicating in which unit the input data should be gotten.
  * **expression** – The expression to be set.

#### AddCustomProperty(name: str, property\_type: str = 'simple', output\_unit: str = '\<unknown>', scope: str = 'user', sources: dict\[str, str] | None = None, expression: str = '')

Add a custom property to the database

* **Parameters:**
  * **name** – The name of the property to be set.
  * **property\_type** – The type of the custom property to be added.
  * **output\_unit** – The output unit, in which case the unit database will be queried for a quantity that makes sense.
    If None, the quantity is considered unknown.
  * **scope** – The scope to be set.
  * **sources** – A dict pointing the variable used to the property association it represents and a
    string indicating in which unit the input data should be gotten.
  * **expression** – The expression to be set.

#### AddGridFunction(grid\_function\_name, grid\_function, unit: str | IQuantity = '\<unknown>', location: str = 'cell', realization: str = 'user\_generated', time\_step: str | int | ITimeStep | None = None)

Adds a grid function to the grid.

* **Parameters:**
  * **grid\_function\_name** (*unicode* *or* *SemanticAssociation*) – The name of the grid function to be stored in this grid or the semantic association
    representing the grid function.
  * **grid\_function** (*list* \*(\**double* *) or* *numpy array*) – The values of the grid function to be added.
  * **unit** (*unicode* *or* *IQuantity*) – The unit (or quantity) in which the grid function is being given.
  * **location** (*unicode*) – The location of the grid function (currently only ‘cell’ is accepted).
  * **realization** (*unicode*) – The realization used to identify the grid function among other grid functions. If None,
    this information is ignored.
  * **time\_step** – if None if given a static grid function will be created otherwise a transient grid
    function is created and the given array associated with this time-step

#### SEE ALSO

KAContextDependentElement.GetTimeStep

#### CreateCoupledBoundaries(coupled\_boundary\_names: list\[str])

Create a coupled boundary for each of the coupled boundary name passed by the user.
Check GetAvailableCoupledBoundaryNames to obtain the list of available boundaries.

#### CreateCurveOutputVariable(curve\_name: str, operation: str = 'max', time\_range: str = 'all', initial\_time\_range: float = 0.0, final\_time\_range: float = 0.0)

Used to create an output variable based on a curve which doesn’t change at each new timestep
(i.e.: a curve with a single value for each time).

* **See:**
  CreateTransientCurveOutputVariable for dealing with curves that are transient.
* **Parameters:**
  * **curve\_name** – The name of the curve for which the output variable is wanted.
  * **operation** –

    The operation we want to do to convert the curve into a single value.

    Valid operations:
    : ’min’
    ‘max’
    ‘sum’
    ‘sum\_squared’
    ‘average’
    ‘variance’
    ‘standard\_deviation’
  * **time\_range** –

    Defines the time range for the curve to be gathered for creating the output
    variable (depending on which time range is chosen, the initial\_time\_range and the
    final\_time\_range may be used to get the actual times for computing the statistics).

    Valid time ranges:
    : ’app\_time\_filter’:
    : Uses the application time filter to get the relevant times.

    ’all’
    : Uses all the times in the simulation.

    ’last\_output’
    : Uses only the last time in the simulation.

    ’absolute’
    : Defines a time range using the initial\_time\_range and final\_time\_range.

    ’single’
    : Defines a single time to be used as the time range specified as the
    initial\_time\_range.

    ’absolute\_only\_start’
    : Defines a time range using all the values after the given initial\_time\_range.

    ’relative\_to\_end’
    : Uses all the values considering initial\_time\_range as a delta from the end of
    the simulation.
  * **initial\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
  * **final\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
* **Return type:**
  str
* **Returns:**
  Returns the name of the variable to be used later on to reference the output variable.

#### CreateGridFunction(values: list\[float] | ndarray, location: str = 'cell', time\_step: str | int | ITimeStep = 'current')

Create a grid function from the given values, location and time-step.

* **Parameters:**
  * **values** – The values of the grid function to be added.
  * **time\_step** – if None if given a static grid function will be created otherwise a transient grid
    function is created and the given array associated with this time-step
* **Returns:**
  The created grid function.

#### CreateGridFunctionArrayOnCells(time\_step: str | int | ITimeStep = 'current')

Creates a numpy array with the number of elements based on the cells and returns it. A
different time may be specified to create the grid function based on a different time.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to create the array
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  Returns a numpy float32 array with the number of elements equal to the number of cells.

#### CreateGridFunctionStatisticOutputVariable(grid\_function\_name: str, operation: str = 'max', statistic\_operation: str = 'max', time\_range: str = 'last\_output', initial\_time\_range: float = 0.0, final\_time\_range: float = 0.0)

Used to create an output variable based on a grid function statistic (i.e.: will get a
grid function, compute its statistic based on statistic\_operation and then based on
the statistic values will apply the operation to get a single scalar).

* **Parameters:**
  * **grid\_function\_name** – The name of the grid function for which the output variable is wanted.
  * **operation** –

    The operation used to select which value to get based on the statistic values obtained.

    Valid operations:
    : ’min’
    ‘max’
    ‘sum’
    ‘sum\_squared’
    ‘average’
    ‘variance’
    ‘standard\_deviation’
  * **statistic\_operation** –

    The statistic operation which should be applied to the grid function for each time to
    obtain a single value for each time.

    Valid operations:
    : ’min’
    ‘max’
    ‘sum’
    ‘sum\_squared’
    ‘average’
    ‘variance’
    ‘standard\_deviation’
  * **time\_range** –

    Defines the time range for the grid functions to be gathered for creating the output
    variable (depending on which time range is chosen, the initial\_time\_range and the
    final\_time\_range may be used to get the actual times for computing the statistics).

    Valid time ranges:
    : ’app\_time\_filter’:
    : Uses the application time filter to get the relevant times.

    ’all’
    : Uses all the times in the simulation.

    ’last\_output’
    : Uses only the last time in the simulation.

    ’absolute’
    : Defines a time range using the initial\_time\_range and final\_time\_range.

    ’single’
    : Defines a single time to be used as the time range specified as the
    initial\_time\_range.

    ’absolute\_only\_start’
    : Defines a time range using all the values after the given initial\_time\_range.

    ’relative\_to\_end’
    : Uses all the values considering initial\_time\_range as a delta from the end of
    the simulation.
  * **initial\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
  * **final\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
* **Returns:**
  Returns the name of the variable to be used later on to reference the output variable.

#### CreateTransientCurveOutputVariable(curve\_name: str, operation: str = 'max', time\_operation: str = 'max', time\_range: str = 'last\_output', initial\_time\_range: float = 0.0, final\_time\_range: float = 0.0, domain\_range: str = 'all', initial\_domain\_range: float = 0.0, final\_domain\_range: float = 0.0, domain\_unit: str | None = None)

Used to create an output variable based on a curve for which there’s a completely new
representation for each time step – such as Power : Impact X Belt Width
(i.e.: will get the curve multiple times based on the time range, compute a value for each
time based on the operation, to convert the multiple curves into a single curve and then
will apply the time\_operation to get a single scalar from those values).

* **Parameters:**
  * **curve\_name** – The name of the transient curve for which the output variable is wanted.
  * **operation** –

    The operation we want to do at the curve in each time (i.e.: go from transient curve
    to a regular curve).

    Valid operations:
    : ’min’
    ‘max’
    ‘sum’
    ‘sum\_squared’
    ‘average’
    ‘variance’
    ‘standard\_deviation’
  * **time\_operation** –

    The operation that we want to do at the curve when the curve is already converted to
    a regular time-based curve (by applying the ‘operation’ at each time).

    Valid operations:
    : ’min’
    ‘max’
    ‘sum’
    ‘sum\_squared’
    ‘average’
    ‘variance’
    ‘standard\_deviation’
  * **time\_range** –

    Defines the time range for the curve to be gathered for creating the output
    variable (depending on which time range is chosen, the initial\_time\_range and the
    final\_time\_range may be used to get the actual times for computing the statistics).

    Valid time ranges:
    : ’app\_time\_filter’:
    : Uses the application time filter to get the relevant times.

    ’all’
    : Uses all the times in the simulation.

    ’last\_output’
    : Uses only the last time in the simulation.

    ’absolute’
    : Defines a time range using the initial\_time\_range and final\_time\_range.

    ’single’
    : Defines a single time to be used as the time range specified as the
    initial\_time\_range.

    ’absolute\_only\_start’
    : Defines a time range using all the values after the given initial\_time\_range.

    ’relative\_to\_end’
    : Uses all the values considering initial\_time\_range as a delta from the end of
    the simulation.
  * **initial\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
  * **final\_time\_range** – A value in seconds (whose actual meaning depends on the defined time\_range).
  * **domain\_range** –

    Define the domain range for the curve to create the output variable

    Valid domain\_range:
    : ’all’
    : Uses all the domain in the simulation

    ’single’
    : Defines a single time to be used as the time range specified as the initial\_domain\_range

    ’absolute’
    : Defines a domain range using the initial\_domain\_range and final\_domain\_range.
  * **initial\_domain\_range** – A value for the beginning of the domain (whose actual meaning depends on the defined domain\_range).
  * **final\_domain\_range** – A value for the end of the domain (whose actual meaning depends on the defined domain\_range).
  * **domain\_unit** – A unit for the domain\_range
* **Return type:**
  str
* **Returns:**
  Returns the name of the variable to be used later on to reference the output variable.

#### EditCustomCurve(edit\_curve: str, new\_name: str | None = None, sources: dict\[str, str] | None = None, expression: str | None = None)

Edit a custom curve saved in the database.
:param edit\_curve:

> The name of the curve to be edited.

* **Parameters:**
  * **new\_name** – The new name of the curve to be set.
  * **sources** – A dict pointing the variable used to the curve association it represents and a
    string indicating in which unit the input data should be gotten.
  * **expression** – The expression to be set.

#### EditCustomProperty(edit\_property: str, new\_name: str | None = None, sources: dict\[str, str] | None = None, expression: str | None = None)

Edit a custom property saved in the database.
:param edit\_property:

> The name of the property to be edited.

* **Parameters:**
  * **new\_name** – The new name of the property to be set.
  * **sources** – A dict pointing the variable used to the property association it represents and a
    string indicating in which unit the input data should be gotten.
  * **expression** – The expression to be set.

#### GetActivesArray(time\_step: str | int | ITimeStep = 'current')

Get an array representing the cells’ “active” status.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the actives array
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  Returns a numpy array with booleans where True means the cell is active and False
  means it’s not active.

#### GetAvailableCoupledBoundaryNames()

Obtain the names of the boundaries available for coupling in the fluent file.

#### GetBoundingBox(unit: str | None = None, time\_step: str | int | ITimeStep = 'current')

Get the element’s bounding box.

* **Parameters:**
  * **unit** – The unit in which the bounding box should be gotten (by default it uses the same
    unit of the geometry).
  * **time\_step** – Either a ‘current’ string with meaning the current time step
    or an ITimeStep identifying the time to get the bounding box
    or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The minimum and maximum geometry coordinates of the grid or None if the
  time step is not available at the requested time.

#### GetCFDParametersList()

Get the list of per-Particle CFD parameter sets.

* **Return type:**
  [RACFDParametersList](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDParametersList.md#generated.RACFDParametersList)

#### GetCellAreaAsArray(time\_step: str | int | ITimeStep = 'current')

Get an array containing the area of each cell.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the cell volume
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  An array with the cell area (the unit will be the geometry unit \*\* 2)

#### GetCellCenterAsArray(time\_step: str | int | ITimeStep = 'current')

Get an array containing the center coordinates of each cell.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the cell center
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  An array with the cell center coordinates (each element will be a point to the center of
  the cell).

#### GetCellDzAsArray(time\_step: str | int | ITimeStep = 'current')

Get an array containing the thickness (in Z) of each cell.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the cell dz
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  An array with cell thicknesses computed in the Z direction.

#### GetCellFromIJK(i: int, j: int, k: int, time\_step: str | int | ITimeStep = 'current')

Creates a grid cell handle from the current I, J, K indexes

* **Parameters:**
  * **i** – The topological I cell index
  * **j** – The topological J cell index
  * **k** – The topological K cell index
  * **time\_step** – Either a ‘current’ string with meaning the current time step
    or an ITimeStep identifying the time to get the cell from the i, j, k
    or an int identifying the time step index to be used based on the global time set
* **Returns:**
  Returns the cell handle to be used for the given I, J, K indexes.
  Or None if the given I, J and K indexes are invalid or refer to an inactive cell
* **Raises:**
  **IndexError** – An IndexError is raised if the cell is inactive or out of range.

#### GetCellIJK(cell\_handle: int, time\_step: str | int | ITimeStep = 'current')

Converts the given cell handle to it’s I, J, K indexes

* **Parameters:**
  * **cell\_handle** – The cell handle
  * **time\_step** – Either a ‘current’ string with meaning the current time step
    or an ITimeStep identifying the time to get the i, j, k from the cell.
    or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The cell I, J, K indexes

#### GetCellNumberOfVertices(cell: int, time\_step: str | int | ITimeStep = 'current')

Get an array containing the number of vertices of each cell.

* **Parameters:**
  * **cell\_handle** – The cell handle
  * **time\_step** – Either a ‘current’ string with meaning the current time step
    or an ITimeStep identifying the time to get the number of vertices for the given cell
    or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The total number of vertices on the given cell

#### GetCellPointsAsFunction(time\_step: str | int | ITimeStep = 'current')

Get a function for the points (vertices) of each cell.

* **Parameters:**
  **time\_step** (*unicode* *,* *ITimeStep* *or* *int*) – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the cell points
  or an int identifying the time step index to be used based on the global time set
* **Return type:**
  PointsFunction
* **Returns:**
  A function that provides access to the points of a cell (i.e.: vertices).

#### NOTE

Each point from a cell must be accessed by a tuple(cell\_handle, point\_id). In a
reservoir grid, the point id is a value from 0 to 7.

@usage:

```text theme={null}
#To get vertex 0 of a cell:
points_function = grid.GetCellPointsAsFunction()
cell = grid.GetCellFromIJK(0, 0, 0)
x, y, z = points_function[(cell, 0)]

#To iterate over all the vertices of a cell:
points_function = grid.GetCellPointsAsFunction()
cell = grid.GetCellFromIJK(0, 0, 0)
for vertex in grid.IterCellVertices(cell):
    x, y, z = points_function[vertex]
```

#### GetCellVolumeAsArray(time\_step: str | int | ITimeStep = 'current')

Get an array with the volume of each cell.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the cell volume
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  An array with the cell volume (the unit will be the geometry unit \*\* 3)

#### GetConvectiveHeatTransferLaw()

Get the current “Convective Heat Transfer Law”. This is a shortcut to access the “Convective Heat Transfer Law” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetConvectiveHeatTransferLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetConvectiveHeatTransferLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Convective Heat Transfer Law”.

#### GetCurve(curve\_name, simulation\_name=None, realization=None, time\_step: str | int | ITimeStep | None = None)

Override base class method to check for a request of a grid function statistic.

#### GetCurveNames(simulation\_name=None)

@param simulation\_name: unicode
: An optional parameter for defining the simulation to get the curve from.

* **Returns:**
  list(str)
  The list of curve names

#### GetCurveNamesAssociation(simulation\_name=None)

Get this element’s curve names.

* **Parameters:**
  **simulation\_name** (*unicode*) – The name of the simulation to query the curve names
  If None is given the current element simulation will be used
* **Return type:**
  dict(unicode, ISemanticAssociation)
* **Returns:**
  The curve names for this element in the given simulation name

#### GetDragLaw()

Get the current “Drag Law”. This is a shortcut to access the “Drag Law” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetDragLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetDragLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Drag Law”.

#### GetElementCurve(element\_name, curve\_name, simulation\_name=None, realization=None, time\_step=None)

Return the curves for the given element and name.

* **Parameters:**
  * **element\_name** (*unicode*) – The name of the element
  * **curve\_name** (*unicode*) – The name of the curve
  * **simulation\_name** (*unicode*) – An optional parameter for defining the simulation to get the curve from.
  * **realization** (*unicode*) – An additional keyword to identify the curve realization
  * **time\_step** (*TimeStep*) – For transient curves a time-step must be given.

#### GetFacePositions(time\_step: str | int | ITimeStep = 'current')

Get the index of the faces. Use this in conjunction with GetFaceVertices to obtain
the index of vertices in each face.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the geometry transform
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  a numpy array with the face index of the grid at the given time step.

#### GetFaceVertices(time\_step: str | int | ITimeStep = 'current')

Get the index of the vertices for all faces. Use this in conjunction with GetFacePositions
to obtain the index of vertices in each face. The index is related to the vertices obtained
via GetVertices.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the geometry transform
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  a numpy array with the vertices index of the grid at the given time step.

#### GetGeometryQuantity()

Get the quantity corresponding to the grid’s geometry.

* **Returns:**
  The grid geometry quantity

#### GetGeometryTransform(time\_step: str | int | ITimeStep = 'current')

Get the geometry transform for the grid at the given time step. This should be used in
conjunction with GetVertices to obtain the transformed vertices of the grid.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the geometry transform
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The geometry transform as a tuple of (translation, rotation) or None if the
  object has no motion frame associated to it.

#### GetGeometryUnit()

Get the grid’s geometry’s unit.

* **Returns:**
  The unit for the grid geometry

#### GetGridFunction(grid\_function\_name, simulation\_name=None, translated=False)

Gets a grid function given its name. It provides a representation that’s valid for all times,
so, one can do: grid.GetGridFunction(‘Pressure’).GetMax()

To get the values of a given time, use:

```python theme={null}
time_set = grid.GetTimeSet()
grid.GetGridFunction('Temperature').GetArray(unit='degC', time_step=time_set[10])
```

#### NOTE

if it’s used without a time parameter, it’ll get the array at the current application time.

* **Parameters:**
  * **grid\_function\_name** – The name of the grid function to be gotten in this grid.
  * **simulation\_name** – An optional parameter for defining the simulation to get the grid function from.
  * **translated** – If False, the internal names of the grid functions will be returned, otherwise, the
    name returned will be the translated name (based on the settings chosen on how
    to see grid functions – i.e.: Cognitive, ECLIPSE, IMEX).
* **Returns:**
  The grid function found
* **Raises:**
  **ValueError** – if the grid function is not found.

#### GetGridFunctionNames(translated: bool = False, context: str | None = None)

Overridden to filter out deprecated property names.

#### GetIsOneWayPeriodic()

Get the value of “Is One Way Periodic”.

#### GetLiftLaw()

Get the current “Lift Law”. This is a shortcut to access the “Lift Law” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetLiftLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetLiftLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Lift Law”.

#### GetMeshColoring(window: str | KAWorkspaceWindow)

Get the RAMeshColoring related to the current object and a window.

* **Parameters:**
  **window** – The window that the coloring is acting. The window must be a str of the name of the
  window or a KAWorkspaceWindow.
* **Raises:**
  **RockyApiError** – If window is not a str or KAWorkspaceWindow. Additionally, raises an error if no window
  is found or no coloring for the given item exists.

#### GetMorsiAndAlexanderK1()

Get the current “Morsi And Alexander K1”. This is a shortcut to access the “Morsi And Alexander K1” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetMorsiAndAlexanderK1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetMorsiAndAlexanderK1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Morsi And Alexander K1”.

#### GetMorsiAndAlexanderK2()

Get the current “Morsi And Alexander K2”. This is a shortcut to access the “Morsi And Alexander K2” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetMorsiAndAlexanderK2()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetMorsiAndAlexanderK2)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Morsi And Alexander K2”.

#### GetMorsiAndAlexanderK3()

Get the current “Morsi And Alexander K3”. This is a shortcut to access the “Morsi And Alexander K3” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetMorsiAndAlexanderK3()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetMorsiAndAlexanderK3)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Morsi And Alexander K3”.

#### GetNumberOfCells(time\_step: str | int | ITimeStep = 'current')

Get the total number of cells.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the number of cells
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The total number of cells

#### GetNumberOfNodes(time\_step: str | int | ITimeStep = 'current')

Get the total number of nodes (vertices).

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the number of cells
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The total number of nodes/vertices

#### GetNumpyCurve(curve\_name, unit=None, realization=None)

Returns a curve as a tuple of numpy arrays (time, property) for the given element and name.

#### GetOutputVariableValue(variable\_name: str)

Get the value of a previously-created output variable.

* **Parameters:**
  **variable\_name** (*unicode*) – The variable name whose value we want.
* **Returns:**
  Returns a scalar with the value and unit for the given variable\_name or None if no
  variable was found with the given name or if it couldn’t be computed.

#### GetOverwriteCfdUpdateDistance()

Get the value of “Overwrite Cfd Update Distance”.

#### GetStartTime(unit: str | None = None)

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”.

#### GetSyamlalObrienC1()

Get the current “Syamlal Obrien C1”. This is a shortcut to access the “Syamlal Obrien C1” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetSyamlalObrienC1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetSyamlalObrienC1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Syamlal Obrien C1”.

#### GetSyamlalObrienD1()

Get the current “Syamlal Obrien D1”. This is a shortcut to access the “Syamlal Obrien D1” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetSyamlalObrienD1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetSyamlalObrienD1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Syamlal Obrien D1”.

#### GetTimeSet()

Get the list of time-steps associated to the grid.

* **Returns:**
  The list of time-steps associated to the grid

#### GetTimeStatistics()

Get the object responsible for handling time-statistics grid functions for this process.
This call will return None if the process doesn’t support time statistics.

#### GetTimeStep(time\_step, accept\_global=False)

Get the timestep corresponding to the given time.

* **Parameters:**
  * **time\_step** (*unicode* *,* *ITimeStep* *or* *int*) –

    Either a string with
    : ’current’ identifying the current time step
    ‘global’ identifying that the global limits should be gotten
    (note that if accept\_global=False and ‘global’ is passed, an error is raised).

    or an ITimeStep identifying the time to get the limits

    or an int identifying the time step index to be used based on the global time set
  * **accept\_global** (*bool*) – If True, a global time step is accepted (and returns None), otherwise, an error is
    raised if ‘global’ is passed.
* **Return type:**
  ITimeStep
* **Returns:**
  Returns the time step to be used or None if accept\_global == True and the time
  step passed is ‘global’.

#### GetTopologyShape(time\_step: str | int | ITimeStep = 'current')

Get the shape of the topology (similar to the shape of numpy arrays).

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the topology shape
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  The grid shape as a tuple of the grid size in each topological dimension.

#### GetTorqueLaw()

Get the current “Torque Law”. This is a shortcut to access the “Torque Law” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetTorqueLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetTorqueLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Torque Law”.

#### GetUseTurbulentDispersion()

Get the value of “Use Turbulent Dispersion”.

#### GetUseUserDefinedConstants()

Get the current “Use User Defined Constants”. This is a shortcut to access the “Use User Defined Constants” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetUseUserDefinedConstants()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetUseUserDefinedConstants)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Use User Defined Constants”.

#### GetUserCfdUpdateDistance(unit: str | None = None)

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”.

#### GetVertices(time\_step: str | int | ITimeStep = 'current')

Get the geometry vertices of the grid at the given time step. This should be used in
conjunction with GetGeometryTransform to obtain the transformed vertices of the grid
at a given time\_step, otherwise it may return the vertices without any transformation.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get the geometry transform
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  a numpy array with the vertices of the grid at the given time step.

#### GetVirtualMassLaw()

Get the current “Virtual Mass Law”. This is a shortcut to access the “Virtual Mass Law” of the individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.GetVirtualMassLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.GetVirtualMassLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet, or if the [`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters)
  for the Particles have different values for the “Virtual Mass Law”.

#### HasGridFunction(grid\_function\_name: str)

Whether the grid has the given grid function.

* **Parameters:**
  **grid\_function\_name** – The name of the grid function to be checked.
* **Returns:**
  Returns True if the grid function exists and False otherwise.

#### IsCellActive(i: int, j: int, k: int, time\_step: str | int | ITimeStep = 'current')

Checks if the given cell is active or not

@param i, j, k:
: The cell i, j, k

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to get if the cell is active
  or an int identifying the time step index to be used based on the global time set
* **Returns:**
  True if the cell is active

#### IterCellVertices(cell: int, time\_step: str | int | ITimeStep = 'current')

Iterate on the vertices of active grid cells at the given time.

* **Parameters:**
  * **cell\_handle** – The cell handle
  * **time\_step** – Either a ‘current’ string with meaning the current time step
    or an ITimeStep identifying the time to iterate the vertices of a cell
    or an int identifying the time step index to be used based on the global time set
* **Return type:**
  vertex\_handle
* **Returns:**
  The iterator over all the cell’s vertices.

#### IterCells(time\_step: str | int | ITimeStep = 'current')

Iterate on the active grid cells at the given time.

* **Parameters:**
  **time\_step** – Either a ‘current’ string with meaning the current time step
  or an ITimeStep identifying the time to iterate the cells
  or an int identifying the time step index to be used based on the global time set
* **Return type:**
  iterator
* **Returns:**
  The iterator over all the active grid cells for the given time.

#### Modified(\*args, \*\*kwargs)

Resets all the cache information after a change in the subject being tracked.

#### RemoveCustomCurve(name: str)

Remove the curve from the database
:param name:

> The name of the curve to be removed.

#### RemoveCustomProperty(name: str)

Remove the property from the database
:param name:

> The name of the property to be removed.

#### RemoveOutputVariable(variable\_name: str)

Removes some output variable.

* **Parameters:**
  **variable\_name** – The name of the variable to be removed.

#### RemoveProcess()

Removes the process from the project.

#### SetConvectiveHeatTransferLaw(value)

Set the current “Convective Heat Transfer Law”. This is a shortcut to set the “Convective Heat Transfer Law” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetConvectiveHeatTransferLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetConvectiveHeatTransferLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetCurrentTimeStep(time\_step)

Sets the current time step.

* **Parameters:**
  **time\_step** (*ITimeStep*) – The time step to be considered the ‘current’ time step.

#### SetDragLaw(value)

Set the current “Drag Law”. This is a shortcut to set the “Drag Law” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetDragLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetDragLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetIsOneWayPeriodic(value: bool)

Set the value of “Is One Way Periodic”.

* **Parameters:**
  **value** – The value to set.

#### SetLiftLaw(value)

Set the current “Lift Law”. This is a shortcut to set the “Lift Law” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetLiftLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetLiftLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetMorsiAndAlexanderK1(value)

Set the current “Morsi And Alexander K1”. This is a shortcut to set the “Morsi And Alexander K1” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetMorsiAndAlexanderK1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetMorsiAndAlexanderK1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetMorsiAndAlexanderK2(value)

Set the current “Morsi And Alexander K2”. This is a shortcut to set the “Morsi And Alexander K2” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetMorsiAndAlexanderK2()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetMorsiAndAlexanderK2)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetMorsiAndAlexanderK3(value)

Set the current “Morsi And Alexander K3”. This is a shortcut to set the “Morsi And Alexander K3” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetMorsiAndAlexanderK3()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetMorsiAndAlexanderK3)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetOverwriteCfdUpdateDistance(value: bool)

Set the value of “Overwrite Cfd Update Distance”.

* **Parameters:**
  **value** – The value to set.

#### SetPartIdIfValid()

Subclasses should implement this method if it’s a Process with visualization

#### SetStartTime(value: str | float, unit: str | 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”.

#### SetSyamlalObrienC1(value)

Set the current “Syamlal Obrien C1”. This is a shortcut to set the “Syamlal Obrien C1” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetSyamlalObrienC1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetSyamlalObrienC1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetSyamlalObrienD1(value)

Set the current “Syamlal Obrien D1”. This is a shortcut to set the “Syamlal Obrien D1” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetSyamlalObrienD1()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetSyamlalObrienD1)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetTorqueLaw(value)

Set the current “Torque Law”. This is a shortcut to set the “Torque Law” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetTorqueLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetTorqueLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetUseTurbulentDispersion(value: bool)

Set the value of “Use Turbulent Dispersion”.

* **Parameters:**
  **value** – The value to set.

#### SetUseUserDefinedConstants(value)

Set the current “Use User Defined Constants”. This is a shortcut to set the “Use User Defined Constants” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetUseUserDefinedConstants()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetUseUserDefinedConstants)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetUserCfdUpdateDistance(value: str | float, unit: str | 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”.

#### SetVirtualMassLaw(value)

Set the current “Virtual Mass Law”. This is a shortcut to set the “Virtual Mass Law” of all individual
[`RACFDPerParticleParameters`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters) configured in the coupling.

See also [`RACFDPerParticleParameters.SetVirtualMassLaw()`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RACFDPerParticleParameters#generated.RACFDPerParticleParameters.SetVirtualMassLaw)

* **Raises:**
  **RockyApiError** – If there are no Particles in the project yet.

#### SetupStoreFiles(filename)

Set the file with Fluent to Rocky information.

* **Parameters:**
  **filename** (*str*) – The filename for the .f2r file.
