1 porousZones pZones(mesh);
3 // Creates the porosity field for MULES
4 volScalarField porosity
15 dimensionedScalar("NULL", dimless, 1.0),
19 forAll( pZones, zoneI )
21 const label & zoneId( pZones[zoneI].zoneId() );
23 const labelList & cells(mesh.cellZones()[zoneId]);
25 const scalar & zonePorosity( pZones[zoneI].porosity() );
27 forAll( cells, cellI )
29 porosity[cells[cellI]] = zonePorosity;