@@ -420,24 +420,6 @@ def test_check_well_posedness_initial_boundary_conditions(self):
420
420
with self .assertRaisesRegex (pybamm .ModelError , "initial condition" ):
421
421
model .check_well_posedness ()
422
422
423
- # Model with bad boundary conditions - Dirichlet (expect assertion error)
424
- d = pybamm .Variable ("d" , domain = whole_cell )
425
- model .initial_conditions = {c : 3 }
426
- model .boundary_conditions = {
427
- d : {"left" : (0 , "Dirichlet" ), "right" : (0 , "Dirichlet" )}
428
- }
429
- with self .assertRaisesRegex (pybamm .ModelError , "boundary condition" ):
430
- model .check_well_posedness ()
431
-
432
- # Model with bad boundary conditions - Neumann (expect assertion error)
433
- d = pybamm .Variable ("d" , domain = whole_cell )
434
- model .initial_conditions = {c : 3 }
435
- model .boundary_conditions = {
436
- d : {"left" : (0 , "Neumann" ), "right" : (0 , "Neumann" )}
437
- }
438
- with self .assertRaisesRegex (pybamm .ModelError , "boundary condition" ):
439
- model .check_well_posedness ()
440
-
441
423
# Algebraic well-posed model
442
424
whole_cell = ["negative electrode" , "separator" , "positive electrode" ]
443
425
model = pybamm .BaseModel ()
@@ -451,13 +433,6 @@ def test_check_well_posedness_initial_boundary_conditions(self):
451
433
}
452
434
model .check_well_posedness ()
453
435
454
- # Algebraic model with bad boundary conditions
455
- model .boundary_conditions = {
456
- d : {"left" : (0 , "Dirichlet" ), "right" : (0 , "Dirichlet" )}
457
- }
458
- with self .assertRaisesRegex (pybamm .ModelError , "boundary condition" ):
459
- model .check_well_posedness ()
460
-
461
436
def test_check_well_posedness_output_variables (self ):
462
437
model = pybamm .BaseModel ()
463
438
whole_cell = ["negative electrode" , "separator" , "positive electrode" ]
0 commit comments