CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

problem with runTime

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2012, 10:24
Unhappy problem with runTime
  #1
Member
 
Stefano
Join Date: Jul 2009
Posts: 36
Rep Power: 16
Whyman is on a distinguished road
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
Whyman is offline   Reply With Quote

Old   July 5, 2012, 14:36
Default
  #2
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 16
niaz is on a distinguished road
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
niaz is offline   Reply With Quote

Old   July 6, 2012, 05:15
Smile
  #3
Member
 
Stefano
Join Date: Jul 2009
Posts: 36
Rep Power: 16
Whyman is on a distinguished road
Thank you Niaz

I have solved the problem.

Whyman is offline   Reply With Quote

Old   October 11, 2021, 02:59
Default
  #4
New Member
 
Avinash Kumar Verma
Join Date: Jul 2021
Posts: 5
Rep Power: 4
avinashv20 is on a distinguished road
Hello Whyman.


How exactly did you solve this problem? I am having this same problem. The error I am receiving is as follows:


Making dependency list for source file interThermalFoam.C
g++ -std=c++11 -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 -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam7/applications/solvers/multiphase/VoF -I/opt/openfoam7/src/transportModels/twoPhaseMixture/lnInclude -I/opt/openfoam7/src/transportModels -I/opt/openfoam7/src/transportModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam7/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/openfoam7/src/TurbulenceModels/incompressible/lnInclude -I/opt/openfoam7/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/opt/openfoam7/src/finiteVolume/lnInclude -I/opt/openfoam7/src/dynamicFvMesh/lnInclude -I/opt/openfoam7/src/meshTools/lnInclude -I/opt/openfoam7/src/sampling/lnInclude -IlnInclude -I. -I/opt/openfoam7/src/OpenFOAM/lnInclude -I/opt/openfoam7/src/OSspecific/POSIX/lnInclude -fPIC -c interThermalFoam.C -o Make/linux64GccDPInt32Opt/interThermalFoam.o
In file included from interThermalFoam.C:47:0:
createLaserFields.H:1:1: error: ‘Info’ does not name a type
Info<< "Reading the laser beam heat source\n" << endl;
^
createLaserFields.H:7:2: error: ‘runTime’ was not declared in this scope
runTime.timeName(),
^
createLaserFields.H:8:2: error: ‘mesh’ was not declared in this scope
mesh,
^
createLaserFields.H:62:1: error: ‘Info’ does not name a type
Info<< "Reading field Qhs\n" << endl;
^
createLaserFields.H:68:3: error: ‘runTime’ was not declared in this scope
runTime.timeName(),
^
createLaserFields.H:69:3: error: ‘mesh’ was not declared in this scope
mesh,
^
createLaserFields.H:73:2: error: ‘mesh’ was not declared in this scope
mesh,
^
avinashv20 is offline   Reply With Quote

Old   December 9, 2021, 16:41
Default
  #5
New Member
 
Join Date: Jul 2021
Posts: 4
Rep Power: 4
Mnuk is on a distinguished road
Hi Avinash, did you solve the problem? Maybe you can solve writing:

#include "createTime.H"
#include "createMesh.H"

before #include "createLaserFields.H".

Hope this helps
Mnuk is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 16:50.