festim-dev / FESTIM

Coupled hydrogen/tritium transport and heat transfer modelling using FEniCS
https://festim.readthedocs.io/en/stable/
Apache License 2.0
78 stars 16 forks source link

Warn when `Temperature` is mixed with BCs, sources, etc. #787

Open RemDelaporteMathurin opened 2 weeks ago

RemDelaporteMathurin commented 2 weeks ago

Currently users can setup temperature boundary conditions, sources, etc while setting up a F.Temperature() object.

When this happens, the BCs and sources are ignored.

It would be nice to either raise an error or at least a warning that F.Temperature() and F.DirichletBC(field="T", ....) should not be used together.