|
[Sponsors] |
Multiple cellZones in one porosity in porousSimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 28, 2021, 06:49 |
Multiple cellZones in one porosity in porousSimpleFoam
|
#1 |
New Member
Oliver Herz
Join Date: Jun 2021
Posts: 3
Rep Power: 5 |
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. |
|
July 28, 2021, 10:03 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,199
Rep Power: 27 |
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 |
|
July 28, 2021, 11:36 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
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. |
||
|
|
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 |