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

Multiphase flow and Phase change due to heat transferevaporation

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2009, 13:30
Default build instructions
  #21
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
first of all,
type in wclean to cleanup previous buid
mkraposhin is offline   Reply With Quote

Old   March 23, 2009, 05:18
Default
  #22
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
Thanks again for replying
following errors issued;
lnInclude/basicThermo.H:In member function 'virtual Foam::volScalarFields& Foam::basicThermo:: p()':
lnInclude/basicThermo.H:126: error: invalid initialization of reference of type 'Foam::volScalarFields&' from expression of type 'const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>'
lnInclude/basicThermo.H:In member function 'virtual Foam::volScalarFields& Foam::basicThermo::h()':
lnInclude/basicThermo.H:141: error: invalid initialization of reference of type 'Foam::volScalarFields&' from expression of type 'const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>'
lnInclude/basicThermo.H:In member function 'virtual Foam::volScalarFields& Foam::basicThermo::e()':
lnInclude/basicThermo.H:186: error: invalid initialization of reference of type 'Foam::volScalarFields&' from expression of type 'const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>'
haghajani is offline   Reply With Quote

Old   March 23, 2009, 06:32
Default
  #23
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
1) What OpenFOAM version are you using? I'm using v. 1.4.1
2) What operating system? (OpenSuSE 10.3)
3) What g++ version? (4.2.1)
mkraposhin is offline   Reply With Quote

Old   March 23, 2009, 07:19
Default
  #24
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
OpenFoam 1.5
OS: OpenSUSE 11
gcc version 4.3.1
haghajani is offline   Reply With Quote

Old   March 25, 2009, 05:48
Default
  #25
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
Have you got any idea, what the problem could be?
thanks,
Hamed
haghajani is offline   Reply With Quote

Old   March 25, 2009, 06:24
Default
  #26
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
hi, haghajani,

I'm sorry for late reply

i'll try installing OF 1.5 this week, then i'll try to compile solver for this version and report to you 29.03
mkraposhin is offline   Reply With Quote

Old   March 29, 2009, 11:02
Default cavitatingPimpleFoam for OpenFOAM 1.5
  #27
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Hi All!
Here is a link for source code of caviatingPimpleFoam solver for OpenFOAM 1.5

http://www.os-cfd.narod.ru/small_fil...leFoam_1.5.tgz
mkraposhin is offline   Reply With Quote

Old   April 3, 2009, 14:11
Default
  #28
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
Many thanks for updating the forum with you code;

Today I came to your code; after wclean & wmake, again I faced this error;
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/hamed/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IcompressibilityModels/compressibilityModel -IgammaModels/gammaModel -IbaroThermo -I/home/hamed/OpenFOAM/OpenFOAM-1.5/src/transportModels -IaltCompressibleTurbModels/lnInclude -IlnInclude -I. -I/home/hamed/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/hamed/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/cavitatingPimpleFoam.o Make/linux64GccDPOpt/compressibilityModel.o Make/linux64GccDPOpt/newCompressibilityModel.o Make/linux64GccDPOpt/linear.o Make/linux64GccDPOpt/Wallis.o Make/linux64GccDPOpt/Chung.o Make/linux64GccDPOpt/gammaModel.o Make/linux64GccDPOpt/newGammaModel.o Make/linux64GccDPOpt/constant.o Make/linux64GccDPOpt/defaultGM.o Make/linux64GccDPOpt/SinghalMerkle.o Make/linux64GccDPOpt/Kunz.o Make/linux64GccDPOpt/Merkle.o Make/linux64GccDPOpt/baroThermo.o -L/home/hamed/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt \
-lfiniteVolume -L/home/hamed/OpenFOAM/hamed-1.5/lib/linux64GccDPOpt -lcompressibleAltTurbulenceModels -lOpenFOAM -liberty -ldl -lm -o /home/hamed/OpenFOAM/hamed-1.5/applications/bin/linux64GccDPOpt/cavitatingPimpleFoam
/usr/bin/ld: cannot find -lcompressibleAltTurbulenceModels
collect2: ld returned 1 exit status
make: *** [/home/hamed/OpenFOAM/hamed-1.5/applications/bin/linux64GccDPOpt/cavitatingPimpleFoam] Error 1

unfortunately, I couldn't find out the source;

Thanks,
Hamed
haghajani is offline   Reply With Quote

Old   April 3, 2009, 14:26
Default interPhaseChangeFoam tutorial
  #29
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear all,
If your are going to work with interPhaseChangeFoam and you are looking for a tutorial, I have update the well-known dambreak case, and you can use of it to start;

Good Luck,
Hamed
Attached Files
File Type: gz dambreak.tar.gz (3.5 KB, 93 views)
haghajani is offline   Reply With Quote

Old   April 5, 2009, 03:16
Default
  #30
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Go to directory altCompressibleTurbModels, type wclean and then wmake
mkraposhin is offline   Reply With Quote

