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

solver for evaporation/condensation modeling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2015, 01:32
Default
  #21
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi Kanarya,
Nobody gave respond. I do not know how to properly implement MULES in this solver.
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   October 6, 2015, 05:39
Default
  #22
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
I just changed the sign of source term of the mass transfer in order to get condensations and it gives wrong results...some places I have minus condensation rate...do you know why?
Quote:
Originally Posted by gaza View Post
Hi Kanarya,
Nobody gave respond. I do not know how to properly implement MULES in this solver.
Kanarya is offline   Reply With Quote

Old   November 8, 2015, 07:05
Default
  #23
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 to all!

Kanarya sent me a PM this week asking me to take a look into this thread. The first detail I would like to point out is that I barely know anything about MULES itself, therefore I won't be able to help very much with the algorithm itself.

Nonetheless, I might be able to help with compilation problems and with interpreting the case set-up and physics in play here. Therefore, my requests here are as follows:
  1. There were some additional improvements to multiphase modelling in OpenFOAM 3.0 that might be useful for you two, therefore keep in mind to take a look into it in the future: http://www.openfoam.org/version3.0.0/
  2. But for right now, I prefer to first isolate the first problem: understanding why the flow profiles with interFoam and the other multiphase solver give such different results. My guess is that the boundary conditions are responsible for this, because if the pressure field is incorrectly defined, this could mean that X percent of the water might evaporate in the first few milliseconds due to high pressure gradients, just because the pressure field was incorrectly defined. On this topic, check this thread: http://www.cfd-online.com/Forums/ope...ity-field.html
    • My request here is that you first try and properly set-up a case using interFoam and interPhaseFoam so that they give similar results. In other words, use OpenFOAM's own solvers and make sure the boundary conditions and initial fields are all well defined. Only then we can evolve to the next step.
  3. Next is regarding the new source code. I got confused with the previous posts and I didn't figure out which OpenFOAM versions the new custom code is meant to work with. In addition, I didn't understand if there are still compilation problems or not.
    • Therefore, I need a good description of what is the current status on this part and what versions of OpenFOAM are being used.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 20, 2015, 06:39
Default
  #24
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
Dear Bruno,

Thanks for the detailed answer!
I am using OF 2.3.1.
I have also compilation problems but lets start first with more basics for example BC for pressure p_rgh:
Code:
internalField   uniform 1e5;

boundaryField
{
    hot_wall
{
 type            fixedFluxPressure;
adjoint              0;
     value           uniform 0;

}
    cold_wall
{
 type            fixedFluxPressure;
adjoint              0;
        value           uniform 0;
}
ocold_wall
{
 type            fixedFluxPressure;
adjoint              0;
      value           uniform 0;
}
icold_wall
{
 type            fixedFluxPressure;
adjoint              0;
       value           uniform 0; 
}

outlet
{

type           totalPressure;
        p0              uniform 1e5;
        U               U;
        phi             phi;
        rho             rho;
        psi             none;
        gamma           1;
        value           uniform 1e5;
}
inlet
{
  type            fixedFluxPressure;
adjoint              0;
      value           uniform 0;
        
} 
}
Question 1:
in version OF 2.3.1 fixedFluxPressure is used instead of bouyantPressure, is it correct?
Question 2:
why we need to "define adjoint 0;" as well, because when I am not putting adjoint together with fixedFluxPressure, it complains! do you know why?
Question 3:
My BC for p_rgh make sense?

Thanks in advance!
Best regards,

Kanarya


Quote:
Originally Posted by wyldckat View Post
Greetings to all!

Kanarya sent me a PM this week asking me to take a look into this thread. The first detail I would like to point out is that I barely know anything about MULES itself, therefore I won't be able to help very much with the algorithm itself.

