AbsorptionCalculator

floodsim.model.cell.physics.AbsorptionCalculator
sealed trait AbsorptionCalculator

Defines the calculation strategy for water absorption in a cell.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def calculate(incomingWater: Double, currentAbsorption: AbsorptionRate): (Double, AbsorptionRate)

Calculates the amount of water absorbed and the updated absorption rate.

Calculates the amount of water absorbed and the updated absorption rate.

Value parameters

currentAbsorption

the current absorption rate of the cell

incomingWater

the volume of water entering the cell

Attributes

Returns

a tuple containing the amount of water absorbed and the new absorption rate