How can I get the memory usage of my DPF (mechanical or PyDPF) script. I am wanting to know how much is being used in relation to size of results file (mesh and time steps) to know the general limit on a given machine.
https://docs.python.org/3/library/tracemalloc.html This package provides some handy insights into memory allocations in python scripting.
Also, many IDEs have system resource monitoring tools build in - I use spyder IDE for all my PyDPF scripting, and the IDE provides a live memory & CPU usage chart.