def __init__(self): self.set_volatile_species(['CO2']) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_solubility_dependence(False) self.set_calibration_ranges([ calibration_checks.CalibrationRange( 'pressure', [500.0, 5000.0], calibration_checks.crf_Between, 'bar', 'Shishkina et al. carbon', fail_msg=calibration_checks.crmsg_Between_fail, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'temperature', [1200.0, 1300.0], calibration_checks.crf_Between, 'oC', 'Shishkina et al. carbon', fail_msg=calibration_checks.crmsg_Between_fail, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'SiO2', [40, 57], calibration_checks.crf_Between, 'wt%', 'Shishkina et al. carbon', fail_msg=crmsg_BC_fail_C1, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description) ])
def __init__(self): """ Initialise the model. """ self.set_volatile_species(['CO2']) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_calibration_ranges([ calibration_checks.CalibrationRange( 'temperature', [1000, 1400], calibration_checks.crf_Between, 'oC', 'IaconoMarzianoCarbon', fail_msg=crmsg_BC_T, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'pressure', [100, 10000], calibration_checks.crf_Between, 'bars', 'IaconoMarzianoCarbon', fail_msg=crmsg_BC_P, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description) ]) self.set_solubility_dependence(True)
def __init__(self): """ Initialize the model. """ self.set_volatile_species(['CO2']) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_solubility_dependence(False) # Generate calibration range objects for each oxide cr_oxide_list = [] for ox in carboncomprange.keys(): cr_oxide_list.append( calibration_checks.CalibrationRange( ox, carboncomprange[ox], calibration_checks.crf_Between, 'wt%', 'Liu et al. (2005) carbon', fail_msg=calibration_checks.crmsg_BC_fail, pass_msg=calibration_checks.crmsg_BC_pass, description_msg=calibration_checks. crmsg_Between_description)) self.set_calibration_ranges([ calibration_checks.CalibrationRange( 'pressure', [0, 5000.0], calibration_checks.crf_Between, 'bar', 'Liu et al. (2005) Carbon', fail_msg=calibration_checks.crmsg_Between_fail, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'temperature', [700.0, 1200], calibration_checks.crf_Between, 'oC', 'Liu et al. (2005) Carbon', fail_msg=calibration_checks.crmsg_Between_fail, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'sample', None, crf_CarbonComp, None, None, fail_msg=crmsg_CarbonComp_fail, pass_msg=crmsg_Comp_pass, description_msg=crmsg_Comp_description) ] + cr_oxide_list)
def __init__(self): self.set_volatile_species(['H2O']) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_solubility_dependence(False) self.set_calibration_ranges([ calibration_checks.CalibrationRange( 'pressure', [500.0, 5000.0], calibration_checks.crf_Between, 'bar', 'Shishkina et al. water', fail_msg=calibration_checks.crmsg_Between_fail, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'temperature', [1050, 1400], calibration_checks.crf_Between, 'oC', 'Shishkina et al. water', fail_msg=crmsg_BC_fail_T1, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'SiO2', 65, calibration_checks.crf_LessThan, 'wt%', 'Shishkina et al. water', fail_msg=crmsg_LessThan_fail_WaterSi, pass_msg=calibration_checks.crmsg_LessThan_pass, description_msg=calibration_checks.crmsg_LessThan_description), calibration_checks.CalibrationRange( 'SiO2', 40, calibration_checks.crf_GreaterThan, 'wt%', 'Shishkina et al. water', fail_msg=crmsg_GreaterThan_fail_WaterSi, pass_msg=calibration_checks.crmsg_GreaterThan_pass, description_msg=calibration_checks. crmsg_GreaterThan_description) ])
def __init__(self): """ Initialise the model. """ self.set_volatile_species(['H2O']) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_calibration_ranges([ calibration_checks.CalibrationRange( 'temperature', [1000, 1400], calibration_checks.crf_Between, 'oC', 'IaconoMarzianoWater', fail_msg=crmsg_BC_T, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description), calibration_checks.CalibrationRange( 'pressure', [100, 10000], calibration_checks.crf_Between, 'bars', 'IaconoMarzianoWater', fail_msg=crmsg_BC_P, pass_msg=calibration_checks.crmsg_Between_pass, description_msg=calibration_checks.crmsg_Between_description) ]) # Not dependent on CO2 conc, H2O dependence dealt with within model. self.set_solubility_dependence(False) # The oxide masses used in the IM webapp. self.IM_oxideMasses = { 'Al2O3': 101.96, 'CaO': 56.08, 'FeO': 71.85, 'K2O': 94.2, 'MgO': 40.32, 'Na2O': 61.98, 'SiO2': 60.09, 'TiO2': 79.9, 'H2O': 18.01 }
def __init__(self): self.set_volatile_species(None) self.set_fugacity_model(fugacity_models.fugacity_idealgas()) self.set_activity_model(activity_models.activity_idealsolution()) self.set_calibration_ranges([]) self.set_solubility_dependence(False)