first thank you all for your work at making CfdOf a performant tool.
I can see from this post that it is possible to make it running with OpenFoam v2112.
I am using OF v2112 on ubuntu 20.04 LTS under Windows WSL2 and I am also using FreeCAD 0.19.
Unfortunately for me, after many tentatives I am still unable to make CfdOf working.
Here is the kind of error I get:
Code: Select all
0.0: Preparing meshing ...
0.1: Exporting mesh refinement data ...
0.2: Exporting the part surfaces ...
1.3: Mesh case written successfully
6.6: Please edit the case input files externally at: \\wsl$\Ubuntu-20.04\home\om840\OpenFOAM\om840-v2112\run\cfMesh\meshCase
0.0: Running cfMesh ...
0.1: Mesher started
0.4: Meshing exited with error
Code: Select all
15:55:12 Part to mesh:
Name: Cut005, Label: Cut005, ShapeType: Compound
15:55:12 CharacteristicLengthMax: 0.5
15:55:12 Exporting mesh refinement data ...
15:55:12 Matching boundary patches
15:55:12 Matching mesh refinement regions
15:55:12 Exporting the part surfaces ...
15:55:13 Triangulating part Cut005, patch patch_0_0 ... writing to file
15:55:13 Populating mesh dictionaries in folder \\wsl$\Ubuntu-20.04\home\om840\OpenFOAM\om840-v2112\run\cfMesh\meshCase
15:55:14 Successfully wrote meshCase to folder \\wsl$\Ubuntu-20.04\home\om840\OpenFOAM\om840-v2112\run\cfMesh\meshCase
15:55:14 Wrote mesh case to \\wsl$\Ubuntu-20.04\home\om840\OpenFOAM\om840-v2112\run\cfMesh\meshCase
15:58:21 Executing: bash -c cd "/mnt/\\wsl$\ubuntu-20.0/home/om840/OpenFOAM/om840-v2112/run/cfMesh/meshCase" && ./Allmesh
15:58:21 Raw command: ['C:/Program Files/FreeCAD 0.19/bin\\python.exe', '-u', 'C:\\Users\\HP Z840 V4 PRO\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'bash', '-c', 'cd "/mnt/\\\\wsl$\\ubuntu-20.0/home/om840/OpenFOAM/om840-v2112/run/cfMesh/meshCase" && ./Allmesh']
15:58:21 /bin/bash: line 0: cd: /mnt/\wsl$\ubuntu-20.0/home/om840/OpenFOAM/om840-v2112/run/cfMesh/meshCase: No such file or directory
There I had to add the modules folder, which was not present with the full OF installation, in which I put the cfmesh-cfdof folder copied from https://sourceforge.net/projects/cfmesh-cfdof/
I tried to compile using the ./Allwmake command. That took some time end ended with
Code: Select all
-lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl \
-lm -o /home/om840/OpenFOAM/om840-v2112/platforms/linux64GccDPInt32Opt/bin/surfaceToFMS
make[1]: Leaving directory '/usr/lib/openfoam/openfoam2112/modules/cfmesh-cfdof/utilities/surfaceToFMS'
please may I have some advice about installing CfdOf with OF v2112 ?
Thank you
Olivier