Documentation for Flow
Flow class to imitate the fluxes between boxes in a carbon box model.
__init__(source, destination, flux_rate)
get_source()
get_destination()
Getter method for the destination node of the Flow Class.
Returns:
Type | Description |
---|---|
Box
|
destination of the flow. |
get_flux()
Getter method for the flux rate of the Flow Class.
Returns:
Type | Description |
---|---|
float
|
flux of the flow object. |
__str__()
Overrides the default string behaviour to display a user-friendly output.
Returns:
Type | Description |
---|---|
str
|
string representation of the Flow Object returned in the following form - str(source)-->str(destination):flux_value |