I’m running version 1.1.1 of FESTIM, and it seems like some minor file formatting issues are still persisting in the code (see here for the first issue). I discovered this on trying to run the task4 workshop notebook (found here). When trying to plot the results of the simulation, only the concentartion t = 80,000s is plotted, which is the end of the simulation. (It’s colored green below because of the messed up legend assigment.)
This can be compared to the preview seen on the Github repo:
I checked the mobile.txt
file and it only had one column of data in it for t = 80,000s, despite 3 different timestamps being specified in the TXTExports()
method:
folder = "task4"
derived_quantities_with_barrier = F.DerivedQuantities()
derived_quantities_with_barrier.derived_quantities = [F.HydrogenFlux(surface=2)]
txt_exports = F.TXTExports(
fields=['solute'],
labels=['mobile'],
times=[100, 17000, 8e5],
folder=folder
)
model_barrier.exports = [derived_quantities_with_barrier] + txt_exports.exports
It seems that the bug stems from mobile.txt
being overwritten every time the TXTExports()
method is specified to write data to the file.
Thanks in advance to whoever can help, hopefully it’s an easy fix!