Hello everybody,
What is the best way to dynamically exchange information between the “main” python simulation script (when simulation is ran step-by-step), and BC/source terms python script?
E.g. if values of BCs/source terms should change in time based on the current results of the simulation and some additional calculations?
Currently I’ve been doing it “primitively” by saving (from the main script) and loading (in BC script) json/txt files, but it’s done for every time step, and every source term point, so it results with a lot of read/write operations. Probably I’m missing some basic python knowledge to figure out a better solution ![]()
Thank you and best regards