|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Balaji
Join Date: Jun 2011
Posts: 9
Rep Power: 3 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 494
Rep Power: 9 ![]() |
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. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Balaji
Join Date: Jun 2011
Posts: 9
Rep Power: 3 ![]() |
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 |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 494
Rep Power: 9 ![]() |
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;( 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! |
|
|
|
|
|
|
|
|
#5 | |
|
New Member
Join Date: Nov 2010
Posts: 8
Rep Power: 4 ![]() |
Quote:
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 |
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coupling spray simulation with nozzle flow | zaer | OpenFOAM Running, Solving & CFD | 1 | March 16, 2012 05:43 |
| gasoline spray simulation using dieselFoam | qhdgj | OpenFOAM | 8 | June 25, 2009 15:51 |
| 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 | CD-adapco | 4 | October 17, 2006 16:09 |
| Casting Process Simulation | Anil Shenoy | Main CFD Forum | 1 | February 22, 1999 11:56 |