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

Multi porous material simulation with porousSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By TobiF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2016, 14:40
Default Multi porous material simulation with porousSimpleFoam
  #1
Senior Member
 
Ali reza
Join Date: Mar 2014
Posts: 110
Rep Power: 12
1988 is on a distinguished road
Hello everyone

I am trying to simulate airflow in a porous material with 3 different porosities. As you can see in the attached picture there are three squares with different porosities stick to each other. they are named from left to right, one, two and three
The mesh is imported from Gambit and 3 squares are defined in topoSetDict. I also defined these 3 zones in cellZones and until now everything is OK.
I defined Porosity properties in constant folder in this way:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      porosityProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
one
{
    type            DarcyForchheimer;
    active          yes;
    cellZone        one;

    DarcyForchheimerCoeffs
    {
            d   d [0 -2 0 0 0 0 0] (9.65e7 9.65e7 9.65e7);
            f   f [0 -1 0 0 0 0 0] (7.21 7.21 7.21);
        
        coordinateSystem
        {
            e1  (1 0 0);
            e2  (0 1 0);
        }
}

two

type            DarcyForchheimer;
    active          yes;
    cellZone        two;

    DarcyForchheimerCoeffs
    {

            d   d [0 -2 0 0 0 0 0] (20e4 20e4 20e4);
            f   f [0 -1 0 0 0 0 0] (0 0 0);
        coordinateSystem
{

            e1  (1 0 0);
            e2  (0 1 0);
        }

    }


   three

type            DarcyForchheimer;
    active          yes;
    cellZone        three;
    DarcyForchheimerCoeffs
    {
            d   d [0 -2 0 0 0 0 0] (9.65e5 9.65e5 9.65e5);
            f   f [0 -1 0 0 0 0 0] (7.21 7.21 7.21);
        
        coordinateSystem
        {
            e1  (1 0 0);
            e2  (0 1 0);
        }
}

}

// ************************************************************************* //
but when I run the code, OpenFOAM does not consider prosity of square number1 and 2 and it just run the code for number 3.

Code:
Create time

Create mesh for time = 0


SIMPLE: no convergence criteria found. Calculations will run for 100000 steps.

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting RAS turbulence model laminar
Creating finite volume options
No finite volume options present

No MRF models present

Creating porosity model list from porosityProperties

Porosity region one:
    selecting model: DarcyForchheimer
    creating porous zone: three
Using pressure implicit porosity

Starting time loop

How can I fix it? I think there is a problem in my Porosity properties.
Thanks for your help
Attached Images
File Type: jpg pic1.jpg (9.6 KB, 11 views)

Last edited by 1988; July 31, 2016 at 14:41. Reason: mistake
1988 is offline   Reply With Quote

Old   August 1, 2016, 03:13
Default
  #2
New Member
 
Join Date: Apr 2014
Posts: 24
Rep Power: 12
TobiF is on a distinguished road
Hey,

count your brackets in your porosityProperties;

Code:
porosity1
{
   type DarcyForchheimer;
    active yes;
    cellZone porosity;
    DarcyForchheimerCoeffs
        {
            d     d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
            f      f [0 -1 0 0 0 0 0] (0 0 0);
 
            coordinateSystem
            {
                type cartesian;
                origin (0 0 0);
                coordinateRotation
                {
                    type axesRotation;
                    e1 (0.70710678 0.70710678 0);
                    e2 (0 0 1);
                }
            }
        }
}
you should do this for each porous zone.
In your code the closing brackets for the first two zones are missing...
1988 likes this.
TobiF is offline   Reply With Quote

Reply


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
material properties for FSI simulation amsys CFX 1 June 22, 2016 09:15
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 14:32
Fluid flow in porous material bjorson Main CFD Forum 1 January 31, 2011 08:33
model for porous material sleepinglily CFX 3 October 19, 2004 11:45


All times are GMT -4. The time now is 17:11.