CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Filling of gas in a Cylinder (Time dependent mass fractions)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2019, 09:53
Default Filling of gas in a Cylinder (Time dependent mass fractions)
  #1
New Member
 
Abid Khan
Join Date: Dec 2017
Posts: 23
Rep Power: 8
abidkhan is on a distinguished road
Hello,

A cylinder currently having air at atmospheric pressure is to be filled with nitrogen so that at t=0 MF.air=1, MF.nitrogen=0 and at t=5min it is vice versa. How can I model that? (MF=mass fraction)

I can create a mixture with variable composition but how to change mass fractions with time in a transient analysis?

Best Regards,
Abid
abidkhan is offline   Reply With Quote

Old   December 20, 2019, 09:59
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Your description seems incomplete.

If the cylinder is full of Air at t=0, and you are only injecting Nitrogen, it will always have Air and Nitrogen; therefore, Air.mf will always be greater than 0, and N2.mf will never be 1.
Opaque is offline   Reply With Quote

Old   December 20, 2019, 10:03
Default
  #3
New Member
 
Abid Khan
Join Date: Dec 2017
Posts: 23
Rep Power: 8
abidkhan is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Your description seems incomplete.

If the cylinder is full of Air at t=0, and you are only injecting Nitrogen, it will always have Air and Nitrogen; therefore, Air.mf will always be greater than 0, and N2.mf will never be 1.
Sorry it was left to mention that air is also being sucked out at the same time this reducing MF.air and as nitrogen is being pumped in thus increasing MF.nitrogen. At the end, air air sucked out and nitrogen is pressurized till 2bar.
abidkhan is offline   Reply With Quote

Old   December 20, 2019, 19:06
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This is a straight forward multicomponent mixture simulation. You just start with the cylinder initial condition being air.mf = 1, nitrogen.mf = 0 and you inject fluid with air.mf=0, nitrogen.mf=1. With some suction modelled the cylinder will then have the nitrogen.mf increase over time.

Make sure you have done the CFX tutorials so you understand how to activate the models.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 09:10
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01


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