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

Gas injection in another gas

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2014, 04:23
Default Gas injection in another gas
  #1
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Dear foamers,

I have some domain filled with air and I would like to inject another gas into the domain at an inlet patch.

This gas has got different thermoPhysicalProperties but I don't want to take into account any reaction.

So I just want to be able to inject a different gas at the inlet from what I have in my domain.

Is there a way to do this in OpenFOAM? does groovyBC would be a mean for instance?
vinz is offline   Reply With Quote

Old   April 10, 2014, 14:54
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
some suggestion
1- two phase flow solver , for example interFoam
2-reactingFoam, with out combustion
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   April 10, 2014, 15:29
Default
  #3
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
This afternoon I tried compressibleMultiphaseInterFoam which looks interesting.

However since it is based on interFoam I am not sure that it takes into account gas mixing like it is the case into twoLiquidMixingFoam for instance?
vinz is offline   Reply With Quote

Old   April 11, 2014, 04:03
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
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
reactingFoam without would work. It does however assume a Schmidt number of 1 if I am not mistaken. This may be inaccurate. interFoam or similar will not have mixing.

Regards,
Tom
tomf is offline   Reply With Quote

Old   April 11, 2014, 06:20
Default
  #5
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Ok, thanks i will give it a try.
vinz is offline   Reply With Quote

Old   April 11, 2014, 13:20
Default
  #6
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Ok, So I tried the whole day to get something working within reactingfoam without much success unfortunately.

In fact, the simulation is running for some thousands iterations but it stops at some point without any apparent reason. The timePrecision is increased while the deltaT is decreased radically and the code crashes:
"Increased the timePrecision from 637 to 638 to distinguish between timeNames at time 0.00154733"

I tried both laminar and turbulent with the same result, although turbulent is running a bit longer.

I tried to activate/deactivate combustion in combustionProperties file but the result is the same.
I also tried to activate/deactivate chemistry in chemistryProperties file but then again the result is the same.

My mesh is good according to checkMesh.
I don't see any specific problem on my boundary conditions, especially since the simulation is running for some time.

The only problem I could think of is that the simulation seems to crash when speed is increasing and flow becomes supersonic. Could that be the reason?

Any help would be highly appreciated. It seems that reactingFoam is a good candidate so I would be really happy to make it work.
vinz is offline   Reply With Quote

Old   April 14, 2014, 04:09
Default
  #7
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
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
For supersonic flow I would suggest rhoReactingFoam. This uses density based thermodynamics which seems to cope with supersonic/transonic flow better.

Regards,
Tom
tomf is offline   Reply With Quote

Old   April 14, 2014, 05:27
Default
  #8
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
I will try it as well.

This week-end I figure out the problem was coming from the fvSchemes and the fvSolution files.
Simulation is working now with the upwind scheme and GAMG solver instead of PCG for pressure.
I have to see if I can still run with another scheme than upwind which is not the most accurate. Maybe using rhoReactingFoam will help.
vinz is offline   Reply With Quote

Old   April 27, 2014, 13:51
Default Similar Problem
  #9
New Member
 
IN
Join Date: Mar 2014
Posts: 9
Rep Power: 12
rohitpurdue is on a distinguished road
Hi Vinz,

I am also trying to simulate mixing problem using reactingFoam an my simulation too crashes after running for around 0.1 seconds that is its time precision starts increasing and it goes upto 630 and then blows up. It would be very helpful if you can help me figure out this problem.


Thanks,

Rohit
rohitpurdue is offline   Reply With Quote

Old   April 28, 2014, 03:52
Default
  #10
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Did you try the schemes and solvers I was indicating in my previous message?
vinz is offline   Reply With Quote

Old   April 28, 2014, 12:54
Default fvScheme file
  #11
New Member
 
IN
Join Date: Mar 2014
Posts: 9
Rep Power: 12
rohitpurdue is on a distinguished road
Hi Vinz,

No I have not tried those but I want to try them, as I am new to CFD can you please tell me where did you use those upwind schemes? If possible can you share your fvscheme script. I have been trying to run this case for last 2 weeks continuously without any success. I really appreciate your help and guidance.

Thanks,

Rohit
rohitpurdue is offline   Reply With Quote

Old   June 26, 2014, 16:08
Default
  #12
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
Have you checked if your concentrations become unbounded? Do you see warnings in the log output? Have you chosen bounded schemes for the bounded variables?
jherb 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
injection problem Mark New FLUENT 0 August 4, 2013 02:30
error message cuteapathy CFX 14 March 20, 2012 07:45
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 23:02


All times are GMT -4. The time now is 14:01.