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

error compiling modified applications

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 10, 2011, 14:55
Question error compiling modified applications
  #1
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Hello everybody,

I am using openFoam 2.0.1
I am trying to compile a modified version of the dieselEngineFoam solver that I made.
When I type 'wmake' I get a lot of the following errors:

error: '<name of the variable>' was not declared in this scope

I would like to specify that all these variables are already used by the original function and I didn't add them.

Some help?

Thank you all!!!

Last edited by yvyan; December 13, 2011 at 09:23.
yvyan is offline   Reply With Quote

Old   December 12, 2011, 06:41
Default
  #2
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 176
Blog Entries: 1
Rep Power: 7
Linse is on a distinguished road
First check I would suggest: Are your modifications included in the solver before the variables are defined?
I cannot think of more likely sources for the problem at the moment if the variables really already are included...
Linse is offline   Reply With Quote

Old   December 13, 2011, 05:15
Default
  #3
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Thank you for replying me,

Quote:
Originally Posted by Linse View Post
First check I would suggest: Are your modifications included in the solver before the variables are defined?
I cannot think of more likely sources for the problem at the moment if the variables really already are included...
the modifications ara included after the variables declarations.

And now I can add that the problem is not given by my modifications.
In fact I obtain the same errors also if I copy the original directory of the solver dieselEngineFoam in my $WM_PROJECT_USER_DIR and I try to recompile it!!!! !!!!!
Where I wrong?

Thanks.

Last edited by yvyan; December 13, 2011 at 09:23.
yvyan is offline   Reply With Quote

Old   December 13, 2011, 06:38
Default
  #4
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
How about your 'makefile' and 'options' file? Are they the same?

Did you change $FOAM_APPBIN into $FOAM_USER_APPBIN?

There might be write issues?
stevenvanharen is offline   Reply With Quote

Old   December 13, 2011, 08:40
Default
  #5
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Thank you for replying me,

Quote:
Originally Posted by stevenvanharen View Post
How about your 'makefile' and 'options' file? Are they the same?

Did you change $FOAM_APPBIN into $FOAM_USER_APPBIN?

There might be write issues?
Yes, I have changed $FOAM_APPBIN into $FOAM_USER_APPBIN.

I changed only the file 'files' in the Make directory. The 'options' file is the original one.
Thanks.

Any other tips?

Last edited by yvyan; December 13, 2011 at 12:06.
yvyan is offline   Reply With Quote

Old   December 13, 2011, 12:11
Default
  #6
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
Copy:
readEngineTimeControls.H

from:

$FOAM_SRC/../applications/solvers/combustion/engineFoam/


to your folder.

I think it should work then. This is also the first error you get I think.
stevenvanharen is offline   Reply With Quote

Old   December 13, 2011, 15:14
Default
  #7
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Quote:
Originally Posted by stevenvanharen View Post
Copy:
readEngineTimeControls.H

from:

$FOAM_SRC/../applications/solvers/combustion/engineFoam/


to your folder.

I think it should work then. This is also the first error you get I think.
Thank you but I have already done it. In this way you solved just the first error.
The real question is given by a lot of '<name of the variable> was not declared in this scope' errors that I get when I try to compile!

Could this error be related to the fact that I don't have the root permissions?

Thanks! Help me please!!!!
yvyan is offline   Reply With Quote

Old   December 13, 2011, 16:31
Default
  #8
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
That is strange, when I copied that file it compiled just fine.

Maybe you can post the complete error message?
stevenvanharen is offline   Reply With Quote

Old   December 14, 2011, 14:55
Default
  #9
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Here are the 'ls' result and the 'wmake' errors message

