RASPHSettings#
- class ansys.rocky.app.ra_sph_settings.RASPHSettings(id, model_id=None)#
Bases:
ansys.rocky.app.ra_grid_process_element.RAGridProcessElementItemRocky PrePost Scripting wrapper for SPH Settings properties.
This wrapper corresponds to the “SPH” item on a project’s data tree. Access it from the
RAStudywith:sph_settings = study.GetSphSettings() sph_settings = study.GetElement('SPH')
Overview#
Set the value of “Solver Model”. |
|
Get “Solver Model” as a string. |
|
Get the value of “C S”. |
|
Set the value of “C S”. |
|
Get the value of “Cleary Factor”. |
|
Set the value of “Cleary Factor”. |
|
Get the value of “Density Dev Minus”. |
|
Set the value of “Density Dev Minus”. |
|
Get the value of “Density Dev Plus”. |
|
Set the value of “Density Dev Plus”. |
|
Get the value of “Density Relative Error Tolerance”. |
|
Set the value of “Density Relative Error Tolerance”. |
|
Get the value of “Diss Factor”. |
|
Set the value of “Diss Factor”. |
|
Get the value of “Dist Factor Norm”. |
|
Set the value of “Dist Factor Norm”. |
|
Get the value of “Dist Factor Tang”. |
|
Set the value of “Dist Factor Tang”. |
|
Get the value of “Enabled”. |
|
Set the value of “Enabled”. |
|
Get the value of “Eulerian Solution Enabled”. |
|
Set the value of “Eulerian Solution Enabled”. |
|
Set the value of “Eulerian Solution” to True. |
|
Set the value of “Eulerian Solution” to False. |
|
Check if the “Eulerian Solution” is enabled. |
|
Get the value of “Free Surface Divergence Limit”. |
|
Set the value of “Free Surface Divergence Limit”. |
|
Get the value of “Incompressibility Relaxation Factor”. |
|
Set the value of “Incompressibility Relaxation Factor”. |
|
Get the value of “Kernel Dist Factor”. |
|
Set the value of “Kernel Dist Factor”. |
|
Get “Kernel Type” as a string. |
|
Set the value of “Kernel Type”. |
|
Get a list of all possible values for “Kernel Type”. |
|
Get the value of “Limit Turbulent Viscosity”. |
|
Set the value of “Limit Turbulent Viscosity”. |
|
Get the value of “Maximum Expected Velocity”. |
|
Set the value of “Maximum Expected Velocity”. |
|
Get the value of “Maximum Number of Iterations”. |
|
Set the value of “Maximum Number of Iterations”. |
|
Get the value of “Min Dist Factor”. |
|
Set the value of “Min Dist Factor”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Negative Pressure Factor”. |
|
Set the value of “Negative Pressure Factor”. |
|
Get the value of “Num Cell Steps”. |
|
Set the value of “Num Cell Steps”. |
|
Get the value of “Number of Steps”. |
|
Set the value of “Number of Steps”. |
|
Get “Pos Correction Type” as a string. |
|
Set the value of “Pos Correction Type”. |
|
Get a list of all possible values for “Pos Correction Type”. |
|
Get the value of “Pressure Deg”. |
|
Set the value of “Pressure Deg”. |
|
Get the value of “Pressure Under Relaxation Factor”. |
|
Set the value of “Pressure Under Relaxation Factor”. |
|
Get the value of “Relaxed Incompressibility Constraint Enabled”. |
|
Set the value of “Relaxed Incompressibility Constraint Enabled”. |
|
Set the value of “Relaxed Incompressibility Constraint” to True. |
|
Set the value of “Relaxed Incompressibility Constraint” to False. |
|
Check if the “Relaxed Incompressibility Constraint” is enabled. |
|
Get the value of “Shepard Filter On Density Enabled”. |
|
Set the value of “Shepard Filter On Density Enabled”. |
|
Set the value of “Shepard Filter On Density” to True. |
|
Set the value of “Shepard Filter On Density” to False. |
|
Check if the “Shepard Filter On Density” is enabled. |
|
Get the value of “Shepard Filter On Pressure Enabled”. |
|
Set the value of “Shepard Filter On Pressure Enabled”. |
|
Set the value of “Shepard Filter On Pressure” to True. |
|
Set the value of “Shepard Filter On Pressure” to False. |
|
Check if the “Shepard Filter On Pressure” is enabled. |
|
Get the value of “Shifting Factor”. |
|
Set the value of “Shifting Factor”. |
|
Get the value of “Size”. |
|
Set the value of “Size”. |
|
Get “Solver Model” as a string. |
|
Set the value of “Solver Model”. |
|
Get a list of all possible values for “Solver Model”. |
|
Get the value of “Sound Speed”. |
|
Set the value of “Sound Speed”. |
|
Get the value of “Stability Degree”. |
|
Set the value of “Stability Degree”. |
|
Get the value of “Stability Neg Factor”. |
|
Set the value of “Stability Neg Factor”. |
|
Get the value of “Stability Pos Factor”. |
|
Set the value of “Stability Pos Factor”. |
|
Get the value of “Stiff Factor”. |
|
Set the value of “Stiff Factor”. |
|
Get the value of “Surface Tension Boundary Angle”. |
|
Set the value of “Surface Tension Boundary Angle”. |
|
Get the value of “Surface Tension Boundary Fraction”. |
|
Set the value of “Surface Tension Boundary Fraction”. |
|
Get the value of “Surface Tension Coefficient”. |
|
Set the value of “Surface Tension Coefficient”. |
|
Get “Surface Tension Type” as a string. |
|
Set the value of “Surface Tension Type”. |
|
Get a list of all possible values for “Surface Tension Type”. |
|
Get the value of “Timestep Factor”. |
|
Set the value of “Timestep Factor”. |
|
Get the value of “Turb Distance Fraction”. |
|
Set the value of “Turb Distance Fraction”. |
|
Get “Turbulence Type” as a string. |
|
Set the value of “Turbulence Type”. |
|
Get a list of all possible values for “Turbulence Type”. |
|
Get the value of “Turbulent Prandtl”. |
|
Set the value of “Turbulent Prandtl”. |
|
Get the value of “Turbulent Viscosity Maximum Ratio”. |
|
Set the value of “Turbulent Viscosity Maximum Ratio”. |
|
Get the value of “Update Coupled Density”. |
|
Set the value of “Update Coupled Density”. |
|
Get the value of “Use Particles Neighbors List”. |
|
Set the value of “Use Particles Neighbors List”. |
|
Get “Viscosity Type” as a string. |
|
Set the value of “Viscosity Type”. |
|
Get a list of all possible values for “Viscosity Type”. |
|
Get “Viscous Force Integration” as a string. |
|
Set the value of “Viscous Force Integration”. |
|
Get a list of all possible values for “Viscous Force Integration”. |
|
Get the value of “Viscous Force Maximum Number of Iterations”. |
|
Set the value of “Viscous Force Maximum Number of Iterations”. |
|
Get the value of “Viscous Force Relative Error Tolerance”. |
|
Set the value of “Viscous Force Relative Error Tolerance”. |
|
Get the value of “Viscous Force Under Relaxation Factor”. |
|
Set the value of “Viscous Force Under Relaxation Factor”. |
|
Get the value of “Xsph Factor”. |
|
Set the value of “Xsph Factor”. |
|
Get the “Fluid Material”. |
|
Set the “Fluid Material”. |
|
Get all available Fluid Materials. |
Import detail#
from ansys.rocky.app.ra_sph_settings import RASPHSettings
Method detail#
- RASPHSettings.SetSolver(value: str) None#
Set the value of “Solver Model”.
- Parameters:
value – The value to set. Must be one of [‘WCSPH’, ‘IISPH’].
- Raises:
RockyApiError – If value is not a valid “Solver Model” option.
- RASPHSettings.GetSolver() str#
Get “Solver Model” as a string.
- Returns:
The returned value will be one of [‘WCSPH’, ‘IISPH’].
- RASPHSettings.SetCS(value: str | float) None#
Set the value of “C S”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetClearyFactor(value: str | float) None#
Set the value of “Cleary Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetDensityDevMinus(value: str | float) None#
Set the value of “Density Dev Minus”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetDensityDevPlus(value: str | float) None#
Set the value of “Density Dev Plus”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetDensityRelativeErrorTolerance() float#
Get the value of “Density Relative Error Tolerance”.
- RASPHSettings.SetDensityRelativeErrorTolerance(value: str | float) None#
Set the value of “Density Relative Error Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetDissFactor(value: str | float) None#
Set the value of “Diss Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetDistFactorNorm(value: str | float) None#
Set the value of “Dist Factor Norm”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetDistFactorTang(value: str | float) None#
Set the value of “Dist Factor Tang”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetEnabled(value: bool) None#
Set the value of “Enabled”.
- Parameters:
value – The value to set.
- RASPHSettings.SetEulerianSolutionEnabled(value: bool) None#
Set the value of “Eulerian Solution Enabled”.
- Parameters:
value – The value to set.
- RASPHSettings.GetFreeSurfaceDivergenceLimit() float#
Get the value of “Free Surface Divergence Limit”.
- RASPHSettings.SetFreeSurfaceDivergenceLimit(value: str | float) None#
Set the value of “Free Surface Divergence Limit”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetIncompressibilityRelaxationFactor() float#
Get the value of “Incompressibility Relaxation Factor”.
- RASPHSettings.SetIncompressibilityRelaxationFactor(value: str | float) None#
Set the value of “Incompressibility Relaxation Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetKernelDistFactor(value: str | float) None#
Set the value of “Kernel Dist Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetKernelType() str#
Get “Kernel Type” as a string.
- Returns:
The returned value will be one of [‘cubic’, ‘quintic’, ‘wendland’].
- RASPHSettings.SetKernelType(value: str) None#
Set the value of “Kernel Type”.
- Parameters:
value – The value to set. Must be one of [‘cubic’, ‘quintic’, ‘wendland’].
- Raises:
RockyApiError – If value is not a valid “Kernel Type” option.
- RASPHSettings.GetValidKernelTypeValues() list[str]#
Get a list of all possible values for “Kernel Type”.
- Returns:
The returned list is [‘cubic’, ‘quintic’, ‘wendland’].
- RASPHSettings.SetLimitTurbulentViscosity(value: bool) None#
Set the value of “Limit Turbulent Viscosity”.
- Parameters:
value – The value to set.
- RASPHSettings.GetMaximumExpectedVelocity(unit: str | None = None) float#
Get the value of “Maximum Expected Velocity”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RASPHSettings.SetMaximumExpectedVelocity(value: str | float, unit: str | None = None) None#
Set the value of “Maximum Expected Velocity”.
- 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/s”.
- RASPHSettings.SetMaximumNumberOfIterations(value: str | int) None#
Set the value of “Maximum Number of Iterations”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.SetMinDistFactor(value: str | float) None#
Set the value of “Min Dist Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RASPHSettings.SetNegativePressureFactor(value: str | float) None#
Set the value of “Negative Pressure Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetNumCellSteps(value: str | int) None#
Set the value of “Num Cell Steps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.SetNumberOfSteps(value: str | int) None#
Set the value of “Number of Steps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.GetPosCorrectionType() str#
Get “Pos Correction Type” as a string.
- Returns:
The returned value will be one of [‘none’, ‘xsph’, ‘shift’].
- RASPHSettings.SetPosCorrectionType(value: str) None#
Set the value of “Pos Correction Type”.
- Parameters:
value – The value to set. Must be one of [‘none’, ‘xsph’, ‘shift’].
- Raises:
RockyApiError – If value is not a valid “Pos Correction Type” option.
- RASPHSettings.GetValidPosCorrectionTypeValues() list[str]#
Get a list of all possible values for “Pos Correction Type”.
- Returns:
The returned list is [‘none’, ‘xsph’, ‘shift’].
- RASPHSettings.SetPressureDeg(value: str | int) None#
Set the value of “Pressure Deg”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.GetPressureUnderRelaxationFactor() float#
Get the value of “Pressure Under Relaxation Factor”.
- RASPHSettings.SetPressureUnderRelaxationFactor(value: str | float) None#
Set the value of “Pressure Under Relaxation Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetRelaxedIncompressibilityConstraintEnabled() bool#
Get the value of “Relaxed Incompressibility Constraint Enabled”.
- RASPHSettings.SetRelaxedIncompressibilityConstraintEnabled(value: bool) None#
Set the value of “Relaxed Incompressibility Constraint Enabled”.
- Parameters:
value – The value to set.
- RASPHSettings.EnableRelaxedIncompressibilityConstraint() None#
Set the value of “Relaxed Incompressibility Constraint” to True.
- RASPHSettings.DisableRelaxedIncompressibilityConstraint() None#
Set the value of “Relaxed Incompressibility Constraint” to False.
- RASPHSettings.IsRelaxedIncompressibilityConstraintEnabled() bool#
Check if the “Relaxed Incompressibility Constraint” is enabled.
- RASPHSettings.GetShepardFilterOnDensityEnabled() bool#
Get the value of “Shepard Filter On Density Enabled”.
- RASPHSettings.SetShepardFilterOnDensityEnabled(value: bool) None#
Set the value of “Shepard Filter On Density Enabled”.
- Parameters:
value – The value to set.
- RASPHSettings.EnableShepardFilterOnDensity() None#
Set the value of “Shepard Filter On Density” to True.
- RASPHSettings.DisableShepardFilterOnDensity() None#
Set the value of “Shepard Filter On Density” to False.
- RASPHSettings.IsShepardFilterOnDensityEnabled() bool#
Check if the “Shepard Filter On Density” is enabled.
- RASPHSettings.GetShepardFilterOnPressureEnabled() bool#
Get the value of “Shepard Filter On Pressure Enabled”.
- RASPHSettings.SetShepardFilterOnPressureEnabled(value: bool) None#
Set the value of “Shepard Filter On Pressure Enabled”.
- Parameters:
value – The value to set.
- RASPHSettings.EnableShepardFilterOnPressure() None#
Set the value of “Shepard Filter On Pressure” to True.
- RASPHSettings.DisableShepardFilterOnPressure() None#
Set the value of “Shepard Filter On Pressure” to False.
- RASPHSettings.IsShepardFilterOnPressureEnabled() bool#
Check if the “Shepard Filter On Pressure” is enabled.
- RASPHSettings.SetShiftingFactor(value: str | float) None#
Set the value of “Shifting Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetSize(unit: str | None = None) float#
Get the value of “Size”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RASPHSettings.SetSize(value: str | float, unit: str | None = None) None#
Set the value of “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 “m”.
- RASPHSettings.GetSolverModel() str#
Get “Solver Model” as a string.
- Returns:
The returned value will be one of [‘WCSPH’, ‘IISPH’, ‘DFSPH’].
- RASPHSettings.SetSolverModel(value: str) None#
Set the value of “Solver Model”.
- Parameters:
value – The value to set. Must be one of [‘WCSPH’, ‘IISPH’, ‘DFSPH’].
- Raises:
RockyApiError – If value is not a valid “Solver Model” option.
- RASPHSettings.GetValidSolverModelValues() list[str]#
Get a list of all possible values for “Solver Model”.
- Returns:
The returned list is [‘WCSPH’, ‘IISPH’, ‘DFSPH’].
- RASPHSettings.GetSoundSpeed(unit: str | None = None) float#
Get the value of “Sound Speed”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RASPHSettings.SetSoundSpeed(value: str | float, unit: str | None = None) None#
Set the value of “Sound Speed”.
- 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/s”.
- RASPHSettings.SetStabilityDegree(value: str | int) None#
Set the value of “Stability Degree”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.SetStabilityNegFactor(value: str | float) None#
Set the value of “Stability Neg Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetStabilityPosFactor(value: str | float) None#
Set the value of “Stability Pos Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetStiffFactor(value: str | float) None#
Set the value of “Stiff Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetSurfaceTensionBoundaryAngle(unit: str | None = None) float#
Get the value of “Surface Tension Boundary Angle”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “dega”.
- RASPHSettings.SetSurfaceTensionBoundaryAngle(value: str | float, unit: str | None = None) None#
Set the value of “Surface Tension Boundary Angle”.
- 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 “dega”.
- RASPHSettings.GetSurfaceTensionBoundaryFraction() float#
Get the value of “Surface Tension Boundary Fraction”.
- RASPHSettings.SetSurfaceTensionBoundaryFraction(value: str | float) None#
Set the value of “Surface Tension Boundary Fraction”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetSurfaceTensionCoefficient(unit: str | None = None) float#
Get the value of “Surface Tension Coefficient”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “N/m”.
- RASPHSettings.SetSurfaceTensionCoefficient(value: str | float, unit: str | None = None) None#
Set the value of “Surface Tension 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 “N/m”.
- RASPHSettings.GetSurfaceTensionType() str#
Get “Surface Tension Type” as a string.
- Returns:
The returned value will be one of [‘none’, ‘CSF’, ‘CSS’, ‘custom’, ‘pairwise_potential’].
- RASPHSettings.SetSurfaceTensionType(value: str) None#
Set the value of “Surface Tension Type”.
- Parameters:
value – The value to set. Must be one of [‘none’, ‘CSF’, ‘CSS’, ‘custom’, ‘pairwise_potential’].
- Raises:
RockyApiError – If value is not a valid “Surface Tension Type” option.
- RASPHSettings.GetValidSurfaceTensionTypeValues() list[str]#
Get a list of all possible values for “Surface Tension Type”.
- Returns:
The returned list is [‘none’, ‘CSF’, ‘CSS’, ‘custom’, ‘pairwise_potential’].
- RASPHSettings.SetTimestepFactor(value: str | float) None#
Set the value of “Timestep Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetTurbDistanceFraction(value: str | float) None#
Set the value of “Turb Distance Fraction”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetTurbulenceType() str#
Get “Turbulence Type” as a string.
- Returns:
The returned value will be one of [‘laminar’, ‘les’].
- RASPHSettings.SetTurbulenceType(value: str) None#
Set the value of “Turbulence Type”.
- Parameters:
value – The value to set. Must be one of [‘laminar’, ‘les’].
- Raises:
RockyApiError – If value is not a valid “Turbulence Type” option.
- RASPHSettings.GetValidTurbulenceTypeValues() list[str]#
Get a list of all possible values for “Turbulence Type”.
- Returns:
The returned list is [‘laminar’, ‘les’].
- RASPHSettings.SetTurbulentPrandtl(value: str | float) None#
Set the value of “Turbulent Prandtl”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetTurbulentViscosityMaximumRatio() float#
Get the value of “Turbulent Viscosity Maximum Ratio”.
- RASPHSettings.SetTurbulentViscosityMaximumRatio(value: str | float) None#
Set the value of “Turbulent Viscosity Maximum Ratio”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetUpdateCoupledDensity(value: bool) None#
Set the value of “Update Coupled Density”.
- Parameters:
value – The value to set.
- RASPHSettings.SetUseParticlesNeighborsList(value: bool) None#
Set the value of “Use Particles Neighbors List”.
- Parameters:
value – The value to set.
- RASPHSettings.GetViscosityType() str#
Get “Viscosity Type” as a string.
- Returns:
The returned value will be one of [‘cleary’, ‘morris’, ‘custom’].
- RASPHSettings.SetViscosityType(value: str) None#
Set the value of “Viscosity Type”.
- Parameters:
value – The value to set. Must be one of [‘cleary’, ‘morris’, ‘custom’].
- Raises:
RockyApiError – If value is not a valid “Viscosity Type” option.
- RASPHSettings.GetValidViscosityTypeValues() list[str]#
Get a list of all possible values for “Viscosity Type”.
- Returns:
The returned list is [‘cleary’, ‘morris’, ‘custom’].
- RASPHSettings.GetViscousForceIntegration() str#
Get “Viscous Force Integration” as a string.
- Returns:
The returned value will be one of [‘explicit’, ‘implicit’].
- RASPHSettings.SetViscousForceIntegration(value: str) None#
Set the value of “Viscous Force Integration”.
- Parameters:
value – The value to set. Must be one of [‘explicit’, ‘implicit’].
- Raises:
RockyApiError – If value is not a valid “Viscous Force Integration” option.
- RASPHSettings.GetValidViscousForceIntegrationValues() list[str]#
Get a list of all possible values for “Viscous Force Integration”.
- Returns:
The returned list is [‘explicit’, ‘implicit’].
- RASPHSettings.GetViscousForceMaximumNumberOfIterations() int#
Get the value of “Viscous Force Maximum Number of Iterations”.
- RASPHSettings.SetViscousForceMaximumNumberOfIterations(value: str | int) None#
Set the value of “Viscous Force Maximum Number of Iterations”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASPHSettings.GetViscousForceRelativeErrorTolerance() float#
Get the value of “Viscous Force Relative Error Tolerance”.
- RASPHSettings.SetViscousForceRelativeErrorTolerance(value: str | float) None#
Set the value of “Viscous Force Relative Error Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetViscousForceUnderRelaxationFactor() float#
Get the value of “Viscous Force Under Relaxation Factor”.
- RASPHSettings.SetViscousForceUnderRelaxationFactor(value: str | float) None#
Set the value of “Viscous Force Under Relaxation Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.SetXsphFactor(value: str | float) None#
Set the value of “Xsph Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASPHSettings.GetFluidMaterial()#
Get the “Fluid Material”.
- Return type:
RAFluidMaterial
- RASPHSettings.SetFluidMaterial(value) None#
Set the “Fluid Material”.
- :param unicode,
RAFluidMaterialvalue: Either the API object wrapping the desired entity or its name.
- :param unicode,
- RASPHSettings.GetAvailableFluidMaterials()#
Get all available Fluid Materials.
- Return type:
List[
RAFluidMaterial] A list ofRAFluidMaterial.