FC19 cfMesh on Linux installation

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

FC19 cfMesh on Linux installation

Post by Roland »

Dear Forum,

Installing cfMesh fails on my LinuxMint system.
Note that I installed OpenFOAM independently of FC19 in a separate exercise according to:

Code: Select all

https://develop.openfoam.com/Development/openfoam/-/wikis/precompiled/debian#installation-locations
This one installs on:

Code: Select all

/usr/lib/openfoam/openfoam2012/
Running the cfMesh install command under FC19 gave a report that was replete with error messages. Dependency Checker gave:

Code: Select all

cfMesh (CfdOF version) not found
After the operation, I found a lot of cfMesh files here:

Code: Select all

/home/roland/OpenFOAM/roland-v2012
And these are all *.exe files. Aren't those for WindowsOS?
In fact these are the same files that are packaged in cfMesh-CfdOF from

Code: Select all

https://sourceforge.net/projects/cfmesh-cfdof/
What could be a way forward to get cfMesh attached to my openfoam2012?

Best regards,

Roland on:
OS: Linux Mint 20.1 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.1)
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: FC19 cfMesh on Linux installation

Post by oliveroxtoby »

Roland wrote: Thu Mar 25, 2021 9:01 pm Dear Forum,

Installing cfMesh fails on my LinuxMint system.
Note that I installed OpenFOAM independently of FC19 in a separate exercise according to:

Code: Select all

https://develop.openfoam.com/Development/openfoam/-/wikis/precompiled/debian#installation-locations
This one installs on:

Code: Select all

/usr/lib/openfoam/openfoam2012/
Running the cfMesh install command under FC19 gave a report that was replete with error messages. Dependency Checker gave:

Code: Select all

cfMesh (CfdOF version) not found
After the operation, I found a lot of cfMesh files here:

Code: Select all

/home/roland/OpenFOAM/roland-v2012
And these are all *.exe files. Aren't those for WindowsOS?
In fact these are the same files that are packaged in cfMesh-CfdOF from

Code: Select all

https://sourceforge.net/projects/cfmesh-cfdof/
What could be a way forward to get cfMesh attached to my openfoam2012?
It sounds like it is trying to install the Windows binary pack instead of the source pack for some reason.

In the Preferences | CfdOF page, the URL for cfMesh should read:
https://sourceforge.net/projects/cfmesh ... p/download

Could you provide a screenshot of your preferences page please?

Please also provide the full report view output of running the dependency check and installing cfMesh.

Thanks.
Please provide all the information requested in this post before reporting problems with CfdOF.
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: FC19 cfMesh on Linux installation

Post by Roland »

Code: Select all

It sounds like it is trying to install the Windows binary pack instead of the source pack for some reason.

In the Preferences | CfdOF page, the URL for cfMesh should read:
https://sourceforge.net/projects/cfmesh ... p/download

Could you provide a screenshot of your preferences page please?

Please also provide the full report view output of running the dependency check and installing cfMesh.
So it does, Oliver.
Screenshot from 2021-03-26 08-43-44.png
Screenshot from 2021-03-26 08-43-44.png (83.69 KiB) Viewed 3391 times
Installation report in Preferences window gives:

Code: Select all

Downloading cfMesh, please wait...
cfMesh downloaded to /tmp/tmpd0ux6ete.zip
Extracting cfMesh...
Download completed
Building cfMesh. Lengthy process - please wait...
Log file: /home/roland/OpenFOAM/roland-v2012/cfmesh-cfdof/log.Allwmake
Install finished with error 1
This is what I could save from the report view:

Code: Select all

21:12:11  Running  echo $WM_PROJECT_USER_DIR
21:12:11  Raw command:  ['bash', '-c', 'source "/usr/lib/openfoam/openfoam2012/etc/bashrc" && echo $WM_PROJECT_USER_DIR']
21:12:11  /home/roland/OpenFOAM/roland-v2012
21:12:11  Running  { mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/tmp/tmpd0ux6ete.zip"; ); }
21:12:11  Raw command:  ['bash', '-c', 'source "/usr/lib/openfoam/openfoam2012/etc/bashrc" && { mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/tmp/tmpd0ux6ete.zip"; ); }']
21:12:12  Archive:  /tmp/tmpd0ux6ete.zip
21:12:12    inflating: cartesian2DMesh.exe     
21:12:12    inflating: cartesianMesh.exe       
21:12:12    inflating: checkSurfaceMesh.exe    
21:12:12    inflating: copySurfaceParts.exe    
21:12:12    inflating: extrudeEdgesInto2DSurface.exe  
21:12:12    inflating: FLMAToSurface.exe       
21:12:12    inflating: FMSToSurface.exe        
21:12:12    inflating: FMSToVTK.exe            
21:12:12    inflating: generateBoundaryLayers.exe  
21:12:12    inflating: importSurfaceAsSubset.exe  
21:12:12    inflating: improveMeshQuality.exe  
21:12:12    inflating: improveSymmetryPlanes.exe  
21:12:12    inflating: libmeshLibrary.dll      
21:12:12    inflating: mergeSurfacePatches.exe  
21:12:12    inflating: meshToFPMA.exe          
21:12:12    inflating: patchesToSubsets.exe    
21:12:12    inflating: pMesh.exe               
21:12:12    inflating: preparePar.exe          
21:12:12    inflating: removeSurfaceFacets.exe  
21:12:12    inflating: scaleMesh.exe           
21:12:12    inflating: scaleSurfaceMesh.exe    
21:12:12    inflating: subsetToPatch.exe       
21:12:12    inflating: surfaceFeatureEdges.exe  
21:12:12    inflating: surfaceGenerateBoundingBox.exe  
21:12:12    inflating: surfaceToFMS.exe        
21:12:12    inflating: tetMesh.exe             
21:12:12  Running  export WM_NCOMPPROCS=`nproc`; ./Allwmake  ->  log.Allwmake
21:12:12  Raw command:  ['bash', '-c', 'source "/usr/lib/openfoam/openfoam2012/etc/bashrc" && cd "$WM_PROJECT_USER_DIR/cfmesh-cfdof" && { rm log.Allwmake; export WM_NCOMPPROCS=`nproc`; ./Allwmake 1> >(tee -a log.Allwmake) 2> >(tee -a log.Allwmake >&2); }']
21:12:12  /usr/bin/bash: line 0: cd: /home/roland/OpenFOAM/roland-v2012/cfmesh-cfdof: No such file or directory
Note that I use this AppImage: FreeCAD_0.19-24276-Linux-Conda_glibc2.12-x86_64.AppImage.
So that is definitely the Linux version.

Anyway, I shall download the link that you gave, and try to install that one. Incidentally, I note that the file name and extension are exactly the same as the Windows version!. Suggestion: give it a different name, e.g. "cfmesh-cfdof_Linux.zip". And vv: "cfmesh-cfdof_Win.zip"


Shall report back after I completed an effort to install that one.

Greetz!
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: FC19 cfMesh on Linux installation

Post by Roland »

Code: Select all

cfmesh-cfdof-binaries-v2012.zip
Sorry, my mistake. The windows zip file has another name indeed (here above)

R
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: FC19 cfMesh on Linux installation

Post by Roland »

Hi Oliver,

I made another attempt to install cfmesh. Errors.

Screenshot:
Screenshot from 2021-03-26 12-34-47.png
Screenshot from 2021-03-26 12-34-47.png (282.11 KiB) Viewed 3349 times
Report to large for inline view. Therefore attached.

I hope you can make something out of this. Note that openfoam2012 has been installed on a particular location: /usr/lib/openfoam/openfoam2012

Best regards,

Roland
Attachments
cfMesh_InstallReport_ErrorsOnly.txt
(83.61 KiB) Downloaded 68 times
cfMesh_InstallReport.txt
(209.37 KiB) Downloaded 64 times
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: FC19 cfMesh on Linux installation

Post by oliveroxtoby »

Roland wrote: Fri Mar 26, 2021 11:52 am Hi Oliver,

I made another attempt to install cfmesh. Errors.

Screenshot:

Screenshot from 2021-03-26 12-34-47.png

Report to large for inline view. Therefore attached.

I hope you can make something out of this. Note that openfoam2012 has been installed on a particular location: /usr/lib/openfoam/openfoam2012

Best regards,

Roland
The first error is a complete mystery to me. I am not able to reproduce it. Can you double-check that you are able to reproduce it, and take careful note of the name of the file being downloaded in the "URL:" box in case that is somehow the wrong one.

On your second attempt everything seems fine. You just need to install the g++ compiler (package probably called something like gcc-c++).
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: FC19 cfMesh on Linux installation

Post by Roland »

Thanks, Oliver,

After installing C++ compiler (by installation of the development package build-essential), cfmesh did install. Albeit again with an enormous qty of error messages. But it works. Dependency checker gave OK, and I made a first little mesh.

For the record some reporting here:

Code: Select all

Downloading cfMesh, please wait...
cfMesh downloaded to /tmp/tmpswqo56m8.zip
Extracting cfMesh...
Download completed
Building cfMesh. Lengthy process - please wait...
Log file: /home/roland/OpenFOAM/roland-v2012/cfmesh-cfdof/log.Allwmake
Install completed
Error messages attached, for in case you are curious about it. And perhaps you want to view the log.Allwmake.

Let's hope things continue to work properly.

Greetz

Roland
Attachments
log.Allwmake.txt
(699.32 KiB) Downloaded 123 times
cfMesh_InstallReport_ErrorsOnly_V2.txt
(138.18 KiB) Downloaded 60 times
Post Reply