Skip to main content
Skip to main content

setShallowWaterSimulationPerfectlyMatchedLayerParameters

setShallowWaterSimulationPerfectlyMatchedLayerParameters

Description

Sets various parameters used for the perfectly matched layers algorithm

Definition

setShallowWaterSimulationPerfectlyMatchedLayerParameters(entityId shallowWaterSimulation, float dampeningFactor, float lambdaUpdateFactor, float lambdaDecay, integer borderSize, boolean isCubicScaling, boolean leftBorder, boolean rightBorder, boolean bottomBorder, boolean topBorder)

Arguments

entityIdshallowWaterSimulationid of the shallow water simulation
floatdampeningFactorcontrols how quickly and how strongly into the dampening region stuff is dampened.
floatlambdaUpdateFactorcontrols how quickly the dampening field changes over time. smaller values make the simulation more stable but may cause the dampening effect to worsen
floatlambdaDecaycontrols how quickly the dampening field decays per simulation iteration (e.g. 0.9 -> dampening field strength reduce to 90% after one iteration)
integerborderSizesize of the dampening region in grid cells
booleanisCubicScalingdetermines whether the dampening increases cubically from the start of the dampening border (false means it scales quadratically).
booleanleftBordersets whether PML boundary condition is active for the left border of the simulation
booleanrightBordersets whether PML boundary condition is active for the right border of the simulation
booleanbottomBordersets whether PML boundary condition is active for the bottom border of the simulation
booleantopBordersets whether PML boundary condition is active for the top border of the simulation