CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Spray simulation post process

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By javierjap

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2012, 03:54
Default Spray simulation post process
  #1
New Member
 
Balaji
Join Date: Jun 2011
Posts: 9
Rep Power: 14
balaji is on a distinguished road
Dear All,

may i know how to get spray tip penetration and cone angle and no of droplet distribution from paraview.

Thanks in advance

Balaji
balaji is offline   Reply With Quote

Old   July 13, 2012, 12:11
Default
  #2
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
Post-processing sprays in paraview gets a little tricky. I don't think there is a built in filter to get what you want; you'll have to write one yourself. Though isn't the cone angle an input parameter from the sprayProperties file?

For future reference, the KinematicCloud class (upon which the sprays are based) have a member function called penetration(scalar prc) that returns the penetration length based on the percentage prc of the current mass in the system. If you add this to the solver you can get the penetration at runtime, even write it to a logfile.
mturcios777 is offline   Reply With Quote

Old   July 14, 2012, 05:03
Default
  #3
New Member
 
Balaji
Join Date: Jun 2011
Posts: 9
Rep Power: 14
balaji is on a distinguished road
Dear Marco,

Since i am new to openfoam and paraview, could you please brief me how to write the code in order to get the spray penetration length and the droplet size distribution.

thanks
Balaji
balaji is offline   Reply With Quote

Old   July 16, 2012, 11:56
Default
  #4
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
Hi Balaji,

For the penetration length, you'll need to create/modify the solver you are using. Look at the tutorial on adding temperature to icoFoam for a quick overview of the process:

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

In the main solver loop, you will need to add something like this:


Code:
Info << "Spray penetration (95% mass) is " << spray.penetration(0.95) << endl;(
You'll need to find the name of the spray object created in your solver, and you can use whatever percentage you want. Make the change, compile your solver and run it. You should see a message output every iteration. You will need to save the output to a logfile and extract the penetration info from there.

If you are willing to study more C++ and OF, you can make it so that the results are written to a file in 2 column format. As a lot of my textbooks used to say "This is left as an excercise for the reader".

Good luck!
mturcios777 is offline   Reply With Quote

Old   October 9, 2012, 11:36
Default
  #5
New Member
 
Join Date: Nov 2010
Posts: 18
Rep Power: 15
smschnob is on a distinguished road
Quote:
Originally Posted by balaji View Post
Dear All,

may i know how to get spray tip penetration and cone angle and no of droplet distribution from paraview.

Thanks in advance

Balaji

Hi Balaji,

Were you able to get this to work? I am interested in adding spray penetration length code to the .../multiphase/interFoam/les/nozzleFlow2D tutorial but have no idea how to do it. Even if the spray penetration data is output to the log file that would be okay. Any advice/help? Thanks in advance!

Scott
smschnob is offline   Reply With Quote

Old   August 20, 2016, 11:22
Default
  #6
New Member
 
Javier Anez
Join Date: May 2013
Location: Paris, France
Posts: 6
Rep Power: 12
javierjap is on a distinguished road
Dear M. Turcios

First of all, I know this is a very old Thread, and OpenFOAM classes have changed since then, so I was wondering if you could help me. I am using OF301, and I would like to calculate Liquid Penetration Length in InterFoam.

Quote:
Originally Posted by mturcios777 View Post
Post-processing sprays in paraview gets a little tricky. I don't think there is a built in filter to get what you want; you'll have to write one yourself. Though isn't the cone angle an input parameter from the sprayProperties file?

For future reference, the KinematicCloud class (upon which the sprays are based) have a member function called penetration(scalar prc) that returns the penetration length based on the percentage prc of the current mass in the system. If you add this to the solver you can get the penetration at runtime, even write it to a logfile.
Having implemented your penetration length explanation above, I found one message:

KinematicCloudI.H:404:37: error: ‘const parcelType’ has no member named ‘position0’
scalar d = mag(p.position() - p.position0());


I searched for this function position0(), and its declaration exists in SprayParcel.H, its definition in SprayParcelI.H. The latter uses one variable as a return value (position0_) which is declared and manipulated in SprayParcel.C. The problem with this file (SprayParcel.C) is that it includes unnecessary reacting and compressible features which I cannot get rid of without messing up position0_ calculation.

Any ideas would be highly appreciated
Thanks in advance

JAP
pappo1890 likes this.
javierjap 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
gasoline spray simulation using dieselFoam qhdgj OpenFOAM Running, Solving & CFD 10 July 10, 2016 01:55
Coupling spray simulation with nozzle flow zaer OpenFOAM Running, Solving & CFD 1 March 16, 2012 04:43
help, error spray simulation in contant volume chamber with kiva toto Main CFD Forum 0 June 8, 2009 09:52
Star crashed with spray simulation, please help! Jimmy Fox Siemens 4 October 17, 2006 16:09
Casting Process Simulation Anil Shenoy Main CFD Forum 1 February 22, 1999 11:56


All times are GMT -4. The time now is 10:21.