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

sprayFoam water spraying into steam-air environment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2014, 00:11
Question sprayFoam water spraying into steam-air environment
  #1
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
Dear All

I appreciate your valuable discussions here.

I would like to model a sub-cooled water spray injected to steam-air mixture container.
Container atmosphere temperature is higher than the 100 C.

My first impression is using sprayFoam. Droplet evaporation is already a built-in functionality, however, here I want steam condensation onto droplets. an inverse phase change.

any brainstorming or anyone who solved this problem? or another solver is better ? (may be)...
wolfindark is offline   Reply With Quote

Old   March 17, 2014, 05:12
Default
  #2
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
My first idea is using sprayFoam. and implement a condensation model modifying liquidevaporation submodel. I modified it as a test case and compile it as dynamic library.

I have a problem with the compilation I think because solver does not recognize my new submodel.

I can see my created library under my home directory (/home/neo/OpenFOAM/neo-2.1.1/platforms/linux64GccDPOpt/lib)

Although I added this library into controlDict as libs("myPhasechange").

any idea?

thanks
wolfindark is offline   Reply With Quote

Old   March 17, 2014, 13:15
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
In your controlDict, try "libmyPhaseChange.so".
mturcios777 is offline   Reply With Quote

Old   March 18, 2014, 01:30
Default
  #4
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
It still gives this error

Code:
--> FOAM FATAL ERROR: 
Unknown phase change model type myliquidEvaporation

Valid phase change model types are:

3
(
liquidEvaporation
liquidEvaporationBoil
none
)


    From function PhaseChangeModel<CloudType>::New(const dictionary&, CloudType&)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModelNew.C at line 54.

FOAM exiting
wolfindark is offline   Reply With Quote

Old   March 18, 2014, 04:04
Default
  #5
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
Quote:
Originally Posted by wolfindark View Post
It still gives this error
Can you post your code? Specifically, how do you compile the model?

Your approach is the right one and I do it for various sub models (Breakup, Injection, ...). I actually already did it for the evaporation model when this stuff was broken in OF (version 2.2.2 and earlier, a recent 2.2.x works fine).
dkxls is offline   Reply With Quote

Old   March 18, 2014, 04:08
Default
  #6
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
Quote:
Originally Posted by wolfindark View Post
Code:
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModelNew.C at line 54.
Just saw, you are using 2.1.1.

You should switch to 2.2.x or newer!

I haven't tested 2.3.x, but a quick review of the changes in the Lagrangian libraries, let's me assume that it should work equally well.
dkxls is offline   Reply With Quote

Old   March 18, 2014, 04:25
Default
  #7
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
I use OF 2.1.1.

I copied the /opt/openfoam211/src/lagrangian/intermediate/ directory to may case directory.

under this directory intermediate/submodels/Reacting/PhaseChangeModel/myLiquidEvaporation/
I created myLiquidEvaporation.H and myLiquidEvaporation.C

I added following lines for the new model into makeReactingParcelPhaseChangeModels.H which is under the directory intermediate/parcels/include/
Code:
#include "myLiquidEvaporation "
makePhaseChangeModelType(myLiquidEvaporation, CloudType);
and wclean, wmake libso under the intermediate/ directory


Please download whole case from following link. since It is 2.7Mb I could not attache it to here.

https://dl.dropboxusercontent.com/u/...spray_test.zip

Note that; I use different gas compositions at different level as initial gas composition. initfield3D do this.

thank you
wolfindark is offline   Reply With Quote

Old   March 18, 2014, 04:28
Default
  #8
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
Could you please check my compiling method? is it Okay?

I will change to OF 2.2.x
wolfindark is offline   Reply With Quote

Old   March 18, 2014, 11:21
Default
  #9
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
Quote:
Originally Posted by wolfindark View Post
Could you please check my compiling method? is it Okay?
Nope, doesn't work like that.
As I said, you are on the right track, but you just should compile your phaseChangeModel not the entire intermediate library. That causes a lot of problems because the solvers are linked against the OF intermediate library. Now, changing the linking would be possible, I have also done that already but you don't really want to do that, it's just trouble.

I attached an archive with some code that does the trick. The model is just a copy of the original LiquidEvaporationBoil, so you still have to do your own changes.

Don't forget to change your controlDict accordingly.

-Armin
Attached Files
File Type: gz MyPhaseChangeModel.tar.gz (5.2 KB, 93 views)
dkxls is offline   Reply With Quote

Old   March 19, 2014, 02:48
Default
  #10
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
Thank you Armin,

I will try it. But as you said definitely there is a problem with 2.1.1.

Do you have any experience on modelling steam condensation on sprayed water droplets ?
wolfindark is offline   Reply With Quote

Old   August 17, 2016, 01:53
Default
  #11
Member
 
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15
wolfindark is on a distinguished road
Long time passed.
This time I want to change the heat transfer model. I want to include gas concentrations in the Nusselt number calculations. As you know RanzMarshall model can be modified, I have to also modify the HeatTransferModel.C and .H ...

I appreciate any idea.
wolfindark is offline   Reply With Quote

Old   November 4, 2016, 10:21
Default
  #12
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12
RobinZ is on a distinguished road
Did you make your steam condensation solver to work?

I want to solve the same problem and i'm not sure if there is already an openfoam solver to manage a two phase flow phase change, like steam condensation in air.

best regards

Robin
RobinZ 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
Mass imbalance problem in multiphase water and steam CFX case Antech CFX 1 October 26, 2020 05:03
Steam exhaust to air semo FLUENT 1 November 5, 2012 17:16
Multiphase model, water disperses in air bugra Main CFD Forum 1 January 30, 2010 11:57
Steam in air flow henj FLUENT 0 January 11, 2010 08:17
moving water from a chamber using air Matt Mason CFX 0 December 2, 2003 20:46


All times are GMT -4. The time now is 19:15.