Ejemplo n.º 1
0
 def test_discharge_differential(self):
     options = {"surface form": "differential", "hydrolysis": "true"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 2
0
 def test_particle_fast_diffusion(self):
     options = {"particle": "fast diffusion"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 3
0
 def test_surface_form_algebraic(self):
     options = {"surface form": "algebraic"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 4
0
 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())
Ejemplo n.º 5
0
 def test_basic_processing_with_capacitance(self):
     options = {"surface form": "differential"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 6
0
 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()
Ejemplo n.º 7
0
 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()
Ejemplo n.º 8
0
 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()
Ejemplo n.º 9
0
 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()
Ejemplo n.º 10
0
 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()
Ejemplo n.º 11
0
 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))
Ejemplo n.º 12
0
 def test_particle_uniform(self):
     options = {"particle": "uniform profile"}
     model = pybamm.lithium_ion.SPMe(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 13
0
 def test_well_posed_reaction_limited(self):
     options = {"sei": "reaction limited"}
     model = pybamm.lithium_ion.SPMe(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 14
0
 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)
Ejemplo n.º 15
0
 def test_particle_quartic(self):
     options = {"particle": "quartic profile"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 16
0
 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)
Ejemplo n.º 18
0
 def test_well_posed_constant(self):
     options = {"SEI": "constant"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 19
0
 def test_basic_processing(self):
     model = pybamm.lead_acid.LOQS()
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 20
0
 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()
Ejemplo n.º 21
0
 def test_basic_processing_with_convection(self):
     model = pybamm.lead_acid.LOQS({"convection": "uniform transverse"})
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 22
0
 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()
Ejemplo n.º 23
0
 def test_basic_processing(self):
     options = {"surface form": "algebraic"}
     model = pybamm.lead_acid.LOQS(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 24
0
 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()
Ejemplo n.º 25
0
 def test_basic_processing(self):
     options = {"thermal": "isothermal"}
     model = pybamm.lithium_ion.SPM(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 26
0
 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()
Ejemplo n.º 27
0
 def test_surface_form_differential(self):
     options = {"surface form": "differential"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 28
0
 def test_particle_fickian(self):
     options = {"particle": "Fickian diffusion"}
     model = pybamm.lithium_ion.NewmanTobias(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 29
0
 def test_well_posed_constant(self):
     options = {"sei": "constant"}
     model = pybamm.lithium_ion.DFN(options)
     modeltest = tests.StandardModelTest(model)
     modeltest.test_all()
Ejemplo n.º 30
0
 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)