jaheyns / CfdOF

Computational Fluid Dynamics (CFD) for FreeCAD based on OpenFOAM solver
GNU Lesser General Public License v3.0
442 stars 84 forks source link

Allrun script points to incorrect MESHDIR #166

Closed ben-kenney closed 1 month ago

ben-kenney commented 1 month ago

Hi! I just installed cfdof on Windows 11 with docker (podman) for the openfoam solver.

I noticed that my Allrun script sets MESHDIR="/tmp/../meshCase" which results in the error:

Fatal error: Unable to find mesh in directory /tmp/../meshCase.

When writing the mesh case, cfdof will write the mesh to the default output directory, not into /tmp

Should Allrun pull from the default output directory that is set in global cfdof preferences? In my case I set this to \\wsl$\podman-machine-default\home\user\cfdof.

In any case, an easy workaround is to manually modify the Allrun script to MESHDIR="../meshCase" which then works.

I did find this forum post about the same error message although it wasn't clear to me how it was resolved, maybe order of operations matters?

oliveroxtoby commented 1 month ago

I have fixed a change I recently made that probably caused this. Could you check if it's resolved?

ben-kenney commented 1 month ago

Yes it's working now, thanks!

Now I see that the /tmp dir is the location of the meshCase and case directories from inside the docker container.