|
[Sponsors] |
February 26, 2014, 01:04 |
problem about compiling meltFoam
|
#1 |
New Member
wumin
Join Date: Feb 2014
Posts: 7
Rep Power: 12 |
Anybody can help me?when I compile meltFoam with wmake command,i face a problem about compiling meltFoam:
fuguang@fuguang-Veriton-D630:~/Downloads/meltFoam_solver$ wmake SOURCE=meltFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam230/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/meltFoam.o In file included from meltFoam.C:83:0: pEqn.H: In function ‘int main(int, char**)’: pEqn.H:8:11: error: ‘ddtPhiCorr’ is not a member of ‘Foam::fvc’ /opt/openfoam230/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable] make: *** [Make/linux64GccDPOpt/meltFoam.o] Error 1 |
|
February 27, 2014, 00:22 |
|
#2 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14 |
Hi,
Just look at the error printed: pEqn.H:8:11: error: ‘ddtPhiCorr’ is not a member of ‘Foam::fvc’ I guess, it's because of versions differences. Cheers #shakil |
|
February 28, 2014, 00:08 |
|
#3 |
New Member
wumin
Join Date: Feb 2014
Posts: 7
Rep Power: 12 |
Hi shaki,
Thanks for your reply.In order to compile the meltFoam ,do you think which version of openfoam I can install? best regards, wumin |
|
February 28, 2014, 01:55 |
|
#4 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14 |
Hi Wumin,
Have you tried with the meltFoam as given in post #19 (http://www.cfd-online.com/Forums/ope...g-problem.html) ? I guess it will not cause any problem to you. Cheers #shakil |
|
June 23, 2017, 16:16 |
|
#5 |
New Member
Azzeddine
Join Date: Jul 2016
Posts: 1
Rep Power: 0 |
Hi Mohammad Shakil Ahmmed; please help me to compile the meltFoam solver, I have openFoam version 4.0.
/run/meltFoam/meltFoam_solver$ wmake all Making dependency list for source file meltFoam.C g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam4/src/finiteVolume/lnInclude -I/opt/openfoam4/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam4/src/OpenFOAM/lnInclude -I/opt/openfoam4/src/OSspecific/POSIX/lnInclude -fPIC -c meltFoam.C -o Make/linux64GccDPInt32Opt/meltFoam.o In file included from meltFoam.C:58:0: /opt/openfoam4/src/finiteVolume/lnInclude/setInitialDeltaT.H: In function ‘int main(int, char**)’: /opt/openfoam4/src/finiteVolume/lnInclude/setInitialDeltaT.H:33:5: error: ‘adjustTimeStep’ was not declared in this scope if (adjustTimeStep) ^ /opt/openfoam4/src/finiteVolume/lnInclude/setInitialDeltaT.H:41:17: error: ‘maxCo’ was not declared in this scope maxCo*runTime.deltaTValue()/CoNum, ^ /opt/openfoam4/src/finiteVolume/lnInclude/setInitialDeltaT.H:42:44: error: ‘maxDeltaT’ was not declared in this scope min(runTime.deltaTValue(), maxDeltaT) ^ /opt/openfoam4/wmake/rules/General/transform:8 : la recette pour la cible « Make/linux64GccDPInt32Opt/meltFoam.o » a échouée make: *** [Make/linux64GccDPInt32Opt/meltFoam.o] Erreur 1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
C_T(c,t) problem while compiling (OK interpreted) | crevoise | Fluent UDF and Scheme Programming | 6 | February 4, 2014 07:16 |
Problem with compiling new solver | palazi88 | OpenFOAM Programming & Development | 2 | December 24, 2013 19:52 |
problem with compiling the source code | michel1988 | OpenFOAM Installation | 1 | April 17, 2013 17:19 |
COMPILING PROBLEM | ammi | FLUENT | 1 | December 7, 2006 04:07 |
problem in compiling UDF | ammi reddy | FLUENT | 1 | December 1, 2006 06:45 |