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

Multiple Injectors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2009, 09:36
Default Multiple Injectors
  #1
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 17
make is on a distinguished road
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
make is offline   Reply With Quote

Old   May 29, 2009, 04:23
Default
  #2
Member
 
Sebastian Vogl
Join Date: Mar 2009
Location: Munich, Germany
Posts: 62
Rep Power: 17
sebastian_vogl is on a distinguished road
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
Attached Files
File Type: gz injectorProperties.txt.gz (59.0 KB, 136 views)
File Type: txt sprayProperties.txt (3.7 KB, 134 views)
sebastian_vogl is offline   Reply With Quote

Old   May 29, 2009, 11:46
Default
  #3
Member
 
Matthias Kern
Join Date: Mar 2009
Location: Karlsruhe, Germany
Posts: 36
Rep Power: 17
make is on a distinguished road
Hello Sebastian,

thanks a lot. This is exactly what I was looking for.

Enjoy your weekend,
Matthias
make is offline   Reply With Quote

Old   June 2, 2009, 14:33
Default
  #4
Member
 
Rachel Vogl
Join Date: Jun 2009
Posts: 48
Rep Power: 17
Rachel is on a distinguished road
Hello All,

I would like to ask if its possible to inject multilpe liquids with multiple injectors in dieselFoam solver ?

Thanks
Rachel
Rachel is offline   Reply With Quote

Old   June 3, 2009, 03:37
Default
  #5
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Quote:
Originally Posted by Rachel View Post
Hello All,

I would like to ask if its possible to inject multilpe liquids with multiple injectors in dieselFoam solver ?

Thanks
Rachel
yup.
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 )
niklas is offline   Reply With Quote

Old   May 30, 2011, 13:19
Default
  #6
ALC
New Member
 
Adam Comer
Join Date: Jun 2010
Posts: 6
Rep Power: 16
ALC is on a distinguished road
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.
ALC is offline   Reply With Quote

Old   May 31, 2011, 05:11
Default
  #7
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
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_;
hollowCone.C (in the constructor)
Code:
    injectorModel(dict, sm),
    hollowConeDict_(dict.subDict(typeName + "Coeffs")),
    innerAngle_(hollowConeDict_.lookup("innerConeAngle")),
    outerAngle_(hollowConeDict_.lookup("outerConeAngle")),
    dropletPDF_
    (
        outerAngle_.size()
    )
and a bit further down add this before the ambientPressure-line
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();
the find the d0 function that returns the initial size and change it to this
Code:
scalar hollowConeInjector::d0
(
    const label i,
    const scalar
) const
{
    return dropletPDF_[i]->sample();
}
then go to src/lagrangian/dieselSpray and type 'wmake libso' to recompile the dieselSpray lib.

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 );
}
niklas is offline   Reply With Quote

Old   June 1, 2011, 06:41
Default
  #8
ALC
New Member
 
Adam Comer
Join Date: Jun 2010
Posts: 6
Rep Power: 16
ALC is on a distinguished road
Many thanks for the instructions! They were exactly what I was looking for.
ALC is offline   Reply With Quote

Old   June 3, 2011, 14:26
Default
  #9
New Member
 
fairus
Join Date: Apr 2010
Posts: 20
Rep Power: 16
mfmohdyasin is on a distinguished road
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:
is there still a way to specify multiple injectors, each with a different set of pdf parameters?
Thanks,
Fairus
mfmohdyasin is offline   Reply With Quote

Old   June 7, 2011, 03:39
Default
  #10
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
its exactly the same
niklas 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
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


All times are GMT -4. The time now is 04:53.