def test_discharge_differential(self): options = {"surface form": "differential", "hydrolysis": "true"} model = pybamm.lead_acid.LOQS(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_particle_fast_diffusion(self): options = {"particle": "fast diffusion"} model = pybamm.lithium_ion.DFN(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_surface_form_algebraic(self): options = {"surface form": "algebraic"} model = pybamm.lithium_ion.DFN(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing(self): options = {"thermal": "isothermal"} model = pybamm.lead_acid.Full(options) modeltest = tests.StandardModelTest(model) modeltest.test_all(t_eval=np.linspace(0, 3600 * 17), solver=pybamm.CasadiSolver())
def test_basic_processing_with_capacitance(self): options = {"surface form": "differential"} model = pybamm.lead_acid.LOQS(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing(self): model = pybamm.lead_acid.CompositeExtended() param = model.default_parameter_values param.update({"Current function [A]": 1}) modeltest = tests.StandardModelTest(model, parameter_values=param) modeltest.test_all()
def test_zero_current(self): model = pybamm.lead_acid.LOQS() parameter_values = model.default_parameter_values parameter_values.update({"Current function [A]": 0}) modeltest = tests.StandardModelTest(model, parameter_values=parameter_values) modeltest.test_all()
def test_well_posed_solvent_diffusion_limited(self): options = {"sei": "solvent-diffusion limited"} model = pybamm.lithium_ion.SPM(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_ec_reaction_limited(self): options = {"sei": "ec reaction limited", "sei porosity change": True} model = pybamm.lithium_ion.SPM(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing_python(self): options = {"thermal": "isothermal"} model = pybamm.lithium_ion.SPMe(options) model.convert_to_format = "python" modeltest = tests.StandardModelTest(model, solver=pybamm.ScipySolver()) modeltest.test_all()
def test_basic_processing(self): options = {"side reactions": ["oxygen"]} model = pybamm.lead_acid.Full(options) modeltest = tests.StandardModelTest(model) modeltest.test_all(skip_output_tests=True, t_eval=np.linspace(0, 3600 * 17))
def test_particle_uniform(self): options = {"particle": "uniform profile"} model = pybamm.lithium_ion.SPMe(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_reaction_limited(self): options = {"sei": "reaction limited"} model = pybamm.lithium_ion.SPMe(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing_differential(self): options = {"side reactions": ["oxygen"], "surface form": "differential"} model = pybamm.lead_acid.Full(options) modeltest = tests.StandardModelTest(model) modeltest.test_all(skip_output_tests=True)
def test_particle_quartic(self): options = {"particle": "quartic profile"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_loss_active_material_reaction_both(self): options = {"loss of active material": "reaction-driven"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing_algebraic(self): options = {"side reactions": ["oxygen"], "surface form": "algebraic"} model = pybamm.lead_acid.Composite(options) modeltest = tests.StandardModelTest(model) modeltest.test_all(skip_output_tests=True)
def test_well_posed_constant(self): options = {"SEI": "constant"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing(self): model = pybamm.lead_acid.LOQS() modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_reaction_limited_average_film_resistance(self): options = {"SEI": "reaction limited", "SEI film resistance": "average"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing_with_convection(self): model = pybamm.lead_acid.LOQS({"convection": "uniform transverse"}) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_electron_migration_limited(self): options = {"SEI": "electron-migration limited"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing(self): options = {"surface form": "algebraic"} model = pybamm.lead_acid.LOQS(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_interstitial_diffusion_limited(self): options = {"SEI": "interstitial-diffusion limited"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_basic_processing(self): options = {"thermal": "isothermal"} model = pybamm.lithium_ion.SPM(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_ec_reaction_limited(self): options = {"SEI": "ec reaction limited", "SEI porosity change": "true"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_surface_form_differential(self): options = {"surface form": "differential"} model = pybamm.lithium_ion.DFN(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_particle_fickian(self): options = {"particle": "Fickian diffusion"} model = pybamm.lithium_ion.NewmanTobias(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_well_posed_constant(self): options = {"sei": "constant"} model = pybamm.lithium_ion.DFN(options) modeltest = tests.StandardModelTest(model) modeltest.test_all()
def test_discharge_algebraic(self): options = {"surface form": "algebraic", "hydrolysis": "true"} model = pybamm.lead_acid.LOQS(options) modeltest = tests.StandardModelTest(model) modeltest.test_all(skip_output_tests=True)