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

[blockMesh] Unable to run blockMesh for tutorial "cylinder" in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By batmanbeyond

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2017, 07:11
Default Unable to run blockMesh for tutorial "cylinder" in OpenFoam
  #1
New Member
 
Sampath
Join Date: Sep 2017
Posts: 1
Rep Power: 0
bharadwaj1729 is on a distinguished road
Hi,

I am using OpenFoam v1706 and doing the tutorials. I am using bash on ubuntu on windows. There I have encountered the following error. Please help me resolve it.

Thanks in advance
Sampath.
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1706 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : v1706-17752679325a
Arch : "LSB;label=32;scalar=64"
Exec : blockMesh
Date : Sep 25 2017
Time : 15:11:13
Host : "Sampath"
PID : 840
Case : /mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Creating block mesh from
"/mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/system/blockMeshDict"
Using #codeStream at line 19 in file "/mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/system/blockMeshDict"
Using #codeStream with "/mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_1c19e29ae18c779aa836a14631d6419f303e 3d9d.so"
Invoking wmake libso /mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/dynamicCode/_1c19e29ae18c779aa836a14631d6419f303e3d9d
wmake libso /mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/dynamicCode/_1c19e29ae18c779aa836a14631d6419f303e3d9d
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -g -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c codeStreamTemplate.C -o Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o
In file included from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILListIO.C:27,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILList.C:91,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILList.H:383,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/ILList.H:39,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/IDLList.H:35,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/entry.H:45,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/dictionary.H:84,
from codeStreamTemplate.C:29:
/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Illegal instruction
static const floatScalar floatScalarGREAT = 1.0e+6;
^~~~~~
0xac5ddf crash_signal
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/toplev.c:333
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
/opt/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_1c19e29ae18c779aa836a14631d6419f303e3d9d/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_1c19e29ae18c779aa836a14631d6419f303e 3d9d.so"


file: /mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder/system/blockMeshDict from line 17 to line 17.

From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 219.

FOAM exiting

ksb@Sampath:/mnt/g/ofsampath/trial_runs/cylinderRuns/cylinder$
bharadwaj1729 is offline   Reply With Quote

Old   October 13, 2017, 14:51
Default Same problem with pipeCyclic Bash on Ubuntu on Windows
  #2
New Member
 
Join Date: Jul 2017
Posts: 3
Rep Power: 7
batmanbeyond is on a distinguished road
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file codeStreamTemplate.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -g -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c codeStreamTemplate.C -o Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o
In file included from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/scalar.H:39:0,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/IOstream.H:49,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/Ostream.H:39,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILListIO.C:27,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILList.C:91,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UILList.H:383,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/ILList.H:39,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/IDLList.H:35,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/entry.H:45,
from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/dictionary.H:84,
from codeStreamTemplate.C:29:
/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Illegal instruction
static const floatScalar floatScalarGREAT = 1.0e+6;
^~~~~~
0xac5ddf crash_signal
/home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/toplev.c:333
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
/opt/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6 256a.so"


file: /home/user/pipeCyclic/system/blockMeshDict from line 17 to line 23.

From function static void (* Foam::functionEntries::codeStream::getFunction(con st Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 219.

FOAM exiting
batmanbeyond is offline   Reply With Quote

Old   October 13, 2017, 16:05
Default Solved the problem with OpenFOAM v5
  #3
New Member
 
Join Date: Jul 2017
Posts: 3
Rep Power: 7
batmanbeyond is on a distinguished road
I solved the problem by removing OpenFoam v1706 and reinstalling OpenFoam v5 for ubuntu by following the instructions on https://openfoam.org/download/5-0-ubuntu/ on my Bash on Ubuntu on Windows.
Bevis likes this.
batmanbeyond is offline   Reply With Quote

Old   July 3, 2018, 12:17
Default Still waiting for a solution to the same problem
  #4
ozi
New Member
 
Ph.D.(c) Oğuzhan KIRIKBAŞ
Join Date: Mar 2017
Location: İstanbul
Posts: 7
Rep Power: 7
ozi is on a distinguished road
I also have the same problem. I use OpenFOAM v1712 in ubuntu in windows. Can anybody help. I appreciate.
ozi is offline   Reply With Quote

Old   July 22, 2018, 14:03
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,503
Rep Power: 35
olesen will become famous soon enougholesen will become famous soon enough
Quote:
Originally Posted by ozi View Post
I also have the same problem. I use OpenFOAM v1712 in ubuntu in windows. Can anybody help. I appreciate.

The problem can't be the same with OpenFOAM-v1712 - it really must be something else - might have to check the error messages again.


In 1706, and earlier
Code:
static const floatScalar floatScalarGREAT = 1.0e+6;
But in 1712 and 1806:

Code:
constexpr floatScalar floatScalarGREAT = 1.0e+6;
BTW: now trying to track here https://develop.openfoam.com/Develop...lus/issues/938

but it might be a more general gcc-6.3.0 issue, as mentioned here:
https://develop.openfoam.com/Develop...lus/issues/776
olesen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Flow past a 2D cylinder - High Re (1E+05) - Cd too high Pervispasco OpenFOAM Running, Solving & CFD 4 March 14, 2022 03:19
[blockMesh] Cylinder mesh using blockMesh with m4 macro Lewis Liang OpenFOAM Meshing & Mesh Conversion 2 November 21, 2017 03:28
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 20:00
[snappyHexMesh] Able to run snappyHexMesh in parallel on local machine but unable to run on linux clu abhinav2601 OpenFOAM Meshing & Mesh Conversion 1 January 26, 2015 06:42


All times are GMT -4. The time now is 22:29.