CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Cant use blockMesh on cylinder tutorial with macOS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2021, 12:43
Default Cant use blockMesh on cylinder tutorial with macOS
  #1
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Hi,


I'm new to openFoam and am going through the tutorials with macOS 10.14.6. When I enter the potentialFoam Cylinder tutorial ($FOAM_TUTORIALS/basic/potentialFoam/cylinder), I run blockMesh and get the following output:

"

[ofuser@f6067f688c69 cylinder]$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _79e353b8-20201222 OPENFOAM=2012
Arch : "LSB;label=32;scalar=64"
Exec : blockMesh
Date : Jan 26 2021
Time : 17:27:57
Host : f6067f688c69
PID : 847
I/O : uncollated
Case : /home/ofuser/workingDir/cylinder
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from "system/blockMeshDict"
Using #codeStream at line 23 in file "/home/ofuser/workingDir/cylinder/system/blockMeshDict"
Using #codeStream with "/home/ofuser/workingDir/cylinder/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_49e41d753f2adb4c8dffc0259424b06af57d b063.so"
Could not load "/home/ofuser/workingDir/cylinder/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_49e41d753f2adb4c8dffc0259424b06af57d b063.so"
/home/ofuser/workingDir/cylinder/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_49e41d753f2adb4c8dffc0259424b06af57d b063.so: cannot open shared object file: No such file or directory
Invoking wmake libso /home/ofuser/workingDir/cylinder/dynamicCode/_49e41d753f2adb4c8dffc0259424b06af57db063


--> FOAM FATAL ERROR: (openfoam-2012)
exec(wmake, ...) failed

From int Foam::system(const Foam::CStringList&, bool)
in file POSIX.C at line 1628.

FOAM exiting

Segmentation fault

"


I suspect it's something to do with the installation from seeing similiar errors on other threads, however I can't work out what to do as I'm not running on windows or linux etc. I did the installation exactly according to the openfoam instructions with docker (https://www.openfoam.com/download/in...binary-mac.php), and when I execute docker images to check if its done right, I get the following:



"REPOSITORY TAG IMAGE ID CREATED SIZE
openfoamplus/of_v2012_centos73 release 8c2e256b99c8 2 weeks ago 1.99GB
openfoam/openfoam8-paraview56 latest be19d87c75fc 2 months ago 2.57GB
openfoam/openfoam8-graphical-apps latest c2e1cd53823d 2 months ago 1.76GB"


I think the installation is therefore okay. Hope someone can help. Thank you
KimBest is offline   Reply With Quote

Old   January 27, 2021, 09:54
Default
  #2
New Member
 
Sophie
Join Date: Jan 2021
Posts: 11
Rep Power: 5
So_LL is on a distinguished road
Hi !

I am rather new to OpenFOAM as well but from what I understand so far, most files in OpenFOAM, I am thinking probably the tutorials files too, are locked (including all the solvers and other utilities). So to complete a tutorial and run blockMesh, the case files should be copied over in your "run" folder first.

That's what I would try anyway !

Good luck !
So_LL is offline   Reply With Quote

Old   February 7, 2021, 08:07
Default
  #3
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
Hi, thank you for the reply. I tried that as well but I get the same error unfortunately . Also, what might be of interest is that I get the same error when I run blockMesh for the case 'bump2D', among some others. So the installation seems to have worked for some cases but not others.
KimBest is offline   Reply With Quote

Old   February 9, 2021, 11:03
Default
  #4
New Member
 
Kim Best
Join Date: Jan 2021
Posts: 20
Rep Power: 5
KimBest is on a distinguished road
I think the problem is that I need to download make for mac in order to be able to run the dynamic code in blockMeshDict. I have done this using homebrew but I'm not sure where to go from here as it's still not making any difference. Any a help on this one would be great!
KimBest is offline   Reply With Quote

Reply

Tags
blockmesh cylinder, mac os, wmake error


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
[blockMesh] Unable to run blockMesh for tutorial "cylinder" in OpenFoam bharadwaj1729 OpenFOAM Meshing & Mesh Conversion 4 July 22, 2018 13:03
Cylinder tutorial robbo OpenFOAM Running, Solving & CFD 39 June 7, 2018 07:07
[blockMesh] Error while using blockMesh tutorial!! ssrivas3 OpenFOAM Meshing & Mesh Conversion 0 May 22, 2017 13:32
[ICEM] Cylinder meshing tutorial Far ANSYS Meshing & Geometry 28 April 17, 2012 06:44
[ICEM] Cylinder meshing tutorial Far ANSYS Meshing & Geometry 2 April 2, 2012 22:10


All times are GMT -4. The time now is 14:45.