CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   blockMesh wmake error for OpenFOAM5 on ubuntu on windows (https://www.cfd-online.com/Forums/openfoam-programming-development/198485-blockmesh-wmake-error-openfoam5-ubuntu-windows.html)

rclement February 8, 2018 05:11

blockMesh wmake error for OpenFOAM5 on ubuntu on windows
 
I am new to OpenFOAM

I have installed OpenFOAM5 on Ubuntu on Windows10 following the instructions on the OpenFOAM web site.

I created a users directory (/home/rclement/OpenFOAM/rclement-5.0/run/) under the OpenFOAM subdirectory and copied the pitzDaily example from the tutorials directory to that location. I then succefully ran this copied tutorial (blockMesh, simpleFoam, and paraFoam).

I then copied the pitzDaily example to a new subdirectory (.../run/Sonic0/). I edited the BlockMeshDict file and tried to run blockMesh. This failed because of a wmake error, the complete output is below.

My question is, why did the blockMesh command work for the pitzDaily but fail for my modified blockmeshdict when the fail appear not be be related to the blockmesh file.


#---------------- output --------------

*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-197d9d3bf20a
Exec : blockMesh
Date : Feb 08 2018
Time : 18:52:50
Host : "DESKTOP-HICV6BE"
PID : 647
I/O : uncollated
Case : /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0
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
"/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict"
Using #codeStream at line 19 in file "/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict"
Using #codeStream with "/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_bd020b3857767f2bdf03dd861d918464b24f 6e5a.so"
Invoking "wmake -s libso /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd020b3857767f2bdf03dd861d918464b24f6e5a"
wmake libso /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd020b3857767f2bdf03dd861d918464b24f6e5a



/opt/openfoam5/wmake/wmake: line 409: make: command not found
/opt/openfoam5/wmake/wmake: line 412: make: command not found

wmake error: file 'Make/linux64GccDPInt320pt/sourceFiles' could not be created in /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd????????

--> FOAM FATAL IO ERROR
Failed wmake "dynamicCode/_bd???????????/platforms/linux64GccDPIInt320pt/lib/libcodeStream_bd????????.so

file: /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict from line 17 to line 17.

from function static void * Foam:: functionEntries::codeStream::getFunction(const Foam::dictionary&,const Foam:: dictionary&)(Foam::0stream&, const Foam::dictionray&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 218.

FOAM exiting

axjjienn March 5, 2018 13:50

I just had this same issue (also new user), for custom non-uniform boundary conditions.

You need to install make in your WSL. Open the Ubuntu terminal, and do a

Code:

sudo apt-get install make
That solved the issue for me.

Quote:

Originally Posted by rclement (Post 680842)
I am new to OpenFOAM

I have installed OpenFOAM5 on Ubuntu on Windows10 following the instructions on the OpenFOAM web site.

I created a users directory (/home/rclement/OpenFOAM/rclement-5.0/run/) under the OpenFOAM subdirectory and copied the pitzDaily example from the tutorials directory to that location. I then succefully ran this copied tutorial (blockMesh, simpleFoam, and paraFoam).

I then copied the pitzDaily example to a new subdirectory (.../run/Sonic0/). I edited the BlockMeshDict file and tried to run blockMesh. This failed because of a wmake error, the complete output is below.

My question is, why did the blockMesh command work for the pitzDaily but fail for my modified blockmeshdict when the fail appear not be be related to the blockmesh file.


#---------------- output --------------

*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.x-197d9d3bf20a
Exec : blockMesh
Date : Feb 08 2018
Time : 18:52:50
Host : "DESKTOP-HICV6BE"
PID : 647
I/O : uncollated
Case : /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0
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
"/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict"
Using #codeStream at line 19 in file "/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict"
Using #codeStream with "/home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_bd020b3857767f2bdf03dd861d918464b24f 6e5a.so"
Invoking "wmake -s libso /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd020b3857767f2bdf03dd861d918464b24f6e5a"
wmake libso /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd020b3857767f2bdf03dd861d918464b24f6e5a



/opt/openfoam5/wmake/wmake: line 409: make: command not found
/opt/openfoam5/wmake/wmake: line 412: make: command not found

wmake error: file 'Make/linux64GccDPInt320pt/sourceFiles' could not be created in /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/dynamicCode/_bd????????

--> FOAM FATAL IO ERROR
Failed wmake "dynamicCode/_bd???????????/platforms/linux64GccDPIInt320pt/lib/libcodeStream_bd????????.so

file: /home/rclement/OpenFOAM/rclement-5.0/run/Sonic0/system/blockMeshDict from line 17 to line 17.

from function static void * Foam:: functionEntries::codeStream::getFunction(const Foam::dictionary&,const Foam:: dictionary&)(Foam::0stream&, const Foam::dictionray&)
in file db/dictionary/functionEntries/codeStream/codeStream.C at line 218.

FOAM exiting


rclement March 5, 2018 16:57

Thanks fr the suggestion axjjienn,

I ended up reinstalling and didn't have the problem come back, so don't know what was causing the original issue.


All times are GMT -4. The time now is 11:33.