|
[Sponsors] |
May 28, 2009, 09:36 |
Multiple Injectors
|
#1 |
Member
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 17 |
Dear All,
in the spray class of dieselSpray the injectors are implemented as IOPtrList. How can I define multiple injectors of different or same type in the injectorProperties dictionary? Thanks in advance, Matthias |
|
May 29, 2009, 04:23 |
|
#2 |
Member
Sebastian Vogl
Join Date: Mar 2009
Location: Munich, Germany
Posts: 62
Rep Power: 17 |
Hi Matthias,
if you want to use several injectors, you only have to define them in the injectorProperties dictionary one after another. You write all the specifications for the first injector and then simply add the next injector with its entries. All injectors can be of the same or different type. You also have to add some entries in the sprayProperties file. Each injector has got some more specifications there. When you open this file and just scroll down, you will see some entries like: "constInjectorCoeffs", "hollowConeInjectorCoeffs", etc. According to the type of injector you choose, you will need to add the corresponding entries for each injector there. Attached to this message are the injectorPropertis file and the sprayProperties file for a case setup in which 5 injectors of type "definedInjector" were created. Each injector creates single droplets. The injectorProperties file is quite long because the third injector makes 5000 droplets. But you can see there how you need to arrange the injectors one after another. In my case all injectors are of the same type. Of course you can choose different types. I further used "constInjectorCoeffs" in the sprayProperties file (is also attached) to specify the droplet-nozzle diameter and the angle of injection. You just need to scroll down. As you will see, there are five entries, one for each injector. I hope this will help you! Best regards, Sebastian |
|
May 29, 2009, 11:46 |
|
#3 |
Member
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 17 |
Hello Sebastian,
thanks a lot. This is exactly what I was looking for. Enjoy your weekend, Matthias |
|
June 2, 2009, 14:33 |
|
#4 |
Member
Rachel Vogl
Join Date: Jun 2009
Posts: 48
Rep Power: 17 |
Hello All,
I would like to ask if its possible to inject multilpe liquids with multiple injectors in dieselFoam solver ? Thanks Rachel |
|
June 3, 2009, 03:37 |
|
#5 | |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Quote:
just specify the liquid as a mulitcomponent, lets say you want to have water and heptane as fuels in thermophysicalProperties set liquidComponents ( H20 C7H16 ); and then for one injector you specify the volumefraction X as X( 0 1 ) and for the other X( 1 0 ) |
||
May 30, 2011, 13:19 |
|
#6 |
New Member
Adam Comer
Join Date: Jun 2010
Posts: 6
Rep Power: 16 |
I am wondering how multiple injectors can be modeled when the droplet sizes are based on a pdf (e.g. Rosin Rammler). In the example above, the parameters that changed for each injector were lists. However, in OF1.7, the Rosin Rammler distribution only allows a scalar for the diameter and does not accept a list of diameters for each injector. In light of this restriction, is there still a way to specify multiple injectors, each with a different set of pdf parameters?
Thanks in advance for any input on this issue. |
|
May 31, 2011, 05:11 |
|
#7 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
not at the moment, but it is very easy to fix.
I will show you how to do it for the hollowCone go to src/lagrangian/dieselSpray/spraySubModels/injectorModel/hollowCone/ and modify the below files to this: hollowCone.H Code:
scalarList innerAngle_; scalarList outerAngle_; List<autoPtr<pdfs::pdf> > dropletPDF_; Code:
injectorModel(dict, sm), hollowConeDict_(dict.subDict(typeName + "Coeffs")), innerAngle_(hollowConeDict_.lookup("innerConeAngle")), outerAngle_(hollowConeDict_.lookup("outerConeAngle")), dropletPDF_ ( outerAngle_.size() ) Code:
forAll(dropletPDF_, i) { OStringStream num; num << i; word pdfName = "dropletPDF" + num.str(); Info << "reading pdf " << pdfName << endl; dropletPDF_[i] = pdfs::pdf::New ( hollowConeDict_.subDict(pdfName), sm.rndGen() ); } scalar referencePressure = sm.ambientPressure(); Code:
scalar hollowConeInjector::d0 ( const label i, const scalar ) const { return dropletPDF_[i]->sample(); } done. the name of the pdf dictionary will now have an appended injectorindex and the sprayProperties will look something like this (for 2 injectors) Code:
hollowConeInjectorCoeffs { dropletPDF0 { pdfType RosinRammler; RosinRammlerPDF { minValue 1e-06; maxValue 0.00015; d 0.00015; n 3; } } dropletPDF1 { pdfType RosinRammler; RosinRammlerPDF { minValue 0.0002; maxValue 0.0005; d 0.0005; n 3; } } innerConeAngle ( 0 0); outerConeAngle ( 20 20 ); } |
|
June 1, 2011, 06:41 |
|
#8 |
New Member
Adam Comer
Join Date: Jun 2010
Posts: 6
Rep Power: 16 |
Many thanks for the instructions! They were exactly what I was looking for.
|
|
June 3, 2011, 14:26 |
|
#9 | |
New Member
fairus
Join Date: Apr 2010
Posts: 20
Rep Power: 16 |
Dear Niklas,
How about the 1.6 version which has d , n, innerConeAngle and outerConeAngle as a list, but not the minValue and maxValue? As an example: hollowConeInjectorCoeffs { dropletPDF { pdfType RosinRammler; RosinRammlerPDF { minValue 1e-06; maxValue 90e-06; d ( 32e-06 ); n ( 2.4 ); } } innerConeAngle ( 15.2 ); outerConeAngle ( 86.6 ); } How can I add similar functionality as been described by ALC? Quote:
Fairus |
||
June 7, 2011, 03:39 |
|
#10 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
its exactly the same
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple .res files in animation | Gloria Gaynor | CFX | 5 | April 6, 2009 20:36 |
Flow through multiple holes | Matthew Markham | Main CFD Forum | 3 | January 28, 2009 22:47 |
multiple custom mesh in proam | user1 | Siemens | 10 | April 8, 2008 11:34 |
Multiple inlets problem | Jeff | Main CFD Forum | 2 | August 17, 2005 11:48 |
Multiple reference frames? | Moon | Siemens | 0 | March 4, 2003 07:32 |