File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
src/finiteVolume/cfdTools/general/porosityModel/fiberDarcyForchheimer Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -89,24 +89,7 @@ Foam::tmp<Foam::volTensorField> Foam::porosityModels::fiberDarcyForchheimer::K()
89
89
const labelList & cells = mesh_ .cellZones ()[cellZoneIDs_ [zoneI ]];
90
90
forAll (cells , j )
91
91
{
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 ]);
110
93
}
111
94
}
112
95
You can’t perform that action at this time.
0 commit comments