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

polynomial thermophysical properties II

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2011, 16:23
Default
  #41
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
Krishna,

I hope you've fixed your mistakes in makeBasicMixture.H: things like "EqnOfSta te" should not have any spaces.

Another mistake I see is in your options file:

this,
$(FOAM_USER_LIBBIN)/libuserBasicThermophysicalModels.so\

should not contain the extension .so. I also I think you might to change it like the following:

-L$(FOAM_USER_LIBBIN) \
-luserBasicThermophysicalModels \

Read point number 3 in section 3.2.2.2 and you'll know what I mean.
One more thing: make sure to compile your solver using just 'wmake' and your libraries using 'wmake libso'.

Just re-check everything and do everything carefully and you should have it.

Ammar.

Last edited by atareen64; July 12, 2011 at 16:41.
atareen64 is offline   Reply With Quote

Old   July 14, 2011, 03:28
Default
  #42
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Ammar,
I changed the options file but could not succeed in compiling the solver.
I am not able to understand where exactly i went wrong.

Here is the error: Please help me

root@santhosh-desktop:/opt/openfoam200/applications/solvers/compressible/rhoSimpleFoam/rhoPorousMRFSimpleFoam# wmake
SOURCE=rhoPorousMRFSimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/santhosh/OpenFOAM/root-2.0.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam200/src/thermophysicalModels/thermalPorousZone/lnInclude -I/opt/openfoam200/src/turbulenceModels -I/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel -I/opt/openfoam200/src/finiteVolume/cfdTools -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam.o
rhoPorousMRFSimpleFoam.C:35:28: error: basicPsiThermo.H: No such file or directory
In file included from /opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:46,
from rhoPorousMRFSimpleFoam.C:36:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:51:25: error: basicThermo.H: No such file or directory
In file included from /opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:46,
from rhoPorousMRFSimpleFoam.C:36:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:86: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:86: error: expected ‘;’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:132: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:132: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:145: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:145: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:176: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:176: error: expected ‘;’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:182: error: expected ‘;’ before ‘const’
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H: In static member function ‘static Foam::autoPtr<Foam::compressible::turbulenceModel> Foam::compressible::turbulenceModel::addturbulence ModelConstructorToTable<turbulenceModelType>::Newt urbulenceModel(const Foam::volScalarField&, const Foam::volVectorField&, const Foam::surfaceScalarField&, int)’:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ‘thermoPhysicalModel’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ‘turbulenceModelName’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H: In static member function ‘static Foam::autoPtr<Foam::compressible::turbulenceModel> Foam::compressible::turbulenceModel::addRemovablet urbulenceModelConstructorToTable<turbulenceModelTy pe>::NewturbulenceModel(const Foam::volScalarField&, const Foam::volVectorField&, const Foam::surfaceScalarField&, int)’:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ‘thermoPhysicalModel’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:108: error: ‘turbulenceModelName’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H: In member function ‘const Foam::volScalarField& Foam::compressible::turbulenceModel::mu() const’:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:184: error: ‘thermophysicalModel_’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H: In member function ‘const Foam::volScalarField& Foam::compressible::turbulenceModel::alpha() const’:
/opt/openfoam200/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H:190: error: ‘thermophysicalModel_’ was not declared in this scope
In file included from rhoPorousMRFSimpleFoam.C:36:
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H: At global scope:
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:153: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:153: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:166: error: ISO C++ forbids declaration of ‘basicThermo’ with no type
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:166: error: expected ‘,’ or ‘...’ before ‘&’ token
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H: In static member function ‘static Foam::autoPtr<Foam::compressible::RASModel> Foam::compressible::RASModel::adddictionaryConstru ctorToTable<RASModelType>::New(const Foam::volScalarField&, const Foam::volVectorField&, const Foam::surfaceScalarField&, int)’:
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ‘thermoPhysicalModel’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ‘turbulenceModelName’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H: In static member function ‘static Foam::autoPtr<Foam::compressible::RASModel> Foam::compressible::RASModel::addRemovabledictiona ryConstructorToTable<RASModelType>::New(const Foam::volScalarField&, const Foam::volVectorField&, const Foam::surfaceScalarField&, int)’:
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ‘thermoPhysicalModel’ was not declared in this scope
/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel/RASModel.H:128: error: ‘turbulenceModelName’ was not declared in this scope
In file included from rhoPorousMRFSimpleFoam.C:48:
../createFields.H: In function ‘int main(int, char**)’:
../createFields.H:3: error: ‘basicPsiThermo’ was not declared in this scope
../createFields.H:3: error: template argument 1 is invalid
../createFields.H:4: error: invalid type in declaration before ‘(’ token
../createFields.H:5: error: ‘basicPsiThermo’ is not a class or namespace
../createFields.H:7: error: ‘thermo’ was not declared in this scope
../createFields.H:7: error: ‘pThermo’ cannot be used as a function
make: *** [Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam.o] Error 1

Options file
EXE_INC = \
-I.. \
-I$(WM_PROJECT_USER_DIR)/lib/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermalPorousZone/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/compressible/RAS/RASModel \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

EXE_LIBS = \
-L$(FOAM_USER_LIBBIN)\
-luserBasicThermophysicalModels\
-lthermalPorousZone \
-lspecie \
-lcompressibleTurbulenceModel \
-lcompressibleRASModels \
-lfiniteVolume \
-lmeshTools
vemps is offline   Reply With Quote

Old   July 14, 2011, 07:25
Default
  #43
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Hi Ammar,

I could find the problem.
Actually i am compiling the solver with root but the lib/thermophysicalmodels directory with the changes are placed in user directory. I just copied the lib directory to root and it worked. Modified the options file as shown below.
EXE_INC = \
-I.. \
-I$(WM_PROJECT_USER_DIR)/lib/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermalPorousZone/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/compressible/RAS/RASModel \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

EXE_LIBS = \
-L$(FOAM_USER_LIBBIN)/libuserBasicThermophysicalModels \
-lthermalPorousZone \
-lspecie \
-lcompressibleTurbulenceModel \
-lcompressibleRASModels \
-lfiniteVolume \
-lmeshTools

Now i get the message without any errors. I am not sure whether the solver is compiled. Please confirm. Here is the message i got after doing wmake.
root@santhosh-desktop:/opt/openfoam200/applications/solvers/compressible/rhoSimpleFoam/rhoPorousMRFSimpleFoam# wmake
SOURCE=rhoPorousMRFSimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/santhosh/OpenFOAM/root-2.0.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam200/src/thermophysicalModels/thermalPorousZone/lnInclude -I/opt/openfoam200/src/turbulenceModels -I/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel -I/opt/openfoam200/src/finiteVolume/cfdTools -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/santhosh/OpenFOAM/root-2.0.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam200/src/thermophysicalModels/thermalPorousZone/lnInclude -I/opt/openfoam200/src/turbulenceModels -I/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel -I/opt/openfoam200/src/finiteVolume/cfdTools -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam.o -L/opt/openfoam200/platforms/linux64GccDPOpt/lib \
-L/home/santhosh/OpenFOAM/root-2.0.0/platforms/linux64GccDPOpt/lib/libuserBasicThermophysicalModels -lthermalPorousZone -lspecie -lcompressibleTurbulenceModel -lcompressibleRASModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /opt/openfoam200/platforms/linux64GccDPOpt/bin/rhoPorousMRFSimpleFoam
root@santhosh-desktop:/opt/openfoam200/applications/solvers/compressible/rhoSimpleFoam/rhoPorousMRFSimpleFoam#

May i know whether i can proceed assuming that polynomial thermophysical properties are captured.
My thermophysicalproperties file is as shown below
thermoType hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hPolynomialThermo4<perfectGas>>>>>;
mixture air
1
28.966 //molecular weight [kg/kmol]
0.0 //standard formation enthalpy [J/kg]
0.0 //standard formation enthropy [J/kg]
cpPolynomial (9.86931771e02 1.73030395e-01 6.64980490e-05 1.25487e-09)//heat capacity [J/kgK]
1.458e-05 110.4;
kappaPolynomial (4.64248147e-03 7.28706102e-05 -6.13777213e-09); //heat conductivity [W/mK]

one information Dear Ammar, in the code hPolynomialThermo with order as 4. whether it implies to Cp and thermal conductivity both.?
As my Cp takes 4 values and thermal conductivity with 3 coefficients,whether the code works O.K. recognizing each coefficients order.
Sorry to bother you with lot of queries.

Regards
Krishna
vemps is offline   Reply With Quote

Old   July 14, 2011, 15:30
Default
  #44
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
Hey!

I'm glad you got your code to compile. The easiest way to check whether the code compiled correctly is to run 'wmake' again once you've already run it and if you get a message like the following:

‘.../OpenFOAM/OpenFOAM-2.0.0/applications/bin/linuxOptMPICH/pisoFoam’
is up to date.


You know that it compiled properly.

Second, I don't quite understand what you're asking. But from what I understand, you never want to put modified code in the root folder. What I do is I copy the solver or the library source to ~/OpenFOAM/userName/applications for a solver or ~/OpenFOAM/userName/lib for a library and compile it there.

One other suggestion is rename your solver, i.e. for the solver sonicFoam, I changed the name to modifiedSonicFoam so I know there is no overlap or something like that when I run them.

Finally you can specify any order of the polynomial for dynamic viscosity and heat conductivity. For example muPolynomial can be order 4 and kappaPolynomial can be order 7. My case has constant cp so unfortunately I haven't had a chance to play around cp that's dependent on temperature: but I'm sure you can play around with the code and figure it out.

Hope this helps,
Ammar.
atareen64 is offline   Reply With Quote

Old   July 15, 2011, 02:28
Default
  #45
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Hi Ammar,
Thank you for your suggestions.
I am getting the uptodate message.
But i am still seeing the error. Please help me where i went wrong.
Krishna

santhosh@santhosh-desktop:~/OpenFOAM/santhosh-2.0.0/run/converter1$ rhoPorousMRFSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.0-d79727c3fca7
Exec : rhoPorousMRFSimpleFoam
Date : Jul 15 2011
Time : 10:54:10
Host : santhosh-desktop
PID : 13567
Case : /home/santhosh/OpenFOAM/santhosh-2.0.0/run/converter1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hPolynomialThermo4<perfectGas>>>>>


--> FOAM FATAL ERROR:
Unknown basicPsiThermo type hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hPolynomialThermo4<perfectGas>>>>>

Valid basicPsiThermo types are:

11
(
ePsiThermo<pureMixture<constTransport<specieThermo <eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieT hermo<janafThermo<perfectGas>>>>>
hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieT hermo<janafThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<constTransport<specieTherm o<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specie Thermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specie Thermo<janafThermo<perfectGas>>>>>
)



From function basicPsiThermo::New(const fvMesh&)
in file psiThermo/basicPsiThermo/basicPsiThermoNew.C at line 60.

FOAM exiting
vemps is offline   Reply With Quote

Old   July 17, 2011, 22:44
Default
  #46
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
Hey,

Even though your library compiled, your solver didn't compile with the new library. You need to copy all the solver files to your user/applications folder and re-compile the solver with the new library with a different name: because rhoPorousMRFSimpleFoam is in the root folder and is not yet compatible with your new thermophysical library.

Go through the first few posts in this thread and you'll see how to compile the solver with your new library.

Try it. Otherwise I can email you my modified source code as an example and somescreen shots so you can learn from that.

-Ammar.
atareen64 is offline   Reply With Quote

Old   July 18, 2011, 03:06
Default
  #47
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Hi Ammar,
I made the changes by renaming the solver folder
rhoPorousMRFSimpleFoam to rhoPorousMRFSimpleFoam_poly
and
rhoPorousMRFSimpleFoam.C to rhoPorousMRFSimpleFoam_poly.C
and in the Make Folder files

rhoPorousMRFSimpleFoam_poly.C

EXE = $(FOAM_APPBIN)/rhoPorousMRFSimpleFoam_poly

I compiled using wmake but showing the following error

santhosh@santhosh-desktop:~/OpenFOAM/santhosh-2.0.0/applications/solvers/compressible/rhoSimpleFoam/rhoPorousMRFSimpleFoam_poly$ wmakeMaking dependency list for source file rhoPorousMRFSimpleFoam_poly.C
SOURCE=rhoPorousMRFSimpleFoam_poly.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/santhosh/OpenFOAM/santhosh-2.0.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam200/src/thermophysicalModels/thermalPorousZone/lnInclude -I/opt/openfoam200/src/turbulenceModels -I/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel -I/opt/openfoam200/src/finiteVolume/cfdTools -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam_poly.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/home/santhosh/OpenFOAM/santhosh-2.0.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam200/src/thermophysicalModels/thermalPorousZone/lnInclude -I/opt/openfoam200/src/turbulenceModels -I/opt/openfoam200/src/turbulenceModels/compressible/RAS/RASModel -I/opt/openfoam200/src/finiteVolume/cfdTools -I/opt/openfoam200/src/finiteVolume/lnInclude -I/opt/openfoam200/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/rhoPorousMRFSimpleFoam_poly.o -L/opt/openfoam200/platforms/linux64GccDPOpt/lib \
-L/home/santhosh/OpenFOAM/santhosh-2.0.0/platforms/linux64GccDPOpt/lib/libuserBasicThermophysicalModels -lthermalPorousZone -lspecie -lcompressibleTurbulenceModel -lcompressibleRASModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lm -o /opt/openfoam200/platforms/linux64GccDPOpt/bin/rhoPorousMRFSimpleFoam_poly
/usr/bin/ld: cannot open output file /opt/openfoam200/platforms/linux64GccDPOpt/bin/rhoPorousMRFSimpleFoam_poly: Permission denied
collect2: ld returned 1 exit status
make: *** [/opt/openfoam200/platforms/linux64GccDPOpt/bin/rhoPorousMRFSimpleFoam_poly] Error 1
santhosh@santhosh-desktop:~/OpenFOAM/santhosh-2.0.0/applications/solvers/compressible/rhoSimpleFoam/rhoPorousMRFSimpleFoam_poly$

Please help me where i went wrong. You can mail me the modified code and screenshots .

Regards
Krishna
vemps is offline   Reply With Quote

Old   July 18, 2011, 12:43
Default
  #48
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
Hey!

Look at the error code. It says permission denied. It means your still trying to compile something or use something from the root folder. You don't want to make any changes to your root folder. Copy everything this to your home directory and try it again.

What's your email address? I'll send you a sample library and a solver.

-Ammar.
atareen64 is offline   Reply With Quote

Old   July 19, 2011, 02:23
Default
  #49
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Hi Ammar,
I tried moving the folders to user login and it compiled and checked with wmake again. i got the up to date message too. But still when i worked with new solver same error message is displayed.
Any way please send me the snapshots and your code to vempati.krishna@gmail.com
regards
Krishna
vemps is offline   Reply With Quote

Old   August 1, 2011, 04:38
Default
  #50
New Member
 
KKV
Join Date: May 2009
Posts: 18
Rep Power: 17
vemps is on a distinguished road
Hi Ammar,

Can you please send the snapshots and code to my mail id. I haven't received the data. Please help me.
Regards
Krishna
vemps is offline   Reply With Quote

Old   March 11, 2014, 07:37
Default
  #51
New Member
 
Punit Walia
Join Date: Jul 2013
Location: Mumbai, India
Posts: 5
Rep Power: 13
Punit Walia is on a distinguished road
Hi Herbert,

I am using OpenFOAM version 2.2.0. I followed all your steps but after the command "wmake libso", i got the following error:

punitwalia@orwell-desktop:~/OpenFOAM/punitwalia-2.2.0/lib$ wmake libso
SOURCE=psiThermo/psiThermos.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/punitwalia/OpenFOAM/punitwalia-2.2.0/lib/thermophysicalModels/basic/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/psiThermos.o
In file included from psiThermo/hePsiThermo.H:97:0,
from psiThermo/psiThermos.C:41:
psiThermo/hePsiThermo.C:124:1: error: expected constructor, destructor, or type conversion before ‘(’ token
psiThermo/psiThermos.C:90:1: error: expected constructor, destructor, or type conversion before ‘(’ token
make: *** [Make/linux64GccDPOpt/psiThermos.o] Error 1



The 124th line in the psithermo.C file is the second line of the following modification added as you suggested:

makeBasicPsiPolyThermo
(
hePsiThermo,
pureMixture,
polynomialTransport,
3,
hPolynomialThermo,
4,
perfectGas
);




Please tell me what is the mistake i am doing and how to correct it.
Thank You.
Punit Walia is offline   Reply With Quote

Old   March 25, 2014, 15:32
Default
  #52
New Member
 
anshul bansal
Join Date: Jun 2013
Posts: 22
Rep Power: 13
anshul bansal is on a distinguished road
hi steafan and all,
i have trouble with the first post of steafan....
i done all the things as mention in post.... i got this error...


anshu@anshu-desktop:~/OpenFOAM/anshu-2.2.1/lib/basic$ wmake libso
wmakeLnInclude: linking include files to ./lnInclude
SOURCE=basicThermo/basicThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/basicThermo.o
SOURCE=fluidThermo/fluidThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fluidThermo.o
SOURCE=psiThermo/psiThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/psiThermo.o
SOURCE=psiThermo/psiThermos.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/psiThermos.o
In file included from /opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.H:242:0,
from psiThermo/psiThermos.C:28:
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C: In constructor ‘Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo(Foam::Istream&)’:
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C:52:41: error: ‘specie’ has not been declared
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C:55:41: error: ‘specie’ has not been declared
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C: In constructor ‘Foam::hPolynomialThermo<EquationOfState, PolySize>::hPolynomialThermo(const Foam::dictionary&)’:
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C:86:41: error: ‘specie’ has not been declared
/opt/openfoam221/src/thermophysicalModels/specie/lnInclude/hPolynomialThermo.C:89:41: error: ‘specie’ has not been declared
psiThermo/psiThermos.C: At global scope:
psiThermo/psiThermos.C:154:1: error: expected constructor, destructor, or type conversion before ‘(’ token
make: *** [Make/linux64GccDPOpt/psiThermos.o] Error 1



please help me out of this trouble...


Thanks,,
Anshul
anshul bansal is offline   Reply With Quote

Old   April 10, 2014, 06:32
Default
  #53
New Member
 
Jean-Marc Ndombo
Join Date: Jan 2014
Posts: 2
Rep Power: 0
ndombo is on a distinguished road
Hi Chrisi

I am a new user of OpenFoam, I used the 2.2.2 version and I have many problems with the tutorial given by Stefan to define thermal function for the thermal properties. Do you know where can I find a tutorial for the 2.2.2 version ?

Thank you by advance

Jean-Marc

Last edited by ndombo; April 10, 2014 at 06:44. Reason: screenshop
ndombo is offline   Reply With Quote

Old   April 10, 2014, 06:45
Unhappy
  #54
New Member
 
Jean-Marc Ndombo
Join Date: Jan 2014
Posts: 2
Rep Power: 0
ndombo is on a distinguished road
Quote:
Originally Posted by ndombo View Post
Hi Chrisi

I am a new user of OpenFoam, I used the 2.2.2 version and I have many problems with the tutorial given by Stefan to define thermal function for the thermal properties. Do you know where can I find a tutorial for the 2.2.2 version ?

Thank you by advance

Jean-Marc
jmndombo@ubuntu:/home/data/OpenFoam/MultiRegion/PROJECT_USER_DIR/lib$ wmake
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file basicThermo/basicThermo.C
Making dependency list for source file fluidThermo/fluidThermo.C
Making dependency list for source file psiThermo/psiThermo.C
Making dependency list for source file psiThermo/psiThermos.C
Making dependency list for source file rhoThermo/rhoThermo.C
Making dependency list for source file rhoThermo/rhoThermos.C
Making dependency list for source file derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C
Making dependency list for source file derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C
Making dependency list for source file derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C
Making dependency list for source file derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C
Making dependency list for source file derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C
SOURCE=basicThermo/basicThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/data/OpenFoam/MultiRegion/PROJECT_USER_DIR/lib/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/turbulenceModels -I/opt/openfoam222/src/finiteVolume/cfdTools -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/basicThermo.o
SOURCE=fluidThermo/fluidThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/data/OpenFoam/MultiRegion/PROJECT_USER_DIR/lib/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/turbulenceModels -I/opt/openfoam222/src/finiteVolume/cfdTools -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fluidThermo.o
SOURCE=psiThermo/psiThermo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/data/OpenFoam/MultiRegion/PROJECT_USER_DIR/lib/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/turbulenceModels -I/opt/openfoam222/src/finiteVolume/cfdTools -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/psiThermo.o
SOURCE=psiThermo/psiThermos.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/data/OpenFoam/MultiRegion/PROJECT_USER_DIR/lib/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/turbulenceModels -I/opt/openfoam222/src/finiteVolume/cfdTools -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/psiThermos.o
In file included from psiThermo/hePsiThermo.H:97:0,
from psiThermo/psiThermos.C:41:
psiThermo/hePsiThermo.C:129:1: error: 'hePsiThermo' does not name a type
psiThermo/hePsiThermo.C:129:1: error: 'hePsiThermopureMixturepolynomialTransport3hPolyno mialThermo4perfectGas' has not been declared
psiThermo/hePsiThermo.C:129:1: error: 'hePsiThermopureMixturepolynomialTransport3hPolyno mialThermo4perfectGas' has not been declared
psiThermo/hePsiThermo.C:129:1: warning: unused variable 'debug' [-Wunused-variable]
psiThermo/hePsiThermo.C:129:1: error: 'basicThermo' does not name a type
make: *** [Make/linux64GccDPOpt/psiThermos.o] Error 1
ndombo is offline   Reply With Quote

Old   November 21, 2019, 08:12
Smile openFoam version
  #55
New Member
 
Anurag Ray
Join Date: May 2019
Posts: 3
Rep Power: 7
anuragray14 is on a distinguished road
Can you please specify the version of openFOAM that you are using and if possible please specify all the files along with the directories

It will be quite helpful to me
thank you!!
anuragray14 is offline   Reply With Quote

Reply


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
Introducing polynomial thermophysical properties juanltm OpenFOAM Running, Solving & CFD 11 September 22, 2016 13:54
liquid in Thermophysical properties David_010 OpenFOAM 1 January 25, 2012 10:12
polynomial thermophysical properties jason.ryon OpenFOAM 2 May 11, 2011 07:16
thermophysical properties of two different gases arvind_arya OpenFOAM Pre-Processing 1 August 4, 2010 14:04
thermophysical properties of ham Alex Ivancic Main CFD Forum 1 November 5, 1998 12:09


All times are GMT -4. The time now is 14:05.