WaterHeightCalculator

floodsim.model.cell.physics.WaterHeightCalculator
sealed trait WaterHeightCalculator

Defines the calculation strategy for water height 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]): Double

Calculates the height of water in a cell based on cell dimensions, water volume, and obstacles.

Calculates the height of water in a cell based on cell dimensions, water volume, and obstacles.

Value parameters

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 height of the water