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

Two species in one phase with two inlets

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2023, 03:29
Question Two species in one phase with two inlets
  #1
New Member
 
Join Date: Jun 2023
Location: Brest
Posts: 21
Rep Power: 2
CFDUser29 is on a distinguished road
Hello everyone,

I have searched a bit, but I didn't find a solution, so I hope one can help.
I try to simulate dispersion of methane in air, given that I work in molar fraction (mol^-1). The case is the following :

Inlet 1 : Air, mol_frac = 1
Inlet 2 : Air, mol_frac = 0.92 & CH4, mol_frac = 0.08

Of course I also impose conditions on speed as well as the turbulent kinetic energy.
I guess that to do what I want, I can simply create two dictionaries called "Air" and "CH4" but I would like to tell the solver the density of both gases, but I don't know how to do that. Perhaps in Physical Properties.

If I add two species in Physical Properties, do I have to change the viscosity model that is defined as below ?

Code:
viscosityModel constant;

nu              [0 2 -1 0 0 0 0] 1.42e-5;
This is quite urgent, so if anyone knows I would be very pleased to learn his solution. I precise that I work with simpleFoam, and I might certainly work with pisoFoam later one the steady case is correctly set.
CFDUser29 is offline   Reply With Quote

Old   July 17, 2023, 06:02
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,098
Rep Power: 26
Yann will become famous soon enough
Hello,

You cannot do this with simpleFoam, a better approach would be to use reactingFoam (without reactions) which will do just what you are trying to achieve. It will allow you to define multiple species, each one having its own thermophysicalProperties.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   July 17, 2023, 06:07
Default
  #3
New Member
 
Join Date: Jun 2023
Location: Brest
Posts: 21
Rep Power: 2
CFDUser29 is on a distinguished road
I will try it and tell you if that works. Thanks
CFDUser29 is offline   Reply With Quote

Reply

Tags
definition, density, dispersion, species mixing


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
UDF Species of each phase U1990 ANSYS 3 April 9, 2021 06:11
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 16:12
iteration questions in discrete phase iknowjesus FLUENT 4 March 13, 2015 06:07
Three Phase flow into a reservoir... akjha Main CFD Forum 0 December 15, 2014 07:01
Species Transport model Vs discrete phase Karthick FLUENT 0 April 27, 2004 02:23


All times are GMT -4. The time now is 19:46.