WaterSpeedCalculator

floodsim.model.cell.physics.WaterSpeedCalculator
sealed trait WaterSpeedCalculator

Defines the calculation strategy for water speed in a cell.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract 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