CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   problem with runTime (http://www.cfd-online.com/Forums/openfoam/104261-problem-runtime.html)

Whyman July 5, 2012 10:24

problem with runTime
 
Hi everybody,

i'm trying to compile a modified solver, but everytime i have this error:

Making dependency list for source file icoFsiElasticNonLinSolidFoam.C
Making dependency list for source file transitionalParabolicVelocity/transitionalParabolicVelocityFvPatchVectorField.C
SOURCE=transitionalParabolicVelocity/transitionalParabolicVelocityFvPatchVectorField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I./movingWallVelocity -I./oscillatingFixedValue -I/usr/lib/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/postProcessing/forces/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels -I/usr/lib/OpenFOAM-1.6-ext/src/LESmodels -I/usr/lib/OpenFOAM-1.6-ext/src/LESmodels/LESdeltas/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/incompressible/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/interfaceProperties/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/turbulenceModel -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionMotionSolver/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/lnInclude -I./solidModels/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/transitionalParabolicVelocityFvPatchVectorField.o
SOURCE=icoFsiElasticNonLinSolidFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I./movingWallVelocity -I./oscillatingFixedValue -I/usr/lib/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/postProcessing/forces/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels -I/usr/lib/OpenFOAM-1.6-ext/src/LESmodels -I/usr/lib/OpenFOAM-1.6-ext/src/LESmodels/LESdeltas/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/incompressible/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/interfaceProperties/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/turbulenceModel -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionMotionSolver/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/lnInclude -I./solidModels/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoFsiElasticNonLinSolidFoam.o
In file included from icoFsiElasticNonLinSolidFoam.C:78:
./solidModels/lnInclude/leastSquaresVolPointInterpolation.H:60: warning: ‘class Foam::leastSquaresVolPointInterpolation’ has virtual functions and accessible non-virtual destructor
In file included from icoFsiElasticNonLinSolidFoam.C:94:
createStressMesh.H:8: error: ‘runTime’ was not declared in this scope
createStressMesh.H:9: error: ‘runTime’ was not declared in this scope
In file included from icoFsiElasticNonLinSolidFoam.C:96:
createStressFields.H:1: error: expected constructor, destructor, or type conversion before ‘<<’ token
createStressFields.H:8: error: ‘runTime’ was not declared in this scope
createStressFields.H:23: error: ‘runTime’ was not declared in this scope
createStressFields.H:32: error: expected constructor, destructor, or type conversion before ‘<<’ token
createStressFields.H:38: error: ‘runTime’ was not declared in this scope
createStressFields.H:47: error: expected constructor, destructor, or type conversion before ‘<<’ token
createStressFields.H:53: error: ‘runTime’ was not declared in this scope
createStressFields.H:63: error: expected constructor, destructor, or type conversion before ‘<<’ token
createStressFields.H:69: error: ‘runTime’ was not declared in this scope
createStressFields.H:79: error: expected constructor, destructor, or type conversion before ‘<<’ token
createStressFields.H:85: error: ‘runTime’ was not declared in this scope
createStressFields.H:130: error: ‘runTime’ was not declared in this scope
In file included from icoFsiElasticNonLinSolidFoam.C:98:
readCouplingProperties.H:1: error: expected constructor, destructor, or type conversion before ‘<<’ token
readCouplingProperties.H:7: error: ‘runTime’ was not declared in this scope
readCouplingProperties.H:8: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:23: error: expected unqualified-id before ‘if’
readCouplingProperties.H:35: error: expected unqualified-id before ‘if’
readCouplingProperties.H:52: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:54: error: expected unqualified-id before ‘if’
readCouplingProperties.H:64: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:66: error: expected unqualified-id before ‘if’
readCouplingProperties.H:81: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:86: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:93: error: expected unqualified-id before ‘if’
readCouplingProperties.H:123: error: ‘runTime’ was not declared in this scope
readCouplingProperties.H:124: error: ‘mesh’ was not declared in this scope
readCouplingProperties.H:130: error: expected unqualified-id before ‘if’
readCouplingProperties.H:147: error: expected unqualified-id before ‘else’
In file included from icoFsiElasticNonLinSolidFoam.C:100:
createZoneToZoneInterpolators.H:6: error: expected unqualified-id before ‘if’
make: *** [Make/linux64GccDPOpt/icoFsiElasticNonLinSolidFoam.o] Errore 1



"createStressMesh" is a file to set the solid mesh and it contains:

fvMesh stressMesh
(
IOobject
(
"solid",
runTime.timeName(),
runTime,
IOobject::MUST_READ
)
);

What does this error mean? I can't do anything, I'm blocked....

Please help me.

Thank you
Stefano

niaz July 5, 2012 14:36

Dear stefano
you should change second runtime with mesh
if you want you can look carefully to this topic
penfoamwiki.net/index.php/Input/Output_operations_using_dictionaries_and_the_IOobj ect_class

Whyman July 6, 2012 05:15

Thank you Niaz

I have solved the problem.

:)


All times are GMT -4. The time now is 02:56.