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

Condensation using OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2015, 23:24
Default Condensation using OpenFOAM
  #1
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
Hi all,
I would like to know much about how condensation phenomenon could be done by using openFOAM solvers like twoPhaseEulerFoam and compressibleTwoPhaseEulerFOAM. Any detailed info abt tutorials related with any of these solvers or journals regarding multiphase flow would be most appreciated.
There are certain default tutorials like bubblecolumn and bed in these solvers but no detailed info abt what it does isn't provided.

Thank you,
Have a great day all

Last edited by ARUN K RAJ; January 20, 2015 at 14:07. Reason: If one could possibly help with interPhaseChangeFoam also it will be helpful
ARUN K RAJ is offline   Reply With Quote

Old   January 18, 2015, 04:35
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Arun,

I've made a very quick search online just now for "OpenFOAM condensation" and the following two links seem to be a good starting point:
Best regards and good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 20, 2015, 14:06
Default
  #3
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
Thank you Bruno,

I have started to solve condensation in a vertical plate geometry as a start using interPhaseChangeFoam. I have added the energy equation as per the Martin's tutorial related with interPhaseChangeFoam. But the problem i face now is i get many errors such as the ones below:

Code:
 #0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigFpe::sigHandler(int) in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Uninterpreted: 
#3  Foam::GAMGSolver::scale(Foam::Field<double>&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4  Foam::GAMGSolver::Vcycle(Foam::PtrList<Foam::lduMatrix::smoother> const&, Foam::Field<double>&, Foam::Field<double> const&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::Field<double>&, Foam::PtrList<Foam::Field<double> >&, Foam::PtrList<Foam::Field<double> >&, unsigned char) const in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#5  Foam::GAMGSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#6  Foam::fvMatrix<double>::solveSegregated(Foam::dictionary const&) in "/opt/openfoam230/platforms/linuxGccDPOpt/lib/libfiniteVolume.so"
#7  
 at interPhaseChangeFoam.C:0
#8  
 in "/opt/openfoam230/platforms/linuxGccDPOpt/bin/interPhaseChangeFoam"
#9  __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#10  
 in "/opt/openfoam230/platforms/linuxGccDPOpt/bin/interPhaseChangeFoam"
Floating point exception (core dumped)


It is most certainly related with my boundary conditions or may be the new addtions i have made to the solver using the tutorial. But i have tried changing the B.C's bt the same error shows up after few iterations. Could anyone suggest me hw to solve this problem...

Last edited by wyldckat; January 25, 2015 at 10:58. Reason: Added [CODE][/CODE]
ARUN K RAJ is offline   Reply With Quote

Old   January 20, 2015, 23:15
Default
  #4
Member
 
Ron
Join Date: Jul 2014
Location: Japan
Posts: 40
Rep Power: 11
ron_OFuser is on a distinguished road
Arjun,

This work is already available on Chalmers website as pointed by wyldckat. You might be messing with some terms carefully follow the instruction given in the report.

http://www.tfd.chalmers.se/~hani/kur...ChangeFoam.pdf

Cheers Chalmers
ron_OFuser is offline   Reply With Quote

Old   January 25, 2015, 11:01
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by ARUN K RAJ View Post
It is most certainly related with my boundary conditions or may be the new addtions i have made to the solver using the tutorial. But i have tried changing the B.C's bt the same error shows up after few iterations. Could anyone suggest me hw to solve this problem...
We're not psychic
This to say that if you have not yet solved this problem, then please follow the instructions given here: http://www.cfd-online.com/Forums/ope...-get-help.html
wyldckat is offline   Reply With Quote

Old   January 27, 2015, 00:43
Default Hello :)
  #6
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
I would make my problem clear first of all. I am trying to study condensation phenomenon in a vertical flat plate geometry. The inlet is marked as top of plate. I am using steam-air mixture for analysis. I hve added the temperature to the solver " InterPhaseChangeFoam" using the tutorial by Martin andersen. http://www.pdfiz.net/k-7721458.html
Problems faced:
1. when i am trying to compile the solver i get these errors :

/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H: In function ‘int main(int, char**)’:
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:17:6: warning: unused variable ‘alphaApplyPrevCorr’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:23:8: warning: unused variable ‘icAlpha’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]

2. Secondly if i proceed further with this solver, If i change my deltaT value to a higher value like 0.01 or 0.1 (usually deltaT was 1e-08 as in tutorial of cavitating bullet as exmaple of interphasechangefoam solver) the iterations stops since the courant number reaches a much higher value of the order of (e100 ++).

3. I am using cavitation model of Merkle

Any help would be most appreciated.

Last edited by wyldckat; January 27, 2015 at 14:19. Reason: fixed broken link
ARUN K RAJ is offline   Reply With Quote