Nonetheless, I might be able to help with compilation problems and with interpreting the case set-up and physics in play here. Therefore, my requests here are as follows:
  1. There were some additional improvements to multiphase modelling in OpenFOAM 3.0 that might be useful for you two, therefore keep in mind to take a look into it in the future: http://www.openfoam.org/version3.0.0/
  2. But for right now, I prefer to first isolate the first problem: understanding why the flow profiles with interFoam and the other multiphase solver give such different results. My guess is that the boundary conditions are responsible for this, because if the pressure field is incorrectly defined, this could mean that X percent of the water might evaporate in the first few milliseconds due to high pressure gradients, just because the pressure field was incorrectly defined. On this topic, check this thread: http://www.cfd-online.com/Forums/ope...ity-field.html
    • My request here is that you first try and properly set-up a case using interFoam and interPhaseFoam so that they give similar results. In other words, use OpenFOAM's own solvers and make sure the boundary conditions and initial fields are all well defined. Only then we can evolve to the next step.
  3. Next is regarding the new source code. I got confused with the previous posts and I didn't figure out which OpenFOAM versions the new custom code is meant to work with. In addition, I didn't understand if there are still compilation problems or not.
    • Therefore, I need a good description of what is the current status on this part and what versions of OpenFOAM are being used.


Best regards,
Bruno
Kanarya is offline   Reply With Quote

Old   November 29, 2015, 11:47
Default
  #25
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 Kanarya,

Quote:
Originally Posted by Kanarya View Post
Question 1:
in version OF 2.3.1 fixedFluxPressure is used instead of bouyantPressure, is it correct?
Yes. This bug report doesn't give much information about it, but it's something: http://www.openfoam.org/mantisbt/view.php?id=1292
Quoting the User Guide: http://cfd.direct/openfoam/user-guide/damBreak/
Quote:
At all wall boundaries, the fixedFluxPressure boundary condition is applied to the pressure field, which adjusts the pressure gradient so that the boundary flux matches the velocity boundary condition.
Quote:
Originally Posted by Kanarya View Post
Question 2:
why we need to "define adjoint 0;" as well, because when I am not putting adjoint together with fixedFluxPressure, it complains! do you know why?
That can't be right! "adjoint" shouldn't be necessary, as detailed in the last comment here: http://www.openfoam.org/mantisbt/view.php?id=1323
Are you 100% certain you are using OpenFOAM 2.3.1?

Are you perhaps using older code built along with OpenFOAM 2.3.1?

Quote:
Originally Posted by Kanarya View Post
Question 3:
My BC for p_rgh make sense?
Without additional context, seems to make sense.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 12, 2016, 09:41
Default
  #26
New Member
 
Join Date: Mar 2015
Location: Earth yet
Posts: 25
Rep Power: 11
coccone is on a distinguished road
Howdy!

I've been working on a solar heat-pipe application and wanted to start simulating its functioning. I realized that no solver is suitable "as is" not even for a very simplified model of the phenomenon. Either Teqn solution missing or two phase but without phase-change modelling and so on. Given my still rookie skills with OF and C++, I am afraid I don't really have the necessary understanding of solver structures to modify one by my own so I compiled yours on 2.3.1 and i am playing around with it.

At what point are you with the development, are you still working on it? If I got it right, condensation mass flux is set to 0 and there still are some issues with MULES. Could I be of any help in developing/testing? Of course I'm interested in speeding up the whole process, so just let me know...



Ciao
coccone is offline   Reply With Quote

Old   March 7, 2016, 23:03
Default
  #27
New Member
 
L
Join Date: Oct 2015
Location: NY
Posts: 8
Rep Power: 10
lowlow is on a distinguished road
Quote:
Originally Posted by gaza View Post
Hi Kanarya,
Nobody gave respond. I do not know how to properly implement MULES in this solver.
Hi Przemek,

I tried the solver that you uploaded, something weird happened when setting up a case to test the

interevapcondphasechangefoam. A water vapor bubble on heating wall with water flowing from left

to right (Re=100). After several time steps, ALPHA is over 1 (look at the fig). ??? is there

anything wrong with my case. or the problem is in the solver?



Besides, The bubble interface temperature was set to saturation temperature, and the T field look not bad. But

I'm not sure with the mass transfer.

Are you still working on it? do you have any progress? waiting for ur reply

regards

L
lowlow is offline   Reply With Quote

Old   March 8, 2016, 01:46
Default
  #28
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi Lowlow,
I didn't validate solver for more sophisticated case.
Maybe decrease Courant number and increase mesh density.
best regards
Przemek
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   March 8, 2016, 01:49
Default
  #29
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
also I think that MULES is not well implemented in the interEvapCondPhaseChangeFoam
and it could be the reason why alpha exceeds 1.0 value
probably only Henry Wheller knows how to properly implement MULES for this case
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   March 8, 2016, 02:50
Default
  #30
