|
[Sponsors] |
How to compile a new solver in OpenFOAM-2.1.0? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 27, 2016, 04:30 |
compile a solver
|
#21 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Hi guys
I'm using O.F. is 2.3.1 and have done changes according to http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam But I've gotten this error: make: *** [Make/linux64GccDPOpt/icoHeatFoam.o] Error 1 Help me, if you know the solution. Thanks |
|
July 27, 2016, 04:43 |
|
#22 | |
Senior Member
|
Quote:
please post the error description completely (what you see in the terminal). Regards, Mostafa |
||
July 27, 2016, 04:48 |
|
#23 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Thanks Mostafa.
These are all of the messages which are printed in terminal: SOURCE=icoHeatFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoHeatFoam.o In file included from icoHeatFoam.C:42:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:73:1: error: expected ‘)’ before ‘D0’ D0 ^ In file included from icoHeatFoam.C:53:0: /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable] const int nOuterCorr = ^ /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable] const bool momentumPredictor = ^ /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable] const bool transonic = ^ make: *** [Make/linux64GccDPOpt/icoHeatFoam.o] Error 1 |
|
July 27, 2016, 04:53 |
|
#24 | |
Senior Member
|
Quote:
you forgot to close the parentheses before the D0. |
||
July 27, 2016, 05:10 |
|
#25 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
volScalarField D
( IOobject ( "D", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, D0 ); I think I've forgotten a "," after mesh. isn't it? But how can I be confident that my solver works correctly? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viscoelastic Fluid Flows using OpenFOAM The solver viscoelasticFluidFoam | jovani | OpenFOAM Running, Solving & CFD | 475 | January 13, 2023 09:21 |
Acoustic Solver with openfoam | acoustica | OpenFOAM Programming & Development | 110 | February 24, 2021 19:50 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
AMG solver in Openfoam | gonski | Main CFD Forum | 0 | November 25, 2007 06:20 |