Skip to content

Commit 3ee25d9

Browse files
committed
Bugfix in permeability rotation
1 parent 66e87a1 commit 3ee25d9

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/finiteVolume/cfdTools/general/porosityModel/fiberDarcyForchheimer/fiberDarcyForchheimer.C

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -89,24 +89,7 @@ Foam::tmp<Foam::volTensorField> Foam::porosityModels::fiberDarcyForchheimer::K()
8989
const labelList& cells = mesh_.cellZones()[cellZoneIDs_[zoneI]];
9090
forAll(cells, j)
9191
{
92-
if (D_[zoneI][j].xx() > 1)
93-
permeability.ref()[cells[j]].xx() = 1 / D_[zoneI][j].xx();
94-
if (D_[zoneI][j].xy() > 1)
95-
permeability.ref()[cells[j]].xy() = 1 / D_[zoneI][j].xy();
96-
if (D_[zoneI][j].xz() > 1)
97-
permeability.ref()[cells[j]].xz() = 1 / D_[zoneI][j].xz();
98-
if (D_[zoneI][j].yx() > 1)
99-
permeability.ref()[cells[j]].yx() = 1 / D_[zoneI][j].yx();
100-
if (D_[zoneI][j].yy() > 1)
101-
permeability.ref()[cells[j]].yy() = 1 / D_[zoneI][j].yy();
102-
if (D_[zoneI][j].yz() > 1)
103-
permeability.ref()[cells[j]].yz() = 1 / D_[zoneI][j].yz();
104-
if (D_[zoneI][j].zx() > 1)
105-
permeability.ref()[cells[j]].zx() = 1 / D_[zoneI][j].zx();
106-
if (D_[zoneI][j].zy() > 1)
107-
permeability.ref()[cells[j]].zy() = 1 / D_[zoneI][j].zy();
108-
if (D_[zoneI][j].zz() > 1)
109-
permeability.ref()[cells[j]].zz() = 1 / D_[zoneI][j].zz();
92+
permeability.ref()[cells[j]] = inv(D_[zoneI][j]);
11093
}
11194
}
11295

0 commit comments

Comments
 (0)