New Member
 
L
Join Date: Oct 2015
Location: NY
Posts: 8
Rep Power: 10
lowlow is on a distinguished road
Quote:
Originally Posted by gaza View Post
also I think that MULES is not well implemented in the interEvapCondPhaseChangeFoam
and it could be the reason why alpha exceeds 1.0 value
probably only Henry Wheller knows how to properly implement MULES for this case
cannot agree more.
lowlow is offline   Reply With Quote

Old   March 8, 2016, 05:11
Default
  #31
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

You should take a look at this: www.cfd-online.com/Forums/openfoam-solving/150535-evapvofhardt-discussion-come-join.html and https://github.com/wyldckat/evapVOFHardt

Work better than the "interPhaseChangeFoam" approach.

regards,
olivier
olivierG is offline   Reply With Quote

Old   September 17, 2020, 02:15
Default
  #32
New Member
 
wanghongjie
Join Date: Apr 2020
Posts: 28
Rep Power: 6
wanghongjie is on a distinguished road
Quote:
Originally Posted by gaza View Post
Hi Foamers,
I created solver for evaporation/condensation modeling based on interPhaseChangeFoam. My solver is called interEvapCondPhaseChangeFoam
and is a result of information I read from similar threads on cfd online.

Unfortunately solver does not work well. I run my solver on damBreak case and compared with interFoam but results are different. In attachement there are figures for 0.15 s for both solvers.

I implemented Ganapathy model for mass transfer according to

http://www.sciencedirect.com/science...7931013004341#

I think that something is wrong in my MULES implementation.
Here are all the necessary files

http://fluid.itcmp.pwr.wroc.pl/~pblasiak/download.html

Here are the commands to type in terminal to compile my solver and run damBreak test case for OpenFOAM 2.3.0.:

unzip interEvapCondPhaseChangeFoam_allfiles.zip
tar xzvf incompressible.tar.gz
tar xzvf interEvapCondPhaseChangeFoam.tar.gz
tar xzvf damBreak_interEvapCondPhaseChangeFoam.tar.gz
cp -r incompressible $WM_PROJECT_USER_DIR/src/transportModels/
cp -r interEvapCondPhaseChangeFoam $WM_PROJECT_USER_DIR/applications/solvers/multiphase/
cp -r damBreak $FOAM_RUN/tutorials/multiphase/
cd $WM_PROJECT_USER_DIR/src/transportModels/incompressible
wclean
wmake libso
cd $WM_PROJECT_USER_DIR/applications/solvers/multiphase/interEvapCondPhaseChangeFoam
./Allwclean
./Allwmake
cd $FOAM_RUN/tutorials/multiphase/interEvapCondPhaseChangeFoam/damBreak
./Allrun

As I said the solver is a result of available knowledge on cfd online but
it still does not give correct results. I have also test case for one dimensional Stefan problem and results are close to analitycal but error is too large. If anybody interested I can upload this test case too.

Can anybody help to fix this solver?
I can not find any solver in this link, could you send me again, thanks.
http://fluid.itcmp.pwr.wroc.pl/~pblasiak/download.html
wanghongjie is offline   Reply With Quote

Old   February 11, 2021, 06:40
Default
  #33
New Member
 
rocco
Join Date: Nov 2020
Posts: 13
Rep Power: 5
rocco96 is on a distinguished road
Hi, is this solver, still avaible? This link doesn't work.
Thank you!
rocco96 is offline   Reply With Quote

Old   February 11, 2021, 10:19
Default
  #34
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Quote:
Originally Posted by rocco96 View Post
Hi, is this solver, still avaible? This link doesn't work.
Thank you!
No it is not available.
__________________
best regards
pblasiak
gaza 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
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM Running, Solving & CFD 17 December 3, 2014 19:41
Quarter Burner mesh with periosic condition SamCanuck FLUENT 2 August 31, 2011 11:34
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Creating New Solver: For particle-laden compressible jets sankarv OpenFOAM 0 April 4, 2010 18:06
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 22:31.