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

Adding CO2 Mole Fraction to buoyantBoussinesqPimpleFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 7, 2013, 18:46
Default Adding CO2 Mole Fraction to buoyantBoussinesqPimpleFoam
  #1
NJG
Member
 
Nick Gutschow
Join Date: Jan 2013
Posts: 36
Rep Power: 13
NJG is on a distinguished road
Hello Community,

I am presently in the middle of trying to alter the bouyantBoussinesqPimpleFoam solver (I will call this the "reference solver" below) to handle not only convective heat transfer but changes in air composition as well. The idea is to treat things as incompressible in the typical way the Boussinesq approximation does with density only affecting buoyant body forces but have this buoyant force be the result of density change both from temperature change and CO2 mole fraction. I want to model a single occupant within a closed room breathing out warm relatively CO2 rich air.

Things so far are more or less coming along. I basically just copied the base solver and started making my own additions. For a first attempt, I am just duplicating the relationships for thermal diffusivity as molecular diffusivity follows pretty much identical forms. As such I have added x, Dx, and Dxt variables to match the T, kappa, and kappat for temperature. I also created a new wall function just like the kappatJayatillekeWallFunction but for Dxt (based on the Schmidt number, turbulent and laminar). I have added a molecular diffusion equation. Etc. etc.

So, I have a bunch of questions, but I will just start in the middle with what I am dealing with now.

Looking in the reference solver tutorial files, I have a T.org file in the 0 folder as well as a T file. The T file has a long list of temperature values, one for every finite volume if I understand correctly. My first question is a) how do I populate this T file with initial values without actually going through and adding them all by hand (my final run case will have ~10^6 volumes, so that would suck), and b) what is T.org and is it related to this?

A follow up question is that I plan to have an x (CO2 mole fraction) file just like I have a T file. Would I also need an x.org file then, too?

Thanks for the help! If I get this running I will make it available to anyone interested in playing with it.

-NG
NJG is offline   Reply With Quote

 


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 Fraction and Mole Fraction don't tie up KieranHegarty FLUENT 1 February 28, 2015 10:22
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14
CFX Solver Memory Error mike CFX 1 March 19, 2008 07:22
For a correct the mole fraction ... kevin FLUENT 0 April 9, 2002 04:39


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