buoyantBoussinesqPimpleFoam for Condensation with a new Boundary condition
Hi
I am having the same problem. I am working with the buoyantBoussinesqPimpleFoam for Condensation with a new Boundary condition defined within the solver. I have the problem defining the laminarTransport and Phi in the readTransportProperties.H & createFields.H When i don't define #include "readTransportProperties.H" in CreateFields.H createFields.H:96: error: ‘laminarTransport’ was not declared in this scope When i define #include "readTransportProperties.H" in CreateFields.H readTransportProperties.H:29: error: ‘phi’ was not declared in this scope In the Make/options File EXE_INC = \ -I../buoyantBoussinesqSimpleFoam \ -I$(LIB_SRC)/finiteVolume/cfdTools \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel EXE_LIBS = \ -lbasicThermophysicalModels \ -lspecie \ -lfiniteVolume \ -lmeshTools \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleTransportModels Kindly guide me.. If i am making a lot of Mistakes. Thanks & Regards Unnikrishnan- |
Greetings Unnikrishnan,
I've moved your post from the thread http://www.cfd-online.com/Forums/ope...eld-1-6-x.html to this new thread, because this is a programming question, not a bug related report! As for your question, I have a few questions of my own, in order to figure out what is going on:
Bruno |
Dear Bruno,
Thankyou for the reply. I had copied the Solver Folder to a new Location.. /home/atmoun/OpenFOAM/atmoun-2.0.1/applications/solvers/buoyantBoussinesqPimpleFoam_Unni the Original Solver is at the location /opt/openfoam201/applications/solvers/heatTransfer/buoyantBoussinesqPimpleFoam & I checked the createFields.H & #include "condensationWallFvPatchScalarField.H" #include "readTransportProperties.H" #include "createPhi.H" is all present in the file at the exact same location. But when i run wmake.. i get the following error.. atmoun@server:~/OpenFOAM/atmoun-2.0.1/applications/solvers/buoyantBoussinesqPimpleFoam_Unni$ wmake Making dependency list for source file buoyantBoussinesqPimpleFoam_Unni.C Making dependency list for source file condensationWallFvPatchScalarField.C SOURCE=buoyantBoussinesqPimpleFoam_Unni.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../buoyantBoussinesqSimpleFoam_Unni -I/opt/openfoam201/src/finiteVolume/cfdTools -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam201/src/turbulenceModels -I/opt/openfoam201/src/turbulenceModels/incompressible/RAS/lnInclude -I/opt/openfoam201/src/transportModels -I/opt/openfoam201/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoam_Unni.o In file included from createFields.H:93, from buoyantBoussinesqPimpleFoam_Unni.C:68: readTransportProperties.H: In function ‘int main(int, char**)’: readTransportProperties.H:29: error: ‘phi’ was not declared in this scope /opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoam_Unni.o] Error 1 atmoun@server:~/OpenFOAM/atmoun-2.0.1/applications/solvers/buoyantBoussinesqPimpleFoam_Unni$ About the sibling folder "buoyantBoussinesqSimpleFoam" was missing. :( But now i have added the "buoyantBoussinesqSimpleFoam" folder to /home/atmoun/OpenFOAM/atmoun-2.0.1/applications/solvers/ atmoun@server:~/OpenFOAM/atmoun-2.0.1/applications/solvers/buoyantBoussinesqPimpleFoam_Unni$ wmake Making dependency list for source file buoyantBoussinesqPimpleFoam_Unni.C Making dependency list for source file condensationWallFvPatchScalarField.C SOURCE=buoyantBoussinesqPimpleFoam_Unni.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../buoyantBoussinesqSimpleFoam -I/opt/openfoam201/src/finiteVolume/cfdTools -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam201/src/turbulenceModels -I/opt/openfoam201/src/turbulenceModels/incompressible/RAS/lnInclude -I/opt/openfoam201/src/transportModels -I/opt/openfoam201/src/transportModels/incompressible/singlePhaseTransportModel -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoam_Unni.o In file included from createFields.H:93, from buoyantBoussinesqPimpleFoam_Unni.C:68: readTransportProperties.H: In function ‘int main(int, char**)’: readTransportProperties.H:29: error: ‘phi’ was not declared in this scope /opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linux64GccDPOpt/buoyantBoussinesqPimpleFoam_Unni.o] Error 1 atmoun@server:~/OpenFOAM/atmoun-2.0.1/applications/solvers/buoyantBoussinesqPimpleFoam_Unni$ Could you please help me.. with what this 2 errors are.. readTransportProperties.H: In function ‘int main(int, char**)’: readTransportProperties.H:29: error: ‘phi’ was not declared in this scope Thanks & Regards Unnikrishnan |
Hi Unnikrishnan,
OK, I've tested just now with an OpenFOAM 2.0.1 installation the following steps: Code:
mkdir -p $FOAM_RUN Code:
gedit buoyantBoussinesqPimpleFoam_unni/Make/files Code:
EXE = $(FOAM_USER_APPBIN)/buoyantBoussinesqPimpleFoam_unni Code:
wmake buoyantBoussinesqPimpleFoam_unni Best regards, Bruno |
Thankyou Bruno.
You are correct, I made a few mistakes in my new solver. Now it is working fine. The Mistakes I made was When I copied the readTransportProperties.H from another solver. I missed to include the line #include "createPhi.H" Now there is no problem with the readTransportProperties.H:29: error: ‘phi’ was not declared in this scope & in the sibling folder "buoyantBoussinesqSimpleFoam" I forgot :( then edited the file "Make/files": EXE = $(FOAM_USER_APPBIN)/buoyantBoussinesqSimpleFoam_unni Now that the solver is working.. I am having problem only with the boundary condition. I will check the Boundary condition for mistake and If i am finding it difficult. I will come back to the Forum.. But thanks a lot for the help. Thanks & Regards Unnikrishnan. |
All times are GMT -4. The time now is 04:03. |