Old   April 7, 2009, 09:25
Default
  #31
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
sorry to interrupt you too much,
but I wonder I can not make the solver;

following error has been raised;
....
Make/linux64GccDPOpt/mutStandardRoughWallFunctionFvPatchScalarField.o: In function `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const':
mutStandardRoughWallFunctionFvPatchScalarField.C .text._ZNK4Foam14objectRegistry12lookupObjectINS_1 4GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEE ERKT_RKNS_4wordE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const]+0x170): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
mutStandardRoughWallFunctionFvPatchScalarField.C .text._ZNK4Foam14objectRegistry12lookupObjectINS_1 4GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEEE ERKT_RKNS_4wordE[Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const]+0x2c4): undefined reference to `Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::typeName'
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1

best,
Hamed
haghajani is offline   Reply With Quote

Old   April 7, 2009, 15:11
Default
  #32
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Can you post here all steps you are doing?

because i don't have mutStandardWallFunctions

Your information could be very useful, because some of my students experienced some problems with my solver, but i'm - not ^)
mkraposhin is offline   Reply With Quote

Old   April 7, 2009, 15:16
Default
  #33
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
actually, you should go to dir altCompressibleTurbModels and type 'wclean', then 'wmake libso'

then, you must go up and type
'wclean; wmake'
mkraposhin is offline   Reply With Quote

Old   April 8, 2009, 06:18
Default
  #34
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
Thanks again,

it has been compiled.

best,
Hamed
haghajani is offline   Reply With Quote

Old   April 13, 2009, 08:56
Default
  #35
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17
mahaputra is on a distinguished road
Dear mkraposhin

thanks for your new solver

do you hava a simple case for cavitatingPimpleFoam?

or could you please show us how to build a new file so called constant/thermodynamicPr ? based on :


Info<< "Reading thermodynamicProperties\n" << endl;

IOdictionary thermodynamicProperties
(
IOobject
(
"thermodynamicProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);

dimensionedScalar psil(thermodynamicProperties.lookup("psil"));

dimensionedScalar rholSat(thermodynamicProperties.lookup("rholSat")) ;

dimensionedScalar psiv(thermodynamicProperties.lookup("psiv"));

dimensionedScalar pSat(thermodynamicProperties.lookup("pSat"));

dimensionedScalar rhovSat("rhovSat", psiv*pSat);

dimensionedScalar rhol0("rhol0", rholSat - pSat*psil);

Info << "rhol0 - " << rhol0 << endl;

dimensionedScalar rhoMin(thermodynamicProperties.lookup("rhoMin"));




many thanks
mahaputra is offline   Reply With Quote

Old   April 15, 2009, 10:48
Default
  #36
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
You can use thermodynamicProperties file from rasCavitatingFoam (or cavitatingFoam) solver tutorial
mkraposhin is offline   Reply With Quote

Old   April 15, 2009, 13:45
Default
  #37
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17
mahaputra is on a distinguished road
Dear Matvej

thanks for the information

anyway , what about the keyword gammaModel ? since it is undefined in dictionary of thermodynamicProperties ?

how should i modifiy the gammaModel?
mahaputra is offline   Reply With Quote

Old   April 16, 2009, 10:56
Default Cavitation solver
  #38
Senior Member
 
mkraposhin's Avatar
 
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21
mkraposhin is on a distinguished road
Dear friends!

I found some errors in the code of my solver. I'll fix them till 19.04.2009. Then, i'll put links to test cases and updated code on this thread.
mkraposhin is offline   Reply With Quote

Old   May 5, 2009, 10:53
Default
  #39
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear Matvej,
Have you updated the code/Test cases?

Please update the tread with your comments

Best regards,
Hamed
haghajani is offline   Reply With Quote

Old   May 7, 2009, 06:52
Default
  #40
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Dear All,

How can I trace the vaporized liquid (changed phase from 1->0) in to air.
I am trying to study the effect of flash evaporation in high pressure liquid Hydrogen release. I used interPhaseChangeFoam for a simple case and the results seems reasonable. Now I want also see the vapor of hydrogen inside surrounding air.

Best regards,
Hamed Aghajani
hamed.aghajani@gmail.com
h.aghajani@kingston.ac.uk
haghajani 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
Modelling Supersonic TwoPhase Flow with Phase Change wes OpenFOAM Running, Solving & CFD 9 July 27, 2021 11:05
About phase change heat and mass transfer Michael FLUENT 2 February 13, 2011 01:49
Two phase flow with phase change Ahmad Al-Zoubi CFX 1 November 26, 2008 03:59
Two-phase flow in T-junction, multiphase of DPM? Tony FLUENT 2 July 8, 2008 01:26
how to deal with phase-change heat exchanger? cherry FLUENT 1 April 16, 2002 21:59


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