Skip to content

Commit ba31b4a

Browse files
drop support of variablechange with concentration dependent BCs
1 parent a784f11 commit ba31b4a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/festim/hydrogen_transport_problem.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,21 @@ def create_formulation(self):
14771477
class 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

0 commit comments

Comments
 (0)