|
[Sponsors] |
Filling of gas in a Cylinder (Time dependent mass fractions) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2019, 09:53 |
Filling of gas in a Cylinder (Time dependent mass fractions)
|
#1 |
New Member
Abid Khan
Join Date: Dec 2017
Posts: 23
Rep Power: 8 |
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 |
|
December 20, 2019, 09:59 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
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. |
|
December 20, 2019, 10:03 |
|
#3 |
New Member
Abid Khan
Join Date: Dec 2017
Posts: 23
Rep Power: 8 |
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.
|
|
December 20, 2019, 19:06 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
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. |
|
|
|
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 |