mibitrans.analysis API reference
mass_balance
Author: Jorrit Bakker.
Module calculating the mass balance based on base parameters.
MassBalance
Calculate mass balance characteristics of input model.
Source code in mibitrans/analysis/mass_balance.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | |
degraded_mass
property
Mass of plume contaminant degradation at the given time(s), compared to a no degradation model, in [g].
delta_source
property
Difference in mass between contaminant source at given time and source at t = 0, in [g].
electron_acceptor_change
property
Change in electron acceptor/byproduct masses at the given time(s), in [g]. Only for instant reaction.
Electron acceptor/byproduct consumption or generation is based on the degraded plume mass (specifically ‘instant_reaction_degraded_mass’), the utilization factor and relative abundance of the acceptors/byproducts. Under the governing assumptions of the instant reaction model, a crude estimate of the total consumption of electron acceptors and the generation of byproduct is calculated.
instant_reaction_degraded_mass
property
Difference in plume mass instant reaction with and without biodegradation capacity subtracted, in [g].
For the instant reaction model, the underlying assumption reads that observed concentrations in the source zone are post-degradation. Therefore, the source concentrations without any biodegradation would be higher, the amount which is determined by the biodegradation capacity. Then, according to this method, the degraded mass is the difference between plume mass before and after subtracting the biodegradation capacity.
model_without_degradation
property
Model with no degradation used to compare with given model.
plume_mass
property
Mass of the contaminant plume in the model extent, at the given time(s), in [g].
source_mass
property
Mass of the contaminant source at the given time(s), in [g]. No values are given for infinite source mass.
__call__(time=None, method=None)
Recalculate the mass balance characteristics of input model for given time and method.
Source code in mibitrans/analysis/mass_balance.py
__init__(results, time, verbose=False)
Mass balance object with source and plume characteristics at given time(s), of input model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
Input model for which mass balance is calculated, should be a child class of Transport3D. |
required | |
time
|
float | str
|
Time at which to initially calculate the mass balance. Either as a value between 0 and model end time. Or as ‘all’, which will calculate mass balance attributes for each time step as arrays. |
required |
verbose
|
bool
|
Verbose mode. Defaults to False. |
False
|
Call
Calling the MassBalance object will recalculate the mass balance characteristics of input model for given input time.
Properties
plume_mass: Mass of the contaminant plume inside the model extent, at the given time(s), in [g]. source_mass: Mass of the contaminant source at the given time(s), in [g]. No values are given for models with infinite source mass. delta_source: Difference in mass between contaminant source at given time and source at t = 0, in [g]. degraded_mass: Mass of plume contaminant degradation at the given time(s), compared to a model without degradation, in [g]. Has no value if model does not consider degradation. model_without_degradation: Object of model without degradation. Has no value if model does not consider degradation. instant_reaction_degraded_mass(self): Difference in plume mass instant reaction with and without biodegradation capacity subtracted, in [g]. electron_acceptor_change(self): Change in electron acceptor/byproduct masses at the given time(s), in [g]. Only for instant reaction.
Source code in mibitrans/analysis/mass_balance.py
source_threshold(threshold)
Calculate when source mass is below given threshold. No values are given for infinite source mass.
Source code in mibitrans/analysis/mass_balance.py
parameter_calculations
Author: Jorrit Bakker.
Module containing various methods that takes a dictionary of parameters as input and calculates the proper values that can be used in transport equations.
calculate_discharge_and_average_source_zone_concentration(model)
Calculate discharge through source zone and average source zone concentration, returned in respective order.
Source code in mibitrans/analysis/parameter_calculations.py
calculate_utilization(model)
Function that calculates relative use of electron acceptors in biodegradation of BTEX.