************************************************** ***********************************
gvirelli@froude:~/OpenFOAM/gvirelli-2.0.1/applications/solvers/dieselEngineFoamProva> ls
createFields.H dieselEngineFoamProva.C file logSummary.H pEqn.H readEngineTimeControls.H spraySummary.H UEqn.H
createSpray.H dieselEngineFoamProva.dep hsEqn.H Make readCombustionProperties.H rhoEqn.H startSummary.H YEqn.H
gvirelli@froude:~/OpenFOAM/gvirelli-2.0.1/applications/solvers/dieselEngineFoamProva> wmake
make: Warning: File `linux64GccDPOpt/options' has modification time 2,9e+03 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `linux64GccDPOpt/options' has modification time 2,9e+03 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `Make/linux64GccDPOpt/dontIncludeDeps' has modification time 3,6e+03 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
make: Warning: File `dieselEngineFoamProva.dep' has modification time 2,9e+03 s in the future
SOURCE=dieselEngineFoamProva.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../engineFoam -I/opt/openfoam201/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam201/src/lagrangian/basic/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -I/opt/openfoam201/src/lagrangian/dieselSpray/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam201/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam201/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/opt/openfoam201/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam201/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam201/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/opt/openfoam201/src/../applications/solvers/reactionThermo/XiFoam -I/opt/openfoam201/src/thermophysicalModels/chemistryModel/lnInclude -I/opt/openfoam201/src/ODE/lnInclude -I/opt/openfoam201/src/engine/lnInclude -I/opt/openfoam201/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dieselEngineFoamProva.o
In file included from dieselEngineFoamProva.C:52:0:
/opt/openfoam201/src/OpenFOAM/lnInclude/setRootCase.H: In function ‚int main(int, char**)‚:
/opt/openfoam201/src/OpenFOAM/lnInclude/setRootCase.H:5:24: error: variable ‚Foam::argList args‚ has initializer but incomplete type
In file included from dieselEngineFoamProva.C:53:0:
/opt/openfoam201/src/engine/lnInclude/createEngineTime.H:1:5: error: ‚Info‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineTime.H:1:38: error: ‚endl‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineTime.H:3:5: error: ‚engineTime‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineTime.H:3:16: error: expected ‚;‚ before ‚runTime‚
In file included from dieselEngineFoamProva.C:54:0:
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:2:12: error: ‚runTime‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:2:34: error: ‚nl‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:4:5: error: ‚autoPtr‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:4:13: error: ‚engineMesh‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:6:9: error: ‚engineMesh‚ is not a class or namespace
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:10:17: error: ‚engineMesh‚ is not a class or namespace
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:14:13: error: ‚IOobject‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:16:5: error: ‚meshPtr‚ was not declared in this scope
/opt/openfoam201/src/engine/lnInclude/createEngineMesh.H:18:17: error: ‚mesh‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:55:0:
createFields.H:3:9: error: ‚psiChemistryModel‚ was not declared in this scope
createFields.H:5:5: error: ‚psiChemistryModel‚ is not a class or namespace
createFields.H:6:1: error: ‚pChemistry‚ was not declared in this scope
createFields.H:7:20: error: ‚chemistry‚ was not declared in this scope
createFields.H:9:1: error: ‚hsCombustionThermo‚ was not declared in this scope
createFields.H:9:21: error: ‚thermo‚ was not declared in this scope
createFields.H:11:1: error: ‚basicMultiComponentMixture‚ was not declared in this scope
createFields.H:11:29: error: ‚composition‚ was not declared in this scope
createFields.H:12:1: error: ‚PtrList‚ was not declared in this scope
createFields.H:12:9: error: ‚volScalarField‚ was not declared in this scope
createFields.H:12:26: error: ‚Y‚ was not declared in this scope
createFields.H:14:1: error: ‚word‚ was not declared in this scope
createFields.H:14:6: error: expected ‚;‚ before ‚inertSpecie‚
createFields.H:16:27: error: ‚inertSpecie‚ was not declared in this scope
createFields.H:21:17: error: ‚FatalError‚ was not declared in this scope
createFields.H:24:16: error: expected ‚;‚ before ‚rho‚
createFields.H:36:1: error: ‚volVectorField‚ was not declared in this scope
createFields.H:36:16: error: expected ‚;‚ before ‚U‚
createFields.H:50:17: error: ‚p‚ was not declared in this scope
createFields.H:51:7: error: ‚volScalarField‚ does not name a type
createFields.H:52:7: error: ‚volScalarField‚ does not name a type
createFields.H:53:17: error: ‚hs‚ was not declared in this scope
In file included from createFields.H:56:0,
from dieselEngineFoamProva.C:55:
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCreatePhi.H:39:1: error: ‚surfaceScalarField‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCreatePhi.H:39:20: error: expected ‚;‚ before ‚phi‚
In file included from dieselEngineFoamProva.C:55:0:
createFields.H:58:16: error: expected ‚;‚ before ‚kappa‚
createFields.H:73:9: error: ‚compressible‚ has not been declared
createFields.H:75:5: error: ‚compressible‚ has not been declared
createFields.H:77:9: error: ‚rho‚ was not declared in this scope
createFields.H:78:9: error: ‚U‚ was not declared in this scope
createFields.H:79:9: error: ‚phi‚ was not declared in this scope
createFields.H:82:1: error: ‚turbulence‚ was not declared in this scope
createFields.H:85:16: error: expected ‚;‚ before ‚DpDt‚
createFields.H:91:1: error: ‚multivariateSurfaceInterpolationScheme‚ was not declared in this scope
createFields.H:91:40: error: ‚scalar‚ was not declared in this scope
createFields.H:91:47: error: ‚::fieldTable‚ has not been declared
createFields.H:91:60: error: expected ‚;‚ before ‚fields‚
createFields.H:95:5: error: ‚fields‚ was not declared in this scope
createFields.H:97:1: error: ‚fields‚ was not declared in this scope
createFields.H:99:1: error: ‚DimensionedField‚ was not declared in this scope
createFields.H:99:26: error: ‚volMesh‚ was not declared in this scope
createFields.H:106:9: error: ‚IOobject‚ is not a class or namespace
createFields.H:107:9: error: ‚IOobject‚ is not a class or namespace
createFields.H:110:38: error: ‚dimEnergy‚ was not declared in this scope
createFields.H:110:48: error: ‚dimTime‚ was not declared in this scope
createFields.H:110:56: error: ‚dimVolume‚ was not declared in this scope
createFields.H:110:70: error: ‚dimensionedScalar‚ was not declared in this scope
createFields.H:111:1: error: ‚chemistrySh‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:56:0:
/opt/openfoam201/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:2:5: error: ‚uniformDimensionedVectorField‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:2:35: error: expected ‚;‚ before ‚g‚
In file included from dieselEngineFoamProva.C:57:0:
readCombustionProperties.H:3:1: error: ‚IOdictionary‚ was not declared in this scope
readCombustionProperties.H:3:14: error: expected ‚;‚ before ‚combustionProperties‚
readCombustionProperties.H:15:19: error: expected ‚;‚ before ‚Cmix‚
In file included from dieselEngineFoamProva.C:58:0:
createSpray.H:3:9: error: ‚gasThermoPhysics‚ was not declared in this scope
createSpray.H:3:49: error: ‚gasProperties‚ was not declared in this scope
createSpray.H:9:13: error: expected type-specifier before ‚gasThermoPhysics‚
createSpray.H:9:13: error: expected ‚)‚ before ‚gasThermoPhysics‚
createSpray.H:17:1: error: ‚spray‚ was not declared in this scope
createSpray.H:17:7: error: expected ‚;‚ before ‚dieselSpray‚
createSpray.H:29:8: error: expected ‚;‚ before ‚gasMass0‚
createSpray.H:31:5: error: ‚dieselSpray‚ was not declared in this scope
createSpray.H:33:5: error: ‚gasMass0‚ was not declared in this scope
createSpray.H:33:17: error: ‚constant‚ has not been declared
createSpray.H:36:1: error: ‚gasMass0‚ was not declared in this scope
createSpray.H:37:5: error: ‚dieselSpray‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:59:0:
/opt/openfoam201/src/finiteVolume/lnInclude/initContinuityErrs.H:37:8: error: expected ‚;‚ before ‚cumulativeContErr‚
In file included from readEngineTimeControls.H:1:0,
from dieselEngineFoamProva.C:60:
/opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:35:8: error: expected ‚;‚ before ‚maxCo‚
/opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:38:8: error: expected ‚;‚ before ‚maxDeltaT‚
In file included from dieselEngineFoamProva.C:60:0:
readEngineTimeControls.H:3:5: error: ‚maxDeltaT‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:61:0:
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:32:8: error: expected ‚;‚ before ‚CoNum‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:33:8: error: expected ‚;‚ before ‚meanCoNum‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:37:5: error: ‚scalarField‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:37:17: error: expected ‚;‚ before ‚sumPhi‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:43:5: error: ‚CoNum‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:43:22: error: ‚sumPhi‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:43:45: error: ‚gMax‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:45:5: error: ‚meanCoNum‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:46:25: error: ‚gSum‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:49:35: error: ‚meanCoNum‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:50:20: error: ‚CoNum‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:62:0:
/opt/openfoam201/src/finiteVolume/lnInclude/setInitialDeltaT.H:35:48: error: ‚SMALL‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/setInitialDeltaT.H:41:17: error: ‚maxCo‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/setInitialDeltaT.H:43:13: error: ‚min‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:63:0:
startSummary.H:1:35: error: ‚fvc‚ has not been declared
startSummary.H:5:1: error: ‚OFstream‚ was not declared in this scope
startSummary.H:5:10: error: expected ‚;‚ before ‚logSummaryFile‚
startSummary.H:10:1: error: ‚logSummaryFile‚ was not declared in this scope
dieselEngineFoamProva.C:65:5: error: ‚pimpleControl‚ was not declared in this scope
dieselEngineFoamProva.C:65:19: error: expected ‚;‚ before ‚pimple‚
In file included from readEngineTimeControls.H:1:0,
from dieselEngineFoamProva.C:73:
/opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:35:8: error: expected ‚;‚ before ‚maxCo‚
/opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:38:8: error: expected ‚;‚ before ‚maxDeltaT‚
In file included from dieselEngineFoamProva.C:74:0:
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:32:8: error: expected ‚;‚ before ‚CoNum‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:33:8: error: expected ‚;‚ before ‚meanCoNum‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:37:5: error: ‚scalarField‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:37:17: error: expected ‚;‚ before ‚sumPhi‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:43:22: error: ‚sumPhi‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:43:45: error: ‚gMax‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleCourantNo.H:46:25: error: ‚gSum‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:75:0:
/opt/openfoam201/src/finiteVolume/lnInclude/setDeltaT.H:36:12: error: expected ‚;‚ before ‚maxDeltaTFact‚
/opt/openfoam201/src/finiteVolume/lnInclude/setDeltaT.H:37:12: error: expected ‚;‚ before ‚deltaTFact‚
/opt/openfoam201/src/finiteVolume/lnInclude/setDeltaT.H:43:13: error: ‚deltaTFact‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/setDeltaT.H:45:9: error: ‚min‚ was not declared in this scope
dieselEngineFoamProva.C:96:28: error: expected ‚;‚ before ‚tk‚
dieselEngineFoamProva.C:100:28: error: expected ‚;‚ before ‚tc‚
dieselEngineFoamProva.C:103:13: error: ‚kappa‚ was not declared in this scope
dieselEngineFoamProva.C:103:41: error: ‚tc‚ was not declared in this scope
dieselEngineFoamProva.C:103:70: error: ‚tk‚ was not declared in this scope
dieselEngineFoamProva.C:106:23: error: ‚kappa‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:109:0:
rhoEqn.H:32:16: error: expected ‚;‚ before ‚Sevap‚
rhoEqn.H:50:9: error: ‚Sevap‚ was not declared in this scope
rhoEqn.H:57:9: error: ‚fvm‚ has not been declared
rhoEqn.H:58:9: error: ‚fvc‚ has not been declared
rhoEqn.H:60:9: error: ‚Sevap‚ was not declared in this scope
rhoEqn.H:61:5: error: ‚solve‚ was not declared in this scope
dieselEngineFoamProva.C:111:14: error: ‚pimple‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:113:0:
UEqn.H:1:5: error: ‚fvVectorMatrix‚ was not declared in this scope
UEqn.H:1:20: error: expected ‚;‚ before ‚UEqn‚
UEqn.H:13:15: error: ‚UEqn‚ was not declared in this scope
UEqn.H:13:24: error: ‚fvc‚ has not been declared
UEqn.H:13:36: error: ‚solve‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:114:0:
YEqn.H:1:1: error: ‚tmp‚ was not declared in this scope
YEqn.H:1:5: error: ‚fv‚ has not been declared
YEqn.H:1:34: error: expected primary-expression before ‚>‚ token
YEqn.H:3:5: error: ‚fv‚ has not been declared
YEqn.H:3:33: error: ‚::New‚ has not been declared
YEqn.H:10:1: error: ‚mvConvection‚ was not declared in this scope
YEqn.H:14:5: error: ‚label‚ was not declared in this scope
YEqn.H:14:11: error: expected ‚;‚ before ‚inertIndex‚
YEqn.H:15:20: error: expected ‚;‚ before ‚Yt‚
YEqn.H:19:28: error: ‚inertSpecie‚ was not declared in this scope
YEqn.H:21:29: error: ‚Yi‚ was not declared in this scope
YEqn.H:25:17: error: ‚fvm‚ has not been declared
YEqn.H:27:17: error: ‚fvm‚ has not been declared
YEqn.H:32:13: error: ‚solve‚ was not declared in this scope
YEqn.H:35:13: error: ‚Yt‚ was not declared in this scope
YEqn.H:39:13: error: ‚inertIndex‚ was not declared in this scope
YEqn.H:43:7: error: ‚inertIndex‚ was not declared in this scope
YEqn.H:43:33: error: ‚Yt‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:115:0:
hsEqn.H:4:9: error: ‚fvm‚ has not been declared
hsEqn.H:6:9: error: ‚fvm‚ has not been declared
hsEqn.H:8:8: error: ‚DpDt‚ was not declared in this scope
hsEqn.H:11:5: error: ‚solve‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:120:0:
pEqn.H:3:16: error: expected ‚;‚ before ‚A‚
pEqn.H:4:5: error: ‚UEqn‚ was not declared in this scope
pEqn.H:4:14: error: ‚A‚ was not declared in this scope
pEqn.H:8:24: error: expected ‚;‚ before ‚phid‚
pEqn.H:17:9: error: ‚fvScalarMatrix‚ was not declared in this scope
pEqn.H:17:24: error: expected ‚;‚ before ‚pEqn‚
pEqn.H:26:9: error: ‚pEqn‚ was not declared in this scope
pEqn.H:39:11: error: ‚fvc‚ has not been declared
pEqn.H:40:13: error: ‚fvc‚ has not been declared
pEqn.H:40:48: error: ‚fvc‚ has not been declared
pEqn.H:44:9: error: ‚fvScalarMatrix‚ was not declared in this scope
pEqn.H:44:24: error: expected ‚;‚ before ‚pEqn‚
pEqn.H:53:9: error: ‚pEqn‚ was not declared in this scope
In file included from pEqn.H:65:0,
from dieselEngineFoamProva.C:120:
rhoEqn.H:32:16: error: expected ‚;‚ before ‚Sevap‚
rhoEqn.H:50:9: error: ‚Sevap‚ was not declared in this scope
rhoEqn.H:57:9: error: ‚fvm‚ has not been declared
rhoEqn.H:58:9: error: ‚fvc‚ has not been declared
rhoEqn.H:60:9: error: ‚Sevap‚ was not declared in this scope
rhoEqn.H:61:5: error: ‚solve‚ was not declared in this scope
In file included from pEqn.H:66:0,
from dieselEngineFoamProva.C:120:
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:33:23: error: expected ‚;‚ before ‚totalMass‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:35:12: error: expected ‚;‚ before ‚sumLocalContErr‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:38:12: error: expected ‚;‚ before ‚globalContErr‚
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:41:5: error: ‚cumulativeContErr‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:41:26: error: ‚globalContErr‚ was not declared in this scope
/opt/openfoam201/src/finiteVolume/lnInclude/compressibleContinuityErrs.H:43:60: error: ‚sumLocalContErr‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:120:0:
pEqn.H:68:6: error: ‚fvc‚ has not been declared
pEqn.H:71:1: error: ‚DpDt‚ was not declared in this scope
pEqn.H:71:8: error: ‚fvc‚ has not been declared
pEqn.H:71:48: error: ‚fvc‚ has not been declared
In file included from dieselEngineFoamProva.C:129:0:
logSummary.H:2:31: error: ‚T‚ was not declared in this scope
logSummary.H:8:27: error: ‚tab‚ was not declared in this scope
In file included from dieselEngineFoamProva.C:130:0:
spraySummary.H:1:5: error: ‚label‚ was not declared in this scope
spraySummary.H:1:11: error: expected ‚;‚ before ‚Nparcels‚
spraySummary.H:2:12: error: ‚Nparcels‚ was not declared in this scope
spraySummary.H:2:22: error: ‚sumOp‚ was not declared in this scope
spraySummary.H:2:35: error: expected primary-expression before ‚)‚ token
spraySummary.H:2:36: error: ‚reduce‚ was not declared in this scope
spraySummary.H:15:12: error: expected ‚;‚ before ‚evapMass‚
spraySummary.H:19:12: error: expected ‚;‚ before ‚gasMass‚
spraySummary.H:23:9: error: ‚gasMass‚ was not declared in this scope
spraySummary.H:23:20: error: ‚constant‚ has not been declared
spraySummary.H:26:12: error: expected ‚;‚ before ‚addedMass‚
spraySummary.H:28:56: error: ‚addedMass‚ was not declared in this scope
spraySummary.H:30:29: error: ‚evapMass‚ was not declared in this scope
make: *** [Make/linux64GccDPOpt/dieselEngineFoamProva.o] Error 1
************************************************** *************

Any idea?
yvyan is offline   Reply With Quote

Old   December 14, 2011, 15:03
Default
  #10
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
I would like to specify that:
1- I don't have root permissions on the workstation
2- I am working remotely via ssh from a windows laptot using puTTY.

Could this facts influence the wmake result?

Thank you all!
yvyan is offline   Reply With Quote

Old   December 14, 2011, 15:54
Default
  #11
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
Mmmmm... that is a really nasty error message you got there.

Did you try wclean and than wmake?

This is the last think a can think of.
stevenvanharen is offline   Reply With Quote

Old   December 14, 2011, 17:09
Default
  #12
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Quote:
Originally Posted by stevenvanharen View Post
Mmmmm... that is a really nasty error message you got there.

Did you try wclean and than wmake?
At least one million times

Quote:
Originally Posted by stevenvanharen View Post
This is the last think a can think of.
Thank you anyway
yvyan is offline   Reply With Quote

Old   December 15, 2011, 05:31
Arrow
  #13
New Member
 
Ayhan Eses
Join Date: Mar 2009
Posts: 27
Rep Power: 8
ayhan515 is on a distinguished road
Quote:
Originally Posted by yvyan View Post
I would like to specify that:
1- I don't have root permissions on the workstation
2- I am working remotely via ssh from a windows laptot using puTTY.

Could this facts influence the wmake result?

Thank you all!
I was same situation.

in my computer this works.
Code:
mydizel.C

EXE = $(FOAM_USER_APPBIN)/mydizel
but when i use ssh and putty, it doesnt works so i change like below.
Code:
mydizel.C

EXE = /our-programme-folder/users/myname/OpenFOAM/myname-2.0.x/platforms/linux64Gcc45DPOpt/bin/mydizel
i think you should ask the right path to your workstation's directors. Sorry my English not well.
ayhan515 is offline   Reply With Quote

Old   December 15, 2011, 16:21
Default
  #14
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Quote:
Originally Posted by ayhan515 View Post
Code:
mydizel.C

EXE = /our-programme-folder/users/myname/OpenFOAM/myname-2.0.x/platforms/linux64Gcc45DPOpt/bin/mydizel
i think you should ask the right path to your workstation's directors. Sorry my English not well.
I have tried introducing my full path but It doesn't work yet!!!

yvyan is offline   Reply With Quote

Old   December 16, 2011, 15:21
Default
  #15
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Any help?????????????
Please!
yvyan is offline   Reply With Quote

Old   December 17, 2011, 05:33
Default
  #16
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Following up on ayhan: Are you sure you sourced the /etc/bashrc?

You can do this like this:
Code:
> source /opt/openfoam201/etc/bashrc
This sets some necessary environmental variables.

You should also look into this Clock Skew, those messages are not normal. By the way, there is a .dep file already, so the wclean was not performed properly I guess.
Bernhard is offline   Reply With Quote

Old   December 17, 2011, 05:51
Default
  #17
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 9
gwierink is on a distinguished road
Hi Giuseppe,

As Bernhard mentioned, you might want to look at the time stamp of the files. You can update file time stamps by using touch on the file (touch myFile).

You wrote that dieselEngineFoam doesn't compile form the beginning, even without changes. I tried as well and it turned out that there is a relative library path in Make /options. To fix this, just change
Code:
    -I../engineFoam \
to
Code:
    -I$(FOAM_SOLVERS)/combustion/engineFoam \
in Make/options. For me it then just compiled. Hope that helps.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 17, 2011, 07:27
Default
  #18
New Member
 
virelli giuseppe
Join Date: Nov 2011
Posts: 14
Rep Power: 5
yvyan is on a distinguished road
Thank you guys for helping me!


@Bernhard: I setted my general bashrc file to automatically do source of the bashrc file of the openFoam software each time a new shell is opened. So I don't think I need to type this command anymore.

Quote:
You should also look into this Clock Skew, those messages are not normal. By the way, there is a .dep file already, so the wclean was not performed properly I guess.
I resolved the clock skew warning but the 'not declared in this scope' errors still persist.
Furthermore, I have tryed again typing in sequence rmdepall (and the .dep file has been correctly cancelled), wclean and wmake without success.

@gwierink
Quote:
You wrote that dieselEngineFoam doesn't compile form the beginning, even without changes. I tried as well and it turned out that there is a relative library path in Make /options. To fix this, just change
Code:
-I../engineFoam \
to
Code:
-I$(FOAM_SOLVERS)/combustion/engineFoam \
in Make/options. For me it then just compiled. Hope that helps.
I made this change too but this permit to wmake just to find the file readEngineTimeControls.H but the 'not declared in this scope' errors still persist!!!!!!!!

Anyway. Last minute news!!!!
I tryed to do the same thing (copy of the original dieselEngineFoam directory in my $(WM_PROJECT_USER_DIR)/applications/solvers/ directory, making the right change, and recompiling) using openFoam 1.7.1 and It work!!!

It definitely is a problem related to my installation or to the openFoam 2.0.1 version!!! Guys, what version of the software are you using??

Thank you!!!
yvyan is offline   Reply With Quote

Old   December 17, 2011, 15:39
Arrow
  #19
New Member
 
Ayhan Eses
Join Date: Mar 2009
Posts: 27
Rep Power: 8
ayhan515 is on a distinguished road
Quote:
Originally Posted by yvyan View Post
It definitely is a problem related to my installation or to the openFoam 2.0.1 version!!! Guys, what version of the software are you using??
Thank you!!!
On my notebook i use OpenFoam 2.0.1, OpenFoam 2.0.x
is installed on remote computer and i could compile and use modified dieselEngineFoam on both of them.
ayhan515 is offline   Reply With Quote

Reply

Tags
error compile declare

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
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
modified CrossPowerLaw wmake error andboje OpenFOAM Programming & Development 13 October 12, 2010 13:07
flux seems not conserved in my modified scalarTransportFoam danielr OpenFOAM Running, Solving & CFD 3 October 5, 2009 16:05
Lunar applications anders_feder OpenFOAM Running, Solving & CFD 1 February 21, 2009 18:26
Modified Equation for CFX algorithm Craig Johansen CFX 0 August 27, 2004 23:02


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