darsia.CO2MassAnalysis#
- class CO2MassAnalysis(baseline, atmospheric_pressure=1.01, atmospheric_temperature=23.0, atmospheric_pressure_gradient=0.0, atmospheric_temperature_gradient=0.0)[source]#
Bases:
objectInterpolation routines, based on NIST data.
Initialization of mass analysis.
- Parameters:
Methods
Return atmospheric temperature map due to gradient.
inverse_mass_analysis(mass)Determine phase maps from a total mass map and recompute components.
log(path)Plot density, solubility, hydrostatic pressure, temperature.
mass_analysis(c_aq, s_g)Determine mass of CO2, given maps for dissolved and gaseous CO2.
Setup water density at 20 degrees Celsius and NIST data for CO2 density.
setup_23_degrees_celsius()Setup density of gaseous CO2 taking into account pressure variation.
top_atmospheric_pressure()update_state([atmospheric_pressure, ...])Update atmospheric pressure and temperature.
Attributes
height_mapBaseline image.
Atmospheric pressure in bar.
Temperature in Celsius.
Atmospheric pressure gradient in bar.
Temperature gradient in Celsius.
- inverse_mass_analysis(mass)[source]#
Determine phase maps from a total mass map and recompute components.
- Parameters:
- mass
darsia.Image Total CO2 mass map.
- mass
- Returns:
darsia.SimpleMassAnalysisResultsReconstructed concentrations, saturation, and component masses.
- log(path)[source]#
Plot density, solubility, hydrostatic pressure, temperature.
- Parameters:
- path
Path Path to save the plots.
- path
- setup_20_degrees_celsius()[source]#
Setup water density at 20 degrees Celsius and NIST data for CO2 density.
- setup_density_gaseous_co2()[source]#
Setup density of gaseous CO2 taking into account pressure variation.
NOTE: Fixed temperature at 23 deg Celsius.
- update_state(atmospheric_pressure=None, atmospheric_temperature=None, atmospheric_pressure_gradient=None, atmospheric_temperature_gradient=None)[source]#
Update atmospheric pressure and temperature.
- atmospheric_pressure#
Atmospheric pressure in bar.
- atmospheric_pressure_gradient#
Atmospheric pressure gradient in bar.
- atmospheric_temperature#
Temperature in Celsius.
- atmospheric_temperature_gradient#
Temperature gradient in Celsius.
- baseline#
Baseline image.