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: object

Interpolation routines, based on NIST data.

Initialization of mass analysis.

Parameters:
baselineImage

Baseline image.

atmospheric_pressurefloat

Atmospheric pressure in bar.

atmospheric_temperaturefloat

Temperature in Celsius.

Methods

atmospheric_temperature_map()

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_20_degrees_celsius()

Setup water density at 20 degrees Celsius and NIST data for CO2 density.

setup_23_degrees_celsius()

setup_density_gaseous_co2()

Setup density of gaseous CO2 taking into account pressure variation.

top_atmospheric_pressure()

update_state([atmospheric_pressure, ...])

Update atmospheric pressure and temperature.

Attributes

height_map

baseline

Baseline image.

atmospheric_pressure

Atmospheric pressure in bar.

atmospheric_temperature

Temperature in Celsius.

atmospheric_pressure_gradient

Atmospheric pressure gradient in bar.

atmospheric_temperature_gradient

Temperature gradient in Celsius.

atmospheric_temperature_map()[source]#

Return atmospheric temperature map due to gradient.

inverse_mass_analysis(mass)[source]#

Determine phase maps from a total mass map and recompute components.

Parameters:
massdarsia.Image

Total CO2 mass map.

Returns:
darsia.SimpleMassAnalysisResults

Reconstructed concentrations, saturation, and component masses.

log(path)[source]#

Plot density, solubility, hydrostatic pressure, temperature.

Parameters:
pathPath

Path to save the plots.

mass_analysis(c_aq, s_g)[source]#

Determine mass of CO2, given maps for dissolved and gaseous CO2.

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.

Parameters:
atmospheric_pressurefloat

Atmospheric pressure in bar.

atmospheric_temperaturefloat

Temperature in Celsius.

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.