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

Free jet simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2014, 12:07
Default
  #21
New Member
 
Joao
Join Date: Aug 2014
Posts: 14
Rep Power: 12
joaofl is on a distinguished road
Thats true. I got that from the paper. Trying this right now!

Thanks again.
joaofl is offline   Reply With Quote

Old   August 21, 2014, 12:36
Default
  #22
New Member
 
Joao
Join Date: Aug 2014
Posts: 14
Rep Power: 12
joaofl is on a distinguished road
By the way, do you think RAS is a better approach?
joaofl is offline   Reply With Quote

Old   August 21, 2014, 12:53
Default
  #23
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
It all depends on what you're trying to achieve and what you're interested in.

In LES: the larger 3D unsteady turbulent motions are directly solved. The effect of the smaller scale motions are modelled.

In RANS:
The model solves the transport equations for the mean flow quantities only and all the scales of turbulence are modelled.

To help please see the attachments below: the second shows a direct comparison between RANS and LES results using FLUENT.

Hope it helps,

James
Attached Images
File Type: jpg DNS-LES-RANS.jpg (64.1 KB, 188 views)
File Type: jpg RANS-vs-LES.jpg (75.8 KB, 398 views)
ni-openfoam-user is offline   Reply With Quote

Old   August 21, 2014, 14:36
Default
  #24
New Member
 
Joao
Join Date: Aug 2014
Posts: 14
Rep Power: 12
joaofl is on a distinguished road
Great plots. This leaves no doubts about my choice. LES might produce the results I expect. The main issue is with my setup.

I made the nozzle conic, with a radius in the end to avoid the effect of sharp edges, and add extra volume to it, to create a higher pressure area, for the jet to occur. Used ur formula to calculate k.

But now, the simulation crashes at t=0.145 (the pressure distribution at the last time instant is the attached snapshot)

Do you have any clue why it happens? Should I chose another pressure inlet config? It seems that this is due to this negative pressure peak right in front of the nozzle.

thanks a lot for your help.

Cheers, João

boundary.jpg
joaofl is offline   Reply With Quote

Old   August 22, 2014, 06:59
Default
  #25
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
I guess at the moment my only comment would be to play with the usual variables (i.e. relaxation factors, time-step)

Also, are you fully implementing your final release velocity? I've found it can be better to ramp up from a low to high velocity over time. In some of our cases for example we also put a H2 cap over the orifice, without these we sometimes get a crash, especially when considering high velocities (boundary going immediately from quiescent air to high velocity h2).

I must admit that this is my first simulation running OpenFOAM, I intend to run a RANS sim and then an LES sim, you seem to have already surpassed me as I'm still having issues with my "open atmosphere" boundary conditions.

I believe I'm going to have to strip my simulation back and then slowly build up the complexity in order to find where exactly I'm having the problem. I guess I was foolish to jump directly from FLUENT to OpenFOAM and attempt to immediately run the final version of the simulation.

Sorry if I'm not much help
ni-openfoam-user is offline   Reply With Quote

Old   August 22, 2014, 12:03
Default
  #26
New Member
 
Joao
Join Date: Aug 2014
Posts: 14
Rep Power: 12
joaofl is on a distinguished road
Hello James.

I found that the crash was probably due to the high flow speeds (above mach) on the nozzle's outlet. By decreasing the inlet flow's speed, it stopped crashing. I also found some meshes that I generated, to have to few cells in the nozzle outlet, that was also crashing the simulation.

I'm quit sure of my lack of theory, both from FD and CFD, but sometimes I find more easy to learn if I take an example, and study the effect of the different parameters on it, in parallel with some theory, what gives me intuition, what use to be VERY important.

Like I said, I started from an LES example (pitzDaily), and from that I am trying to grow my solution.

But I'm sure that my next step is to try to find boundaries that do not reflect this waves, since lots of background noise keeps bouncing around.

If you hit the answer and solutions, please share it.

Thanks again!

João
joaofl is offline   Reply With Quote

Old   August 25, 2014, 05:40
Default
  #27
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

