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

One phase, mixing of two different gases

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2019, 10:40
Default One phase, mixing of two different gases
  #1
jcw
New Member
 
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17
jcw is on a distinguished road
Hello!
After reading many threads in forum, I am still not sure, which OF solver to use.
I would like to simulate the mixing of 2 gases (air and CH4). Each gas component is entering a separate inlet. At the outlet I would like to evaluate the mixing quality. There is no phase change. Gases enter with different temperatures.
Which OF solver is appropriate? Is there a tutorial? I use OF4.1.
Thanks.
jcw is offline   Reply With Quote

Old   January 16, 2019, 02:20
Default
  #2
jcw
New Member
 
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17
jcw is on a distinguished road
No hints for my question?
jcw is offline   Reply With Quote

Old   January 16, 2019, 04:38
Default
  #3
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
Hi,

You could have a look at reactingFoam and it's variants. If you turn off chemistry/combustion you will get just the mixing.

I would suggest looking at either of:

Code:
$FOAM_TUTORIALS/combustion/reactingFoam/laminar/counterFlowFlame2D
$FOAM_TUTORIALS/combustion/reactingFoam/laminar/counterFlowFlame2DLTS
depending on whether you want to look at time-accurate or steady-state simulations.

Regards,
Tom
pconen likes this.
tomf is offline   Reply With Quote

Old   January 18, 2019, 10:38
Default
  #4
jcw
New Member
 
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17
jcw is on a distinguished road
Hello!
Thanks for reply. I actually managed with simpleReactingParcelFoam. Lagrange off, non-reacting.
Regards
jcw is offline   Reply With Quote

Old   July 25, 2023, 09:44
Default
  #5
New Member
 
Join Date: Jun 2023
Location: Brest
Posts: 21
Rep Power: 3
CFDUser29 is on a distinguished road
Quote:
Originally Posted by jcw View Post
Hello!
Thanks for reply. I actually managed with simpleReactingParcelFoam. Lagrange off, non-reacting.
Regards
Can you please share you constant and system directories please? I struggle to set a simulation with two gases.
CFDUser29 is offline   Reply With Quote

Old   September 25, 2023, 04:28
Default simpleReactingParcelFoam
  #6
jcw
New Member
 
Christian Wolf
Join Date: Mar 2009
Posts: 27
Rep Power: 17
jcw is on a distinguished road
Quote:
Originally Posted by CFDUser29 View Post
Can you please share you constant and system directories please? I struggle to set a simulation with two gases.

Hello! It is a long time ago I used OF. My simulation is done with OF41. Maybe it will help.


Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \    /   O peration     | Version:  4.0                                   |
|   \  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      bounded Gauss upwind;
    div(phid,p)     bounded Gauss upwind;
    div(phi,K)      bounded Gauss linear;
    div(phi,h)      bounded Gauss upwind;
    div(phi,k)      bounded Gauss upwind;
    div(phi,epsilon) bounded Gauss upwind;
    div(phi,omega) bounded Gauss upwind;
    div(phi,Yi_h)   Gauss upwind;
    div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear uncorrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         uncorrected;
}

wallDist
{
    method meshWave;
}
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \    /   O peration     | Version:  4.0                                   |
|   \  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver           GAMG;

        tolerance        0;
        relTol           0.05;

        smoother         DICGaussSeidel;



        maxIter          50;
    };

    Phi
    {
        $p;
    }

    "(U|Yi|h|k|omega|epsilon)"
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        tolerance       0;
        relTol          0.1;
        maxIter         20;
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 5;
}

SIMPLE
{
    nCorrectors     2;
    nNonOrthogonalCorrectors 1;
    rhoMin          0.1;
    rhoMax          1.5;
}

relaxationFactors
{
    fields
    {
        p               0.3;
        rho             1;
    }
    equations
    {
        U               0.7;
        h               0.7;
        ".*"            0.7;
    }
}



 // ************************************************************************* //
jcw is offline   Reply With Quote

Reply

Tags
mixing gases, one phase


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
Fluent Limitations tymcme FLUENT 6 August 1, 2022 09:50
rhoReactinBuoyantFoam - Buoyant Mixing of two gases rkc.cfd OpenFOAM Programming & Development 0 July 13, 2014 14:09
Please correction give me. 2 Phase flow mixing 2D realalife Fluent Multiphase 0 September 3, 2013 10:38
two Phase column simulation chemeng OpenFOAM 3 August 18, 2010 13:53
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 15:20.