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

DieselFoam spray

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2005, 06:29
Default thanks Niklas, i've been pu
  #1
New Member
 
Andrew Heather
Join Date: Mar 2009
Posts: 16
Rep Power: 17
heather is on a distinguished road
thanks Niklas,

i've been putting together an eulerian-eulerian moment-based spray model library, and am looking to add its functionality into one of the distributed solvers - rhoTurbFoam looks like a good candidate... i would like to include the void fraction field into the gas phase equation set - what would be the most appropriate way to do this?

many thanks,

andy
heather is offline   Reply With Quote

Old   September 22, 2005, 06:42
Default bubbleFoam I would say, You'l
  #2
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
bubbleFoam I would say,
You'll end up with alot of problems near the nozzle if you dont do it 'old Henry's' way.

You should take a look at how he eliminates the void-fraction from the momentum-eq.

N
niklas is offline   Reply With Quote

Old   September 22, 2005, 06:53
Default thanks - will take a look...
  #3
New Member
 
Andrew Heather
Join Date: Mar 2009
Posts: 16
Rep Power: 17
heather is on a distinguished road
thanks - will take a look...
heather is offline   Reply With Quote

Old   September 22, 2005, 09:48
Default could you put some words aroun
  #4
New Member
 
Andrew Heather
Join Date: Mar 2009
Posts: 16
Rep Power: 17
heather is on a distinguished road
could you put some words around how the void fraction has been eliminated? - looking through the code i'm struggling to see what's going on...

many thanks,

andy
heather is offline   Reply With Quote

