-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FENICSX error thrown but FESTIM solving #18
Comments
I've produced a MWE for this bug. import festim as F
my_model = F.HydrogenTransportProblem()
my_model.mesh = F.Mesh1D([0, 0.1, 0.2, 0.3, 0.5, 1])
tungsten = F.Material(D_0=1, E_D=0)
w_subdomain = F.VolumeSubdomain1D(id=1, borders=[0, 1], material=tungsten)
my_model.subdomains = [w_subdomain]
my_model.species = [F.Species("H")]
my_model.temperature = 500
my_model.boundary_conditions = []
my_model.settings = F.Settings(atol=1e-10, rtol=1e-10, final_time=1)
my_model.settings.stepsize = F.Stepsize(initial_value=0.1)
my_model.initialise()
my_model.run()
class RandomClass:
def __init__(self):
pass This produces
Environment file: name: hisp-env
channels:
- conda-forge
- defaults
dependencies:
- fenics-dolfinx=0.8.0
- matplotlib
- scipy
- pip
- tqdm
- pip:
- git+https://github.com/remdelaportemathurin/FESTIM@ad3b10b1a0c736ea3cd1e77835ef70de82208a10
# - h_transport_materials~=0.16
(both with dolfinx 0.8 and 0.9)
|
Note: the bug also occurs with |
If we don't define the import festim as F
my_model = F.HydrogenTransportProblem()
my_model.mesh = F.Mesh1D([0, 0.1, 0.2, 0.3, 0.5, 1])
tungsten = F.Material(D_0=1, E_D=0)
w_subdomain = F.VolumeSubdomain1D(id=1, borders=[0, 1], material=tungsten)
my_model.subdomains = [w_subdomain]
my_model.species = [F.Species("H")]
my_model.temperature = 500
my_model.boundary_conditions = []
my_model.settings = F.Settings(atol=1e-10, rtol=1e-10, final_time=1)
my_model.settings.stepsize = F.Stepsize(initial_value=0.1)
my_model.initialise()
my_model.run()
from random_class import RandomClass |
@kaelyndunnell adding my_model.progress_bar.close() After I'll open an issue on the FESTIM repo and push a fix to do this inside |
This PR should fix it after it's merged festim-dev/FESTIM#894 |
From PR #12: simulation solves, plots, and then spits out FENICSx error in the terminal. merged into main
(hello @shimwell)
Originally posted by @RemDelaporteMathurin in #12 (comment)
The text was updated successfully, but these errors were encountered: