BUG: c=0 trick for steady state problems #910
Labels
bug
Something isn't working
fenicsx
Issue that is related to the fenicsx support
good first issue
Good for newcomers
In
HydrogenTransportProblem
we want applyc = 0
to the formulation in steady state in subdomains where immobile species are not involved in a reaction. We do this here by looking in which subdomains each immobile species isn't defined:FESTIM/src/festim/hydrogen_transport_problem.py
Lines 683 to 699 in 013937a
However, this will apply$c = 0$ in all the subdomains where there is a reaction, even if this reaction doesn't involve this specific species.
These lines are the issue:
FESTIM/src/festim/hydrogen_transport_problem.py
Lines 689 to 693 in 013937a
It should check if the species is in the product of the reaction:
To reproduce the bug, run this on
fenicsx
:Produces:
The text was updated successfully, but these errors were encountered: