Skip to content

Building cfMesh with blueCFD Core

Bruno Santos edited this page Mar 4, 2018 · 1 revision

Description

This wiki page provides information on how to download and build cfMesh with blueCFD-Core 2016 and 2017.

Please keep in mind that our port of cfMesh must be used in order to properly compile with blueCFD-Core, due to several changes that were done when porting OpenFOAM to Windows.

For any problems compiling cfMesh with blueCFD-Core, please report it here: https://github.com/blueCFD/Core/issues

Topics:

Building with blueCFD-Core 2016

WARNING: You cannot build cfMesh with blueCFD-Core 2016-1 due to a linking bug in the GCC stack that came with MSys2. You must use blueCFD-Core 2016-2.

Follow these steps to download and build cfMesh with blueCFD-Core 2016-2:

  1. Start the blueCFD-Core terminal.

  2. Run the following command, to switch to the default OpenFOAM-assigned user folder:

    user
    
  3. Download the source code of our port for cfMesh by running:

    git clone https://github.com/blueCFD/cfMesh.git -b blueCFD-Core-2016
    
  4. Then go into the downloaded source code folder by running:

    cd cfMesh
    
  5. Choose to use all cores in your machine to build cfMesh, although it might need a lot of RAM (roughly 1.5 GB per core):

    wmMC
    
  6. Build cfMesh by running:

    ./Allwmake > log.make 2>&1
    
    • It takes around 20 minutes to build with 4 cores on an i5-6600.
  7. Run it again, to get a summary of the build:

    ./Allwmake
    
  8. If all goes well, it should show the following output:

    '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/lib/libmeshLibrary.dll' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/tetMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/cartesian2DMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/pMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/cartesianMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/copySurfaceParts.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/FLMAToSurface.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/FMSToSurface.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/extrudeEdgesInto2DSurface.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/checkSurfaceMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/FMSToVTK.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/importSurfaceAsSubset.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/improveMeshQuality.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/generateBoundaryLayers.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/mergeSurfacePatches.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/meshToFPMA.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/improveSymmetryPlanes.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/removeSurfaceFacets.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/scaleSurfaceMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/subsetToPatch.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/patchesToSubsets.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/scaleMesh.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/surfaceToFMS.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/preparePar.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/surfaceFeatureEdges.exe' is up to date.
    make[1]: '/home/ofuser/blueCFD/ofuser-of4/platforms/mingw_w64GccDPInt32Opt/bin/surfaceGenerateBoundingBox.exe' is up to date.
    
    1. If your run does not show an output similar to the above, then please run:
    gzip < log.make > log.make.gz
    
    1. Then create a new report here: https://github.com/blueCFD/Core/issues - and attach the file log.make.gz to your report.

Building with blueCFD-Core 2017

Follow these steps to download and build cfMesh with blueCFD-Core 2017:

  1. Start the blueCFD-Core terminal.

  2. Run the following command, to switch to the default OpenFOAM-assigned user folder:

    user
    
  3. Download the source code of our port for cfMesh by running:

    git clone https://github.com/blueCFD/cfMesh.git -b blueCFD-Core-2017
    
  4. Then go into the downloaded source code folder by running:

    cd cfMesh
    
  5. Optional: Choose to use all cores in your machine to build cfMesh, although it might need a lot of RAM (roughly 2GB per core):

    wmMC
    
  6. Build cfMesh by running:

    ./Allwmake > log.make 2>&1
    
    • It takes around 7 minutes to build with 4 cores on an i5-6600.
  7. Run it again, to get a summary of the build:

    ./Allwmake
    
  8. If all goes well, it should show the following output:

    wmake libso meshLibrary
    wmake executables
    wmake cartesian2DMesh
    wmake cartesianMesh
    wmake pMesh
    wmake tetMesh
    wmake utilities
    wmake checkSurfaceMesh
    wmake copySurfaceParts
    wmake extrudeEdgesInto2DSurface
    wmake FLMAToSurface
    wmake FMSToSurface
    wmake FMSToVTK
    wmake generateBoundaryLayers
    wmake importSurfaceAsSubset
    wmake improveMeshQuality
    wmake improveSymmetryPlanes
    wmake mergeSurfacePatches
    wmake meshToFPMA
    wmake patchesToSubsets
    wmake preparePar
    wmake removeSurfaceFacets
    wmake scaleMesh
    wmake scaleSurfaceMesh
    wmake subsetToPatch
    wmake surfaceFeatureEdges
    wmake surfaceGenerateBoundingBox
    wmake surfaceToFMS
    
    1. If your run does not show an output similar to the above, then please run:
    gzip < log.make > log.make.gz
    
    1. Then create a new report here: https://github.com/blueCFD/Core/issues - and attach the file log.make.gz to your report.