pyccel / psydac

Python 3 library for isogeometric analysis
https://pyccel.github.io/psydac/
MIT License
47 stars 17 forks source link

PostProcessManager.export_to_vtk cannot handle time-dependent additional functions #401

Open e-moral-sanchez opened 5 months ago

e-moral-sanchez commented 5 months ago

The method export_to_vtk of the class PostProcessManager accepts the arguments additional_logical_functions and additional_physical_functions that can be used for instance to pass the exact solution and plot the error.

However, at the moment this feature can only be used with time-independent simulations (static fields).

In the case of a time-dependent simulation, it should be possible to pass the argument: additional_physical_functions={'exact_solution': lambda ti: lambdify(Omega.coordinates, solution(ti), modules='numpy')}