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

Species transport in Darcy flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2015, 03:15
Default Species transport in Darcy flow
  #1
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 41
Rep Power: 10
wayne14 is on a distinguished road
Hi everyone,

I am trying to solve a species transport problem in darcy flow. Both viscosity and density depend on the species concentrations.

The equations and my calculation procedure are attached.

My test case is a point leakage at the location (0,0,0). I will post the case and solver here.

Hope you can help me.

Regards,

Wayne
Attached Files
File Type: docx theory.docx (34.0 KB, 14 views)

Last edited by wayne14; June 29, 2015 at 09:26.
wayne14 is offline   Reply With Quote

Old   June 29, 2015, 03:45
Default
  #2
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 41
Rep Power: 10
wayne14 is on a distinguished road
This is the solver and the two test case.

In test case Exo72D2Q0, the source strength is set to 0.
In this case, the air should just pile up without any movement.
The boundary conditions for pressure p seems to be ok now as follows:
Code:
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101.325e3;

boundaryField
{
    frontandback
    {
        type empty;
    }
    walls
    {
        type            zeroGradient;
    }

    up
    {
        type            fixedValue;
        value           uniform 101.325e3;

    }

    down
    {
       type groovyBC;

       variables "gradp=Rho*9.81;";
       gradientExpression "gradp";
       value uniform 101361.69921;
       fractionExpression "0";
    }
}

// ************************************************************************* //
Attached Images
File Type: jpg p.jpg (25.5 KB, 14 views)
File Type: jpg Rho.jpg (23.6 KB, 7 views)
Attached Files
File Type: gz Exo72D2Q0.tar.gz (3.6 KB, 7 views)
File Type: gz darcy2C1PFoam.tar.gz (3.5 KB, 7 views)

Last edited by wayne14; June 29, 2015 at 09:34. Reason: update
wayne14 is offline   Reply With Quote

Old   June 29, 2015, 04:01
Unhappy
  #3
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 41
Rep Power: 10
wayne14 is on a distinguished road
In test case Exo72D2, the source strength for CH4 is
Q Q [1 0 -1 0 0 0 0] 1.48e-5;// kg/s

This time the p still converge very fast, but the concentration (kg/kg) of CH4, 'TS2', would not converge below e-3
The concentration (kg/kg) of CH4 is shown in TS2.jpg and TS2 bigger.jpg.
The biggest problem is that TS2 does not meet the mass balance! Will someone be interested in helping me?
Attached Images
File Type: jpg TS2.jpg (19.0 KB, 8 views)
File Type: jpg TS2 bigger.jpg (43.2 KB, 13 views)

Last edited by wayne14; June 29, 2015 at 09:55.
wayne14 is offline   Reply With Quote

Old   June 29, 2015, 10:53
Default
  #4
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 41
Rep Power: 10
wayne14 is on a distinguished road
It seems that the problem have been solved after I correct the boundary conditions. However, I still wish that you can comment on my solver so that I can develop a better one in the future.
wayne14 is offline   Reply With Quote

Old   September 26, 2016, 02:06
Default
  #5
New Member
 
Patrick Kastner
Join Date: Apr 2016
Posts: 10
Rep Power: 10
kostnermo is on a distinguished road
Hi Yan,

could you tell me how you corrected the BCs?
I am trying to solve a similar problem at the moment.

Kind regards,

Patrick
kostnermo is offline   Reply With Quote

Old   September 26, 2016, 04:12
Default
  #6
Member
 
Yan Wang
Join Date: May 2015
Location: Beijing
Posts: 41
Rep Power: 10
wayne14 is on a distinguished road
Quote:
Originally Posted by kostnermo View Post
Hi Yan,

could you tell me how you corrected the BCs?
I am trying to solve a similar problem at the moment.

Kind regards,

Patrick
Hi Patrick,

I will email you.

Regards,
Yan
wayne14 is offline   Reply With Quote

Reply

Tags
darcy flow, density-variable, species transport, viscosity


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Species transport in multiphase flow Dinar FLUENT 7 December 3, 2016 12:46
Species transport simulation in cyclic flow SH_P FLUENT 0 May 29, 2015 11:15
species transport in water lyn FLUENT 1 December 12, 2007 18:15
Graphical image of a species flow Rajeev Kumar Singh FLUENT 1 September 23, 2001 04:10


All times are GMT -4. The time now is 07:50.