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

Multiple cellZones in one porosity in porousSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2021, 06:49
Default Multiple cellZones in one porosity in porousSimpleFoam
  #1
New Member
 
Oliver Herz
Join Date: Jun 2021
Posts: 3
Rep Power: 5
olher3 is on a distinguished road
Hello,



is it possible to have multiple
cellzones in one porosity definition ?

For example:
cellZone_1 and cellZone_2 should have the same porosity-1.




porosity-1
{
type DarcyForchheimer;

cellZone cellZone_1; cellZone_2;

d (0 0 0);
f (1e+5 1e+6 1e+6);

coordinateSystem
{
origin (0 0 0);
e1 (1 0 0);
e2 (0 1 0);
}
}

Off course, this notation does not work.

Best Regards

Last edited by olher3; July 28, 2021 at 08:27.
olher3 is offline   Reply With Quote

Old   July 28, 2021, 10:03
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,199
Rep Power: 27
Yann will become famous soon enough
Hi Oliver,

AFAIK you cannot define several cellZones in one single porosity source.
But you can define as many sources as you wish, like this:

Code:
porosity-1
{
    type DarcyForchheimer;
    cellZone cellZone_1;

    d (0 0 0);
    f (1e+5 1e+6 1e+6);

    coordinateSystem
    {
        origin (0 0 0);
        e1 (1 0 0);
        e2 (0 1 0);
    }
}

porosity-2
{
    type DarcyForchheimer;
    cellZone cellZone_2;

    d (0 0 0);
    f (1e+5 1e+6 1e+6);

    coordinateSystem
    {
        origin (0 0 0);
        e1 (1 0 0);
        e2 (0 1 0);
    }
}

If the code duplication bothers you, this should work too:

Code:
porosity-1
{
    type DarcyForchheimer;
    cellZone cellZone_1;

    d (0 0 0);
    f (1e+5 1e+6 1e+6);

    coordinateSystem
    {
        origin (0 0 0);
        e1 (1 0 0);
        e2 (0 1 0);
    }
}

porosity-2
{
    $porosity-1
    cellZone cellZone_2;
}



I hope this helps.
Yann
Yann is offline   Reply With Quote

Old   July 28, 2021, 11:36
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by Yann View Post
Hi Oliver,

AFAIK you cannot define several cellZones in one single porosity source.
But you can define as many sources as you wish, like this:

This is indeed currently the best (the only) solution. It does add a bit more text input, but still ok for efficiency since the fvOptions loop over the cellIds of each cellZone anyhow.
Yann likes this.
olesen 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
Dynamic Mesh Motion to multiple cellZones in a single mesh abhi_karm OpenFOAM Running, Solving & CFD 1 November 24, 2020 20:22
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Setting porosity in porousSimpleFoam Outbound OpenFOAM Running, Solving & CFD 5 December 1, 2017 10:15
porousSimpleFoam multiple soil regions sdp203 OpenFOAM Pre-Processing 1 August 19, 2014 20:42
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21


All times are GMT -4. The time now is 10:59.