CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

warning when building a new solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 25, 2013, 13:12
Default warning when building a new solver
  #1
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 90
Rep Power: 7
kiddmax is on a distinguished road
Dear all,

When I build a new solver, after "wmake", there are some warnings as followed.However I can run the new solver, why do these warning come out? Do they matter?
------------------------------------------------------------------------------------------------------------------
Making dependency list for source file pisoFoam.C
SOURCE=pisoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/turbulenceModels/incompressible/turbulenceModel -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/transportModels -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/pisoFoam.o
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable ‘nOuterCorr’
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readPISOControls.H:15: warning: unused variable ‘transonic’
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readTimeControls.H:32: warning: unused variable ‘adjustTimeStep’
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readTimeControls.H:35: warning: unused variable ‘maxCo’
/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/turbulenceModels/incompressible/turbulenceModel -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/transportModels -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/pisoFoam.o -L/opt/apps/openfoam-2.1.0/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \
-lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume

-----------------------------------------------------------------------------------------------------------------
Could you give me some comments?

Best regards,
Ye
kiddmax is offline   Reply With Quote

Old   February 25, 2013, 18:28
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Ye,

I'll quote myself from a post I made back in 2010 :
Quote:
Originally Posted by wyldckat View Post
Those warnings are actually normal. AFAIK, those solvers use header files that are common to various solvers and not all solvers use those variables, therefore it triggers warning messages on those that don't use them.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 26, 2013, 05:13
Default
  #3
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 90
Rep Power: 7
kiddmax is on a distinguished road
Bruno,

Thank you so much! I really appreciate that! By the way, can I ask you one more question? Now I want to simulate the unsteady flow of the 2D airfoil in stall condition with pisoFoam solver. In Openfoam, should I start the simulation from original initial value or from the converged result obtained from steady solver simpleFoam as Fluent?

Regards,

Ye
kiddmax is offline   Reply With Quote

Old   February 26, 2013, 05:30
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ye,

Not exactly the same topic... but OK, I think I know the answer:
  1. I think you can use pisoFoam directly, if you are willing to wait longer for the solution.
  2. If not willing to wait, I suppose you can use simpleFoam. Check the tutorials folder, "incompressible/pisoFoam" sub-folder and you should find a few examples on this topic!
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 27, 2013, 04:54
Default
  #5
Member
 
Ye Zhang
Join Date: Dec 2009
Location: Delft,Netherland
Posts: 90
Rep Power: 7
kiddmax is on a distinguished road
Hi, Bruno

Thank you for your quick reply. I will try it!

Regards,
Ye
kiddmax is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40
installing funkySetFields prapanj OpenFOAM Installation 61 July 5, 2011 11:35
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 21:58
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
OpenFoam 14 installation problem gfcoppola OpenFOAM Installation 20 November 2, 2007 14:38


All times are GMT -4. The time now is 20:51.