For non-reflective boundary conditions I believe there is a boundary condition called waveTransmissive (for pressure), and use it with advective (for other quantities), this may help to reduce the reflections. Both LES and high Mach flow will cause sharp gradients near the outlet (shocks and/or vortices) which means it is likely to have some numerical (accuracy & stability related) issues.

This is not the most trivial to solve. I think there are quite some threads that deal with these issues, I suggest that you look for them.

Regards,
Tom
tomf is offline   Reply With Quote

Old   September 2, 2014, 08:22
Default
  #28
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
Hi Tom,

Thank you for answering my request.
Referring back to my simulation (as outlined in the 4th post of this thread, pic of domain attached below, domain dimensions = L x W x H = 18 x 7 x 5.33 metres)

Following your advice I have implemented the following boundary conditions:

For the end (outflow) and top boundary:
  • p = waveTransmissive, gamma = 1.4, fieldInf = 101325, lInf = 100.0, value = uniform 101325
  • U = advective, phi = phi, fieldInf = (1.1 0 0), lInf = 100.0
For the left and right boundary (longer sides of the 3D domain)
  • p = zerogradient
  • U = freestream, phi = phi, freestream = uniform (1.1 0 0), value = uniform (1.1 0 0)
I have at the moment switched off the "H2 inflow" so basically I am attempting to run it as an outdoor wind tunnel with 1.1 m/s of air coming in through the air inflow boundary. This is essentially how I want these boundaries to act (open and non-reflecting).

The behaviour has greatly improved, however I am getting a slight increase in velocity from 1.1 m/s to around 1.16 m/s. I would have expected velocity to remain at the initial setting of 1.1 m/s (why should it increase?). The growth of velocity always starts in the bottom right hand corner, at the location of the 'ground' boundary meeting the 'End' boundary.

I have noticed the following behaviour after 3 seconds of simulation time (changing only lInf):
  • lInf = 0.5, velocity increases to 2.47 m/s
  • lInf = 10, velocity increases to 1.23 m/s
  • lInf = 100, velocity increases to 1.16 m/s
I found the following thread quite useful in explaining lInf

http://www.cfd-online.com/Forums/ope...issive-bc.html

(From the tutorials lInf is varied from 0.025 - 5.0)

1) Could you please comment on these results and behaviour, and advise me on my next move?
I plan to now use these settings and start to introduce H2 through the pipe, I have written a boundary condition to start with a low velocity and then increase it over time for stability.

2) From your previous post:
"For non-reflective boundary conditions I believe there is a boundary condition called waveTransmissive (for pressure), and use it with advective (for other quantities)"
What other quantities (if any) should I also be setting to 'advective'
In my 0/folder I have alphat, mut, k, epsilon, H2, O2, N2, p, T and U

Sorry for the long post, but I think its always better to include as much detail as possible.

Kind regards,

James
Attached Images
File Type: jpg domain.jpg (81.8 KB, 162 views)
ni-openfoam-user is offline   Reply With Quote

Old   September 8, 2014, 08:53
Default
  #29
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi James,

Did not have time to answer until now unfortunately. Maybe you have already done a lot more research by now.

1) It has been a while since I used the waveTransmissive boundary condition. In that case I assumed an lInf that was approximately similar to the domain itsels and the results seemed reasonable. Also they where not sensitive to the small changes I made in lInf to test. Your changes where a lot larger. Since you have a free jet, it would make sence if lInf is large, also your relative error is smallest then.

2) H2, O2, N2, T and U, basically the variables that are to be advected over the boundary. zeroGradient may work as well.

Good luck,
Tom
tomf is offline   Reply With Quote

Old   September 9, 2014, 08:20
Default
  #30
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
Dear Tom,

Thank you again for your response. I am currently running some tests using these settings.

Can I make a further request for some advice?

Using these boundary condition settings at the outer edges of my domain, as discussed, I now seem to be getting the required behaviour, in terms of setting up what it essentially an external wind tunnel. Wind blowing in horizontally from the left and out again through the right. This seems to be fine.

Now I wish to release H2 through the pipe.

Test case details:

Previously I ran a test test of a vertical H2 release through a pipe in the closed box (3x3x3 m) (as you can imagine this was much simplier to set up). the diameter of the pipe was the same (although square pipe rather than circular) and release velocity was 150 m/s.
After say 0.2 s I got a nicely formed jet (please see attachment)

