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

simpleCar with porous media - v2012 and OF8 simulations do not match

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2021, 15:36
Default simpleCar with porous media - v2012 and OF8 simulations do not match
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 269
Rep Power: 6
boffin5 is on a distinguished road
Hi,
My focus here is simulations with porous media defined by Darcy Forchheimer coefficients. There is a simpleCar tutorial in v2012; it simulates the airflow through a car radiator. When I run it there it gives reasonable results. Then I adapted it to run in OF8, which I prefer to use. In this case, it doesn't recognize the presence of the radiator. Also, under polymesh there is a 'sets' folder that doesn't appear in v2012. I'm not sure why.
I need to understand why the OF8 version isn't running properly. Attached are images of the paraview outputs. The files that should pertain to the problem are fvOptions and topoSetDict. Here they are for v2012 and OF8, respectively:


Hoping for advice, solutions and/or information!


fvOptionsv2012
Code:
porosity1
{
    type            explicitPorositySource;
    active          true;

    explicitPorositySourceCoeffs
    {
        type            DarcyForchheimer;
        selectionMode   cellZone;
        cellZone        porousZone;

        DarcyForchheimerCoeffs
        {
            //d   d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
            d   d [0 -2 0 0 0 0 0] (5e7 -5000 -5000);
            f   f [0 -1 0 0 0 0 0] (0 0 0);

            coordinateSystem
            {
                origin  (0 0 0);
                e1      (1 0 0);
                e2      (0 1 0);
            }
        }
    }
}
fvOptionsOF8
Code:
porosity1
{
    type            explicitPorositySource;
    active          true;

    explicitPorositySourceCoeffs
    {
        //type            DarcyForchheimer;
        selectionMode   cellZone;
        cellZone        porousZone;        
        
        type            DarcyForchheimer;
        
        // D 100;  // Very little blockage
        // D 200;  // Some blockage but steady flow
        // D 500;  // Slight waviness in the far wake
        // D 1000; // Fully shedding behavior
        //DarcyForchheimerCoeffs
        
        
            d   d [0 -2 0 0 0 0 0] (5e7 -5000 -5000);
            f   f [0 -1 0 0 0 0 0] (0 0 0);
            
            //d    (50 -50 -50);
            //f    (0 0 0);

            coordinateSystem
            {
                type    cartesian;    //added
                origin  (0 0 0);      //added
                coordinateRotation  {    //added
                //origin  (0 0 0);
                type    axesRotation;
                e1      (1 0 0);
                e2      (0 1 0);
                }
            }
      }
}
topoSetDictv2012
Code:
actions
(
    {
        name    porousCells;
        type    cellSet;
        action  new;
        source  boxToCell;
        box     (2.05 0.4 -1) (2.1 0.85 1);
    }
    {
        name    porousZone;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        set     porousCells;
    }

    {
        name    airIntake;
        type    faceSet;
        action  new;
        source  patchToFace;
        patch   body;
    }
    {
        name    airIntake;
        type    faceSet;
        action  subset;
        source  boxToFace;
        box     (2.6 0.75 0)(2.64 0.8 0.1);
    }


);
topoSetDictOF8
Code:
actions
(
    {
        name    porousCells;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo {
            box     (2.05 0.4 -1) (2.1 0.85 1);
            }
    }
    {
        name    porousZone;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo {
            cellSet     porousCells;
            }
    }

   {
        name    airIntake;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo {
            //patch   body;
            name   "body";
            }
    }
    {
        name    airIntake;
        type    faceSet;
        action  subset;
        source  boxToFace;
        sourceInfo {
            box     (2.6 0.75 0)(2.64 0.8 0.1);
            }
    }
);
Attached Images
File Type: png simpleCarv2012.png (42.9 KB, 15 views)
File Type: png simpleCar8.png (45.2 KB, 14 views)
boffin5 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



All times are GMT -4. The time now is 13:47.