deepxde
deepxde copied to clipboard
Export data for plot
Once I get the solution, is it possible to export the results and plot them using ParaView? Thank you
dde.saveplot(losshistory, train_state, issave=True, isplot=False)
This will save the loss history in loss.dat
, the predicted solution with the best model in test.dat
. For plotting you can use matplotlib.
Thank you very much, I know how to plot in matplotlib but I would like to know if there is a way to export the data and obtain a better plot in Praview.
Once you have the dat file, you can do whatever you want. Paraview has so many filter to plot CSV file, but that is out of scope of this discussion. I personally use plt.imshow()
from a meshgrid and interpolation the values at those grids.
Thank you very much. I’ll try it