File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1477,6 +1477,21 @@ def create_formulation(self):
14771477class HydrogenTransportProblemDiscontinuousChangeVar (HydrogenTransportProblem ):
14781478 species : List [_species .Species ]
14791479
1480+ def initialise (self ):
1481+ # check if a SurfaceReactionBC is given
1482+ for bc in self .boundary_conditions :
1483+ if isinstance (bc , (boundary_conditions .SurfaceReactionBC )):
1484+ raise ValueError (
1485+ f"{ type (bc )} not implemented for HydrogenTransportProblemDiscontinuousChangeVar"
1486+ )
1487+ if isinstance (bc , boundary_conditions .ParticleFluxBC ):
1488+ if bc .species_dependent_value :
1489+ raise ValueError (
1490+ f"{ type (bc )} concentration-dependent not implemented for HydrogenTransportProblemDiscontinuousChangeVar"
1491+ )
1492+
1493+ super ().initialise ()
1494+
14801495 def create_formulation (self ):
14811496 """Creates the formulation of the model"""
14821497
You can’t perform that action at this time.
0 commit comments