CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Compiling new solvers in foam-extend-3.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 27, 2016, 18:43
Default Compiling new solvers in foam-extend-3.2
  #1
New Member
 
Virgilio Abraham Gomez
Join Date: May 2016
Posts: 5
Rep Power: 9
vabrahamg is on a distinguished road
I already have OpenFOAM 3.0.1 installed and recently successfully installed foam-extend 3.2 on ubuntu 15.10. I have "partitioned" my terminal with the alias command of301 and fe32. I am able to solve the tutorials in foam-extend and view them in paraview.

Now the problem comes when I try to compile any code. I modified icoFoam as in this thread:

http://www.cfd-online.com/Forums/ope...s-2-1-0-a.html

to simulate a dns turbulent channel flow, but I get an error when I compile the new code, icoDNS. Keep in mind that I get these "unused variables" even when I rename a solver without changing any code and try compiling. When compiling I change the Make/files by adding _USER_ and renaming my .C

icoDNS still compiled since ubuntu was able to recognize icoDNS -help

--------------------------------------------------------------------------------------------------------------------------

virgilio@virgilio-VirtualBox-Ubuntu-15:~$ fe32
virgilio@virgilio-VirtualBox-Ubuntu-15:~$ cd foam
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam$ ico
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam$ cd icoDNS/
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/icoDNS$ wclean
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/icoDNS$ wmake
Making dependency list for source file icoDNS.C
SOURCE=icoDNS.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/virgilio/foam/foam-extend-3.2/src/foam/lnInclude -I/home/virgilio/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoDNS.o
In file included from icoDNS.C:62:0:
/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude/readPISOControls.H:8:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
bool momentumPredictor =
^
/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
bool transonic =
^
/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
int nOuterCorr =
^
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/virgilio/foam/foam-extend-3.2/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/virgilio/foam/foam-extend-3.2/src/foam/lnInclude -I/home/virgilio/foam/foam-extend-3.2/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/icoDNS.o -L/home/virgilio/foam/foam-extend-3.2/lib/linux64GccDPOpt \
-lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/virgilio/foam/virgilio-3.2/applications/bin/linux64GccDPOpt/icoDNS
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/icoDNS$


--------------------------------------------------------------------------------------------------------------------------------



I renamed dnsFoam to dnsFoamdns and compiled it without changing a line of code and still got those errors. I solved boxTurb16 with dnsFoamdns and it solved perfectly. So I am guessing that the "unused variables" aren't an issue.

I went ahead to solve channel395 with icoDNS and got this error:



---------------------------------------------------------------------------------------------------------------------------------
virgilio@virgilio-VirtualBox-Ubuntu-15:~$ fe32
virgilio@virgilio-VirtualBox-Ubuntu-15:~$ cd foam
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam$ cd virgilio-3.2/
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/virgilio-3.2$ cd run
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/virgilio-3.2/run$ cd test
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/virgilio-3.2/run/test$ icoDNS
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
Build : 3.2-334ba0562a2c
Exec : icoDNS
Date : May 27 2016
Time : 17:38:05
Host : virgilio-VirtualBox-Ubuntu-15
PID : 25727
CtrlDict : "/home/virgilio/foam/virgilio-3.2/run/test/system/controlDict"
Case : /home/virgilio/foam/virgilio-3.2/run/test
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

--> FOAM Warning :
From function IOstream::compressionEnum(const word&)
in file db/IOstreams/IOstreams/IOstream.C at line 74
bad compression specifier 'off', using 'uncompressed'
Create mesh for time = 0

Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi


Starting time loop

----------------
pressure gradient = 7.3e-06
Flow direction = (1 0 0)
----------------
Reading/calculating field UMean

Reading/calculating field pMean

Reading/calculating field UPrime2Mean

Reading/calculating field pPrime2Mean

fieldAverage: starting averaging at time 0

Time = 0.2

Floating point exception (core dumped)
virgilio@virgilio-VirtualBox-Ubuntu-15:~/foam/virgilio-3.2/run/test$

--------------------------------------------------------------------------------------------------------------------------------


Any help is appreciated.


Virgilio
Attached Files
File Type: c icoDNS.C (3.5 KB, 5 views)
vabrahamg 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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 05:52.