Old   January 27, 2015, 14:28
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Arun,

Quote:
Originally Posted by ARUN K RAJ View Post
Problems faced:
1. when i am trying to compile the solver i get these errors :

/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H: In function ‘int main(int, char**)’:
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:17:6: warning: unused variable ‘alphaApplyPrevCorr’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:23:8: warning: unused variable ‘icAlpha’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
Those are warnings, not errors.
I'll quote myself from a post I made back in 2010 :
Quote:
Originally Posted by wyldckat View Post
Those warnings are actually normal. AFAIK, those solvers use header files that are common to various solvers and not all solvers use those variables, therefore it triggers warning messages on those that don't use them.

Quote:
Originally Posted by ARUN K RAJ View Post
2. Secondly if i proceed further with this solver, If i change my deltaT value to a higher value like 0.01 or 0.1 (usually deltaT was 1e-08 as in tutorial of cavitating bullet as exmaple of interphasechangefoam solver) the iterations stops since the courant number reaches a much higher value of the order of (e100 ++).
Uh... That's normal. Did you study the OpenFOAM User Guide? Because this is explained in the very first tutorial: http://www.openfoam.org/docs/user/cavity.php

Quote:
Originally Posted by ARUN K RAJ View Post
3. I am using cavitation model of Merkle
Who? Please be clearer regarding specific details, because even if I might be able to get you in the right direction, you should not assume that I know everything, because I do not know everything about everything .


Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 31, 2015, 09:56
Default
  #8
New Member
 
ARUN
Join Date: Jan 2015
Location: Kerala
Posts: 18
Rep Power: 11
ARUN K RAJ is on a distinguished road
Thank you ALL for the valuable help and suggestions

I am trying to switch to twoPhaseEulerFoam as it seems to be the choice of most of the members here to perform condensation phenomenon in heat pipe. I have started studying abt the solver using the tutorial "bed". If anyone knws some papers relating to condensation & heat pipes using the solver pls let me know
ARUN K RAJ is offline   Reply With Quote

Old   March 11, 2015, 03:31
Default
  #9
New Member
 
Bibin K.S
Join Date: Oct 2014
Posts: 19
Rep Power: 11
bibin.sme is on a distinguished road
Quote:
Originally Posted by ARUN K RAJ View Post
Hi all,
I would like to know much about how condensation phenomenon could be done by using openFOAM solvers like twoPhaseEulerFoam and compressibleTwoPhaseEulerFOAM. Any detailed info abt tutorials related with any of these solvers or journals regarding multiphase flow would be most appreciated.
There are certain default tutorials like bubblecolumn and bed in these solvers but no detailed info abt what it does isn't provided.

Thank you,
Have a great day all

come to me I ll tell..
bibin.sme is offline   Reply With Quote

Old   March 11, 2015, 16:53
Default
  #10
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
hi Arun,

why did you decided to change it to Eulerian model?

what is your application?
is it heat exchanger or?
thanks!
Quote:
Originally Posted by ARUN K RAJ View Post
Thank you ALL for the valuable help and suggestions

I am trying to switch to twoPhaseEulerFoam as it seems to be the choice of most of the members here to perform condensation phenomenon in heat pipe. I have started studying abt the solver using the tutorial "bed". If anyone knws some papers relating to condensation & heat pipes using the solver pls let me know
Kanarya is offline   Reply With Quote

Old   May 19, 2015, 08:48
Default
  #11
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi Arun
I am also trying to make solver to model condensation. I followed Martin's tutorial and used Merkle model. However it only works for coarse mesh with Co = 0.0001 or lower and timestep of order 1e-8. Additionally results were unphysical.
I do not know why timestep is so small in interPhaseChangeFoam but in interFoam it is or order of 1e-3.
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   May 19, 2015, 08:53
Default
  #12
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
Hi Gaza,

It is better to share the code in order to see what is wrong with it..
general comments lie this it is very difficult to understand and fix it...
which version of OF are you using?
what can of application are you going to simulate?
thanks!

kanarya


Quote:
Originally Posted by gaza View Post
Hi Arun

I am also trying to make solver to model condensation. I followed Martin's tutorial and used Merkle model. However it only works for coarse mesh with Co = 0.0001 or lower and timestep of order 1e-8. Additionally results were unphysical.
I do not know why timestep is so small in interPhaseChangeFoam but in interFoam it is or order of 1e-3.
Kanarya 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
How accurate can CFX model condensation? JuPa CFX 7 January 20, 2019 17:17
[Gmsh] gmsh 2.6.0 conversion to OpenFoam 160 rosswin OpenFOAM Meshing & Mesh Conversion 0 March 5, 2013 07:34
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 13:14
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 04:25.