Skip to main content

Rocky PrePost scripting 2025 R1

RASPHEulerianSolution

Last update: 17.07.2025

class RASPHEulerianSolution

Rocky PrePost Scripting wrapper for SPH Eulerian Solution properties.

This wrapper corresponds to the “Eulerian Solution” item on a project’s data tree. Access it from the RAStudy with:

eulerian_solution = study.GetSphEulerianSolution()

Methods:

Name Description
DisableEulerianSolution() Set the value of "Eulerian Solution" to False.
EnableEulerianSolution() Set the value of "Eulerian Solution" to True.
GetEulerianSolutionEnabled() Delegates the method to the project sph settings.
GetMeshColoring(window) Get the RAMeshColoring related to the current object and a window.
IsEulerianSolutionEnabled() Check if the "Eulerian Solution" is enabled.
SetEulerianSolutionEnabled(value) Delegate the method to the project sph settings.

DisableEulerianSolution()

Set the value of “Eulerian Solution” to False.

EnableEulerianSolution()

Set the value of “Eulerian Solution” to True.

GetEulerianSolutionEnabled()

Delegates the method to the project sph settings.

GetMeshColoring(window: str | type['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.

IsEulerianSolutionEnabled()

Check if the “Eulerian Solution” is enabled.

SetEulerianSolutionEnabled(value: bool)

Delegate the method to the project sph settings.

  • Parameters: value – The value to set.

Connect with Ansys