CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries (https://www.cfd-online.com/Forums/openfoam-installation/121631-compile-error-dynamicmesh-thermophysicalmodels-libraries.html)

NickG August 1, 2013 12:08

compile error in dynamicMesh and thermophysicalModels libraries
 
Hi

I'm trying to compile OF-2.2.x using gcc 4.7.3 and get the following compile error when it gets to the dynamicMesh library:

Code:

motionSolver/displacement/displacementMotionSolver.C: In constructor ‘Foam::displacementMotionSolver::displacementMotionSolver(const Foam::polyMesh&, const Foam::IOdictionary&, const Foam::word&)’:

motionSolver/displacement/displacementMotionSolver.C:74:5: error: no matching function for call to ‘Foam::motionSolver::motionSolver(const Foam::polyMesh&, const Foam::IOdictionary&, const Foam::word&)’

motionSolver/displacement/displacementMotionSolver.C:74:5: note: candidates are:
In file included from motionSolver/displacement/displacementMotionSolver.H:41:0,
                from motionSolver/displacement/displacementMotionSolver.C:26:

lnInclude/motionSolver.H:97:9: note: Foam::motionSolver::motionSolver(const Foam::polyMesh&)

lnInclude/motionSolver.H:97:9: note:  candidate expects 1 argument, 3 provided

lnInclude/motionSolver.H:55:7: note: Foam::motionSolver::motionSolver(const Foam::motionSolver&)

lnInclude/motionSolver.H:55:7: note:  candidate expects 1 argument, 3 provided

make: *** [Make/linux64GccDPOpt/displacementMotionSolver.o] Error 1

This stops further libraries from compiling.

I am also getting an error trying to make libso reactionThermo in thermophysicalModels as follows:

Code:

psiReactionThermo/psiReactionThermos.C:62:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:63:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:64:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:65:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:66:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:67:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:69:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:75:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:76:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:77:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:78:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:79:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:80:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:82:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:88:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:89:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:90:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:91:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:92:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:93:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:95:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:104:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:105:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:106:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:107:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:108:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:109:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:111:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:117:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:118:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:119:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:120:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:121:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:122:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:124:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:130:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:131:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:132:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:133:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:134:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:135:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:137:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:146:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:147:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:148:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:149:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:150:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:151:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:153:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:159:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:160:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:161:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:162:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:163:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:164:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:166:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:172:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:173:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:174:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:175:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:176:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:177:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:179:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:188:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:189:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:191:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:197:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:198:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:200:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:209:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:210:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:212:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:218:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:219:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:221:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:230:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:231:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:233:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:239:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:240:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:242:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:248:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:249:5: error: ‘singleStepReactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:251:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:260:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:261:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:263:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:269:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:270:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:272:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:278:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:279:5: error: ‘singleStepReactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:281:2: error: expected constructor, destructor, or type conversion before ‘;’ token

which has further knock on effects in compiling later libraries.

Any suggestions. I've tried recompiling through again a few times as well as a fresh go but no luck

wyldckat August 25, 2013 07:29

Greetings Nick,

I only now managed to get to your thread.
Have you managed to solve this problem? If not, please indicate which instructions you are following and which Linux Distribution you are using, so that I can try and replicate the same issue or indicate a set of instructions that should work.

Best regards,
Bruno

NickG August 30, 2013 07:42

Hi Bruno

I'm using Ubuntu 13.04 and just the ./Allwmake script from the top directory. (I'm not writing this from my own computer so can't check the name) I've got around it by dropping and dragging binaries/libraries from the OF-2.2.1 distribution for Ubuntu but I'd like to be able to compile it from source for myself...

Thanks for your time

Nick

Manoj Paithane December 30, 2019 00:21

Compiling issue with thermophysical model
 
Quote:

Originally Posted by NickG (Post 443343)
Hi

I'm trying to compile OF-2.2.x using gcc 4.7.3 and get the following compile error when it gets to the dynamicMesh library:

Code:

motionSolver/displacement/displacementMotionSolver.C: In constructor ‘Foam::displacementMotionSolver::displacementMotionSolver(const Foam::polyMesh&, const Foam::IOdictionary&, const Foam::word&)’:

motionSolver/displacement/displacementMotionSolver.C:74:5: error: no matching function for call to ‘Foam::motionSolver::motionSolver(const Foam::polyMesh&, const Foam::IOdictionary&, const Foam::word&)’

motionSolver/displacement/displacementMotionSolver.C:74:5: note: candidates are:
In file included from motionSolver/displacement/displacementMotionSolver.H:41:0,
                from motionSolver/displacement/displacementMotionSolver.C:26:

lnInclude/motionSolver.H:97:9: note: Foam::motionSolver::motionSolver(const Foam::polyMesh&)

lnInclude/motionSolver.H:97:9: note:  candidate expects 1 argument, 3 provided

lnInclude/motionSolver.H:55:7: note: Foam::motionSolver::motionSolver(const Foam::motionSolver&)

lnInclude/motionSolver.H:55:7: note:  candidate expects 1 argument, 3 provided

make: *** [Make/linux64GccDPOpt/displacementMotionSolver.o] Error 1

This stops further libraries from compiling.

I am also getting an error trying to make libso reactionThermo in thermophysicalModels as follows:

Code:

psiReactionThermo/psiReactionThermos.C:62:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:63:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:64:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:65:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:66:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:67:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:69:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:75:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:76:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:77:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:78:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:79:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:80:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:82:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:88:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:89:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:90:5: error: ‘constTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:91:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:92:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:93:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:95:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:104:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:105:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:106:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:107:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:108:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:109:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:111:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:117:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:118:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:119:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:120:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:121:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:122:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:124:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:130:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:131:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:132:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:133:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:134:5: error: ‘hConstThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:135:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:137:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:146:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:147:5: error: ‘homogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:148:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:149:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:150:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:151:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:153:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:159:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:160:5: error: ‘inhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:161:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:162:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:163:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:164:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:166:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:172:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:173:5: error: ‘veryInhomogeneousMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:174:5: error: ‘sutherlandTransport’ is not a type
psiReactionThermo/psiReactionThermos.C:175:5: error: ‘sensibleEnthalpy’ is not a type
psiReactionThermo/psiReactionThermos.C:176:5: error: ‘janafThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:177:5: error: ‘perfectGas’ is not a type
psiReactionThermo/psiReactionThermos.C:179:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:188:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:189:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:191:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:197:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:198:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:200:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:209:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:210:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:212:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:218:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:219:5: error: ‘multiComponentMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:221:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:230:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:231:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:233:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:239:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:240:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:242:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:248:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:249:5: error: ‘singleStepReactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:251:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:260:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:261:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:263:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:269:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:270:5: error: ‘reactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:272:2: error: expected constructor, destructor, or type conversion before ‘;’ token
psiReactionThermo/psiReactionThermos.C:278:5: error: ‘hePsiThermo’ is not a type
psiReactionThermo/psiReactionThermos.C:279:5: error: ‘singleStepReactingMixture’ is not a type
psiReactionThermo/psiReactionThermos.C:281:2: error: expected constructor, destructor, or type conversion before ‘;’ token

which has further knock on effects in compiling later libraries.

Any suggestions. I've tried recompiling through again a few times as well as a fresh go but no luck


Hi NickG,


Are you able to solve this issue with thermophysical model..?
I am also facing same problem while compiling thermophysical model
please let me know if you have something to tell


Thank you,
Manoj


All times are GMT -4. The time now is 21:40.