CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   warning when building a new solver (http://www.cfd-online.com/Forums/openfoam-programming-development/113719-warning-when-building-new-solver.html)

kiddmax February 25, 2013 13:12

warning when building a new solver
 
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

wyldckat February 25, 2013 18:28

Greetings Ye,

I'll quote myself from a post I made back in 2010 :cool::
Quote:

Originally Posted by wyldckat (Post 277669)
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

kiddmax February 26, 2013 05:13

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

wyldckat February 26, 2013 05:30

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

kiddmax February 27, 2013 04:54

Hi, Bruno

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

Regards,
Ye


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