Old   September 22, 2005, 10:23
Default If you solve for ddt(alpha*rho
  #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
If you solve for ddt(alpha*rhoa*Ua) = ...
you'll end up with numerical problems as alpha->0, since you essentially will be solving a system 0=0.
Usually this is delt with by just setting alpha to something SMALL if it is lower than SMALL.
However, numerically this will give you major stability problems, especially in this situation.
What can be done is to use the continuity equation and derive an equation for ddt(rhoa*Ua) instead, which will be better numerically. You'll get some extra terms because of this and if you look at the momentum equations in bubbleFoam Im sure you can spot them.

Henry has written a nice report on how to derive all of this stuff.
Maybe he can send it to you if you ask him nicely

N
niklas is offline   Reply With Quote

Old   September 22, 2005, 10:46
Default many thanks Niklas the fog
  #6
New Member
 
Andrew Heather
Join Date: Mar 2009
Posts: 16
Rep Power: 17
heather is on a distinguished road
many thanks Niklas

the fog is slowly lifting
heather is offline   Reply With Quote

Old   September 8, 2006, 04:50
Default Dear all, I would like to a
  #7
New Member
 
David Palko
Join Date: Mar 2009
Posts: 9
Rep Power: 17
davidpalko is on a distinguished road
Dear all,

I would like to ask you about setting up properties for Eulerian phase in DieselFoam solver. More concretly, from discussion forum I found out that liquid fuel componet (lagr. particles) physical properties are defined in /src/thermophysicalModels/liquids and enthalpy calculation from temperature is through NASA polynomials specified in therm.dat file within in case.
However, how can be (speaking about dieselFoam) set the properties for Eulerian fluid (properties like viscosity etc...)?

Thank you so much.

Regards,

David
davidpalko is offline   Reply With Quote

Old   September 8, 2006, 05:42
Default the viscosity and thermal diff
  #8
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
the viscosity and thermal diffusivity is calculating using sutherland's law,

take a look in src/thermophysicalModels/specie/transport/...

Mass diffusion is calculated using a Schmidt number (atm same for all species)

effective properties are all really functions of the turbulent viscosity and the effective enthalpy diffusion is calculated using the Prandtl number (alphah in turbulenceProperties dictionary).
niklas is offline   Reply With Quote

Old   September 8, 2006, 06:24
Default Thank you very much Niklas,
  #9
New Member
 
David Palko
Join Date: Mar 2009
Posts: 9
Rep Power: 17
davidpalko is on a distinguished road
Thank you very much Niklas,

David
davidpalko is offline   Reply With Quote

Old   September 11, 2006, 03:25
Default Dear all, Sorry for such a fr
  #10
New Member
 
David Palko
Join Date: Mar 2009
Posts: 9
Rep Power: 17
davidpalko is on a distinguished road
Dear all,
Sorry for such a frequent messaging, but I 've got one more question. According to Nikas's post above viscosity is calculated using sutherland's law. However, these files (in src/thermophysicalModels/specie/transport/...) still needs to read constants mu1, T1, mu2, T2. Wherefrom do they read them? Is this the file where you specify mu1 for temperature T1 and mu2 for T2?

Thank you so much in advance.

Regards,

David
davidpalko is offline   Reply With Quote

Old   September 11, 2006, 07:22
Default You have two constructors, one
  #11
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
You have two constructors, one where the
As and Ts are given, the other where they are
calculated using 2 viscosities and temperatures.

However, for the chemkin reader, all the transport property constants have been hardcoded, (check chemkinLexer.L) and
are the same for all species.

As = 1.67212e-6
Ts = 170.672

Niklas
sushant likes this.
niklas is offline   Reply With Quote

Old   November 16, 2006, 09:00
Default Dear all, I am using diesel
  #12
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Dear all,

I am using dieselFoam and would like to have the simulation output the gas phase of fuel at a certain boundary "on the fly". Can someone tell me where the fuel field is created, and how I can reference it? For example, when I try C7H16.boundaryField[outletpatch] I get an error saying C7H16 is not defined.

Thanks,

David
dhebert is offline   Reply With Quote

Old   November 16, 2006, 15:04
Default Hi David, you should try like
  #13
Member
 
Tommaso Lucchini
Join Date: Mar 2009
Posts: 87
Rep Power: 17
lucchini is on a distinguished road
Hi David,
you should try like this:

- composition.Y("C7H16").boundaryField()[outletPatch].

This should work. However, have a look at the implementation of the following classes to better understand the thermodynamic approach:

$FOAM_SRC/thermophysicalModels/combustion/hCombustionThermo
$FOAM_SRC/thermophysicalModels/combustion/mixtures/multiComponentMixture
$FOAM_SRC/thermophysicalModels/combustion/mixtures/reactingMixture
$FOAM_SRC/thermophysicalModels/combustion/mixtureThermo/hMixtureThermo

bye,
Tommaso
lucchini is offline   Reply With Quote

Old   November 16, 2006, 21:04
Default Hi Tommaso, Thank you so mu
  #14
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Hi Tommaso,

Thank you so much for your help. What you suggested works great. Thanks also for pointing out where to find implementations in the code, it is a big help.

David
dhebert is offline   Reply With Quote

Old   December 5, 2006, 11:47
Default Hello everyone, When I inse
  #15
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Hello everyone,

When I insert an injector with a specified diameter, do the droplets get injected from the center or edge of injector. For example, say I set a hollow cone injector with diameter 1mm and angle of 30 degrees. Will the droplets be injected with a 30 degree angle from the center or at 1mm from center?

Thanks,

David
dhebert is offline   Reply With Quote

Old   December 5, 2006, 12:09
Default Hi David, In sprayInject.C (/
  #16
Member
 
ville vuorinen
Join Date: Mar 2009
Posts: 67
Rep Power: 17
ville is on a distinguished road
Hi David,
In sprayInject.C (/OpenFOAM/OpenFOAM-1.3/src/lagrangian/dieselSpray/spray/)
there is a variable called
injectionPosition which determines the place
where the drop is created (around line 100).
To my understanding the drop is created to this
position initially which would be the nozzle center. You can change this variable here to take into account that your nozzle has a 1mm diameter.
I hope I answered your question.
-Ville
ville is offline   Reply With Quote

Old   December 5, 2006, 14:16
Default Ville, Thanks for pointing
  #17
Member
 
David Hebert
Join Date: Mar 2009
Posts: 31
Rep Power: 17
dhebert is on a distinguished road
Ville,

Thanks for pointing this out, it was a big help to know where to start looking. It looks like in the injector definitions the initial droplet position is specified by the position() function. For example, near line 223 of /OpenFOAM/OpenFOAM-1.3/src/lagrangian/dieselSpray/injector/swirlInjector.C there exists:

scalar iRadius = d_*rndGen.scalar01();
scalar iAngle = 2.0*mathematicalConstant::pi*rndGen.scalar01();

return
(
position_
+ iRadius
* (
tangentialInjectionVector1_*cos(iAngle)
+ tangentialInjectionVector2_*sin(iAngle)
)
);

.
.
.

which, if I am not mistaken, randomly selects the radial and angular position of the droplet to be injected. Similar defitions exist for other injector types. If my interpretation is not correct, could someone clarify?

Thanks,

David
dhebert is offline   Reply With Quote

Old   December 7, 2006, 04:44
Default That is correct. The position
  #18
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
That is correct.
The position of the injection point is randomly chosen within the circle defined by injector position and diameter of injector.
niklas is offline   Reply With Quote

Old   March 18, 2007, 22:12
Default Hi everyone: I am working
  #19
Member
 
Bobby
Join Date: Mar 2009
Location: wuhan, hubei, China
Posts: 33
Rep Power: 17
aderliner is on a distinguished road
Hi everyone:

I am working on the project about fuel spray,the fuel I am interested is DME, it is C2H6O. I find that there is a folder named C2H6O in /src/thermophysicalmodels/liquids/, I wonder if it is DME. Also, I want to know how to use the fuel.

Thanks a lot~~~!

Best regards~~~!

Bobby
aderliner is offline   Reply With Quote

Old   March 19, 2007, 01:39
Default Yes, it is DME.
  #20
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
Yes, it is DME.
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
DieselFoam Spray Evaporation Continuity Error spv24 OpenFOAM Running, Solving & CFD 14 December 30, 2010 10:50
DieselFoam and ReactingFoam matteo_rosa_sentinella OpenFOAM Pre-Processing 4 September 28, 2009 10:35
Problem in dieselFoam skherad OpenFOAM Running, Solving & CFD 0 July 6, 2006 04:48
Problem in dieselFoam skherad OpenFOAM Running, Solving & CFD 0 July 6, 2006 04:45
About dieselFoam tsjb00 OpenFOAM Running, Solving & CFD 3 August 16, 2005 16:59


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