DefaultWaterSpeedCalculator

floodsim.model.cell.physics.DefaultWaterSpeedCalculator

Default implementation of water speed calculation. Takes into account obstacle coverage, water volume, and absorption rate to determine the speed at which water flows through a cell.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def calculate(dimensions: Double, waterVolume: Double, obstacles: Seq[Obstacle], absorption: AbsorptionRate): Double

Calculates the speed of water in a cell based on various factors.

Calculates the speed of water in a cell based on various factors.

Value parameters

absorption

the absorption rate of the cell

dimensions

the dimensions of the cell

obstacles

the obstacles present in the cell

waterVolume

the volume of water in the cell

Attributes

Returns

the calculated speed of the water