Submitted Questions wrote
Could you please let me know if the FEAtool parallel function can also speed up the external functions that are coupled to FEATool? That is, the reaction rates at every point can be calculated simultaneously in the new version and these rates have to be calculated sequentially in the previous version?
Unfortunately the new parallel functionality in FEATool v1.14 only applies to the external solvers FEniCS, OpenFOAM, and SU2. MATLAB and the built-in solver is unfortunately designed in a "old style" blocking single threaded design so is very difficult to parallelize.
It sounds like your custom function takes a long time to compute in which case it might be possible to speed up. I would recommend to use the "profile" functionality to check exactly what takes time and prioritize optimizing that first:
https://www.mathworks.com/help/matlab/ref/profile.htmlMoreover, depending on how your custom function looks like you might be able to cache some parts of the computations using the "persistent" functionality:
https://www.mathworks.com/help/matlab/ref/persistent.htmlThat said, if you are doing several parametric runs you can also run many simulations in parallel using the techniques described here:
https://www.featool.com/tutorial/2017/06/07/running-parallel-matlab-fem-and-multiphysics-simulations