Using the same settings in terms of boundary conditions at the pipe opening and identical settings in the 'fvSolution' and 'fvSchemes' file I then ran this for my open air horizontal release case. As you can see from the attachment the jet is very different after around 0.2 s. Not nearly as well formed.

Questions

1. In your experience is it fair to say that the boundary conditions (waveTransmissive, advective) which were set at the extremities of the domain should have no influence on what is happening at the pipe?

2. Is this more likely to be an issue stemming from convergence settings and differences between the meshes? The release inside the enclosure is much more refined (again please see attachments)

At the moment I am at a loss to understand why these two jets, after the same amount of release time are so vastly different.
  • Same release velocity
  • Same diameter
  • Same solver (ReactingFoam)
  • Same version of OpenFOAM (2.20)
  • Same settings in 'constant' and 'system' folders
Please recall that I must use this mesh for the Openair release case as I am tasked with comparing these OpenFOAM results to results obtained from FLUENT using the same mesh

Many thanks,

James
Attached Images
File Type: jpg Enclosure_release_0p18s.jpg (20.0 KB, 174 views)
File Type: jpg Enclosure_release_0p18s_mesh.jpg (88.9 KB, 137 views)
File Type: png Openair_release_0p18s.png (86.2 KB, 117 views)
File Type: jpg Openair_release_0p18s_mesh.jpg (55.1 KB, 106 views)
ni-openfoam-user is offline   Reply With Quote

Old   September 9, 2014, 09:25
Default
  #31
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi James,

1) No it should not, since it seems like the extremities of the domain are far enough away from your region of interest.

2) I would believe the mesh is mainly responsible. As you see in the more refined case quite a lot is happening in the first few cells above the opening. You are trying to capture this all in one cell. So I would suggest to increase the resolution here. Did you get reasonable results with Fluent for this mesh?

Regards,
Tom
tomf is offline   Reply With Quote

Old   September 9, 2014, 10:03
Default
  #32
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
Yes, using this mesh with fluent we got quite reasonable results.

(Please see my post above dated August 21, 2014, 16:53)

The top contour plot is the RANS simulation that I am trying to replicate using OpenFoam. I am really only concerned with H2 vol. % at the locations indicated on the plot and not really too concerned with the shape of the jet itself.

I stopped my simulation and increased the nOuterCorrectors, nCorrectors and nNonOrthogonalCorrectors and also added residuals controls and relaxationFactors to see what influence they have have to the solution. It is now running from 0.22 seconds

1. In your opinion is OpenFOAM is more dependent on the grid than FLUENT?

2. Do you have any other suggestions as to what may be going on?

I have an LES grid (as you can see from the bottom contour plot) maybe I should run this RAS sim on this grid to compare if the difference is indeed caused solely by the mesh?
ni-openfoam-user is offline   Reply With Quote

Old   September 9, 2014, 10:38
Default
  #33
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
1) I have no experience with Fluent, so I can not comment on this.

2) Convergence within the time step may be another factor indeed, so good that you modified those parameters.

It may indeed be interesting to run at the more refined mesh to see if the jet will develop.

Regards,
Tom
tomf is offline   Reply With Quote

Old   January 7, 2015, 23:10
Default
  #34
New Member
 
Yu-sen Niu
Join Date: Nov 2014
Posts: 16
Rep Power: 12
shenzhou1987 is on a distinguished road
Hi James!
Recently I'm simulating the jet flow of a nozzle into the air which is similar to your case. As the problem you met before, I don't konw how to set boundary conditions suitably. To be honest, I have used Fluent for a long time, and I'm totally a new one to OpenFOAM. So can you email your case to me? Then I can learn how to do case using OpenFOAM. Hope for your reply.
Thank you very much!
shenzhou1987 is offline   Reply With Quote

Old   November 3, 2015, 11:12
Default
  #35
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
Hi,

I can now help you with your boundary condition settings if you still require?

Kind regards,

James
ni-openfoam-user is offline   Reply With Quote

Old   February 21, 2017, 19:36
Default Final status
  #36
New Member
 
sina
Join Date: Jul 2013
Posts: 21
Rep Power: 13
aghsin is on a distinguished road
Quote:
Originally Posted by ni-openfoam-user View Post
Hi,

I can now help you with your boundary condition settings if you still require?

Kind regards,

James
Would you please let us know the final situation of your simulation? Would you please share your experience with boundary condition? Thank you in advance.
aghsin is offline   Reply With Quote

Old   December 20, 2018, 13:01
Default confused to use solver in open foam
  #37
Member
 
Sesh
Join Date: Dec 2018
Posts: 42
Rep Power: 7
virothi is on a distinguished road
Hi Tom, which solver would you recommend for the case mentioned above, even I have the same problem and I'm need of suggestions.
Thanks in advance

Quote:
Originally Posted by tomf View Post
Hi,

For the "Open Atmosphere" boundaries I would use:

p: totalPressure
U: pressureInletOutletVelocity
k/H2/O2/epsilon/T: inletOutlet
mut/alphat/N2: calculated

Regards,
Tom
virothi is offline   Reply With Quote

Old   December 21, 2018, 10:18
Default
  #38
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi

any of:

reactingFoam
rhoReactingFoam
rhoReactingBuoyantFoam

The latter if buoyancy is important in your case.

Regards,
Tom

Last edited by tomf; December 21, 2018 at 10:22. Reason: typo
tomf is offline   Reply With Quote

Old   December 21, 2018, 13:18
Default How do I solve this, and which solver should I use in openfoam,
  #39
Member
 
Sesh
Join Date: Dec 2018
Posts: 42
Rep Power: 7
virothi is on a distinguished road
Hi Tom,
I've seen you posting some information which is similar to my need, Could you please suggest which solver I have to use to simulate this gaseous jet propagation in ambient atmosphere.

The jet is pressed through a cylindrical nozzle of a length of 70 mm and an
inner diameter of 1 mm. Afterward, it expands in initially quiescent air of atmospheric pressure. The jet consists of a Helium/Nitrogen mixture of a density of 0.31 kg/m3. The velocity at the nozzle outlet is approximately 200 m/s. Both the air and the jet are of a temperature of T = 293 K. How do I calculate the velocity and mass fraction fields.
Thanks in advance

Quote:
Originally Posted by tomf View Post
Dear James,

Let me answer you:

1. The reason I suggested "calculated" is due to the fact that the mass fraction of all species should not be larger than 1, using calculated makes N2=1-(O2+H2), assuming your inert species is N2. If you are prescribing it to be only air, you could also use inletOutlet, both should work, I just prefer calculated.

2. Well I have performed similar simulations in the sense that I have had multi-species simulations and simulations with an open atmosphere, but not combined in one simulation. I did however have a multi-species simulation where my outlet was close to a sharp edge, so I used "open atmosphere" boundary conditions for this outlet in order to be able to cope with backflow. The simulation ran fine.

Regards,
Tom
virothi is offline   Reply With Quote

Old   May 11, 2021, 14:21
Default Help with a Free jet simulation in openfoam
  #40
New Member
 
Raul Martin Santiago
Join Date: May 2021
Posts: 1
Rep Power: 0
Y250_MATE is on a distinguished road
Hello,

I am having some issues with a simulation i am trying to conduct similar to the ones expressed in this trend. I am basically tring to simulate a jet from an aircraft engine at 600 m/s, 400°K which discharges into a free stream field at 300 m/s (aircraft speed). I am using a rhocentralfoam solver and i am having some weird results that i am not sure it is right. Basically i am having a pressure wave that travels faster than the jet and it bounces back at the outlet of my domain. Once the first wave is damped at the inlet then the flow gets stable. But i am not sure if it is what one should expect.
Can someone offer any help?

Cheers
Raul
Y250_MATE 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
Jet fan and Tunnel simulation ahlo7 CFX 9 November 13, 2019 05:54
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 03:31
CFX bubble simulation with free surface model adma CFX 6 February 3, 2006 12:17
Moving Jet Simulation psen Siemens 2 November 4, 2001 21:23
air jet simulation Yue zou Main CFD Forum 0 September 28, 1998 09:30


All times are GMT -4. The time now is 00:50.