CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] How to compile ccmToFoam on precompiled v2406 for Ubuntu (in WSL) ?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2024, 07:11
Lightbulb How to compile ccmToFoam on precompiled v2406 for Ubuntu (in WSL)
  #1
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,169
Rep Power: 27
Yann will become famous soon enough
Hello all,

I'm running OpenFOAM-v2406 on WSL/Ubuntu.
I installed the precompiled openfoam2406-default package.

I need to use ccmToFoam, which requires to be compiled after building the libccmio library, but I fail to do so.

EDIT: I solved my issue, so I'm going to turn this post into a tutorial.

Here is the process:
  1. Start a WSL session. In order to have write permission in the default OpenFOAM installation directory, you will need to start a shell with root privilege: sudo -s
  2. Load the OpenFOAM environment: source /usr/lib/openfoam/openfoam2406/etc/bashrc
  3. Move to the OpenFOAM install directory: foam
  4. Download the ThirdParty-v2406.tgz archive: wget https://dl.openfoam.com/source/v2406...arty-v2406.tgz
  5. Unpack the archive: tar -xzf ThirdParty-v2406.tgz
  6. Rename the extracted directory: rm ThirdParty && mv ThirdParty-v2406 ThirdParty
  7. Move to ThirdParty/sources directory and download the libccmio-2.6.1.tar.gz archive: cd ThirdParty/sources/ && wget https://sourceforge.net/projects/foa...o-2.6.1.tar.gz
  8. Unpack the archive: tar -xzf libccmio-2.6.1.tar.gz
  9. Get back to the ThirdParty directory and reload the OpenFOAM environment: cd .. && source /usr/lib/openfoam/openfoam2406/etc/bashrc
  10. Compile the libccmio library: ./makeCCMIO
  11. Move to: cd $FOAM_SRC/conversion/ccm
  12. Build the libccm library: ./Allwmake
  13. Move to: cd $FOAM_UTILITIES/mesh/conversion/ccm/
  14. Build the ccm utilities: ./Allwmake
  15. All done, exit the root shell and reload the OpenFOAM environment: exit && source /usr/lib/openfoam/openfoam2406/etc/bashrc

Here you go, you should now be able to use ccmToFoam and foamToCcm

If anyone more competent than me knows a better way to do this, let me know!
Yann
oalabri likes this.

Last edited by Yann; June 27, 2024 at 10:03.
Yann is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 20:02.