mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Disabled writing zero-sized faceZones since upset tecio library
This commit is contained in:
@ -1077,83 +1077,92 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
const faceZone& pp = zones[zoneI];
|
const faceZone& pp = zones[zoneI];
|
||||||
|
|
||||||
const indirectPrimitivePatch ipp
|
if (pp.size() > 0)
|
||||||
(
|
{
|
||||||
IndirectList<face>(mesh.faces(), pp),
|
const indirectPrimitivePatch ipp
|
||||||
mesh.points()
|
(
|
||||||
);
|
IndirectList<face>(mesh.faces(), pp),
|
||||||
|
mesh.points()
|
||||||
|
);
|
||||||
|
|
||||||
writer.writePolygonalZone
|
writer.writePolygonalZone
|
||||||
(
|
(
|
||||||
pp.name(),
|
pp.name(),
|
||||||
strandID++, //1+patchIDs.size()+zoneI, //strandID,
|
strandID++, //1+patchIDs.size()+zoneI, //strandID,
|
||||||
ipp,
|
ipp,
|
||||||
allVarLocation
|
allVarLocation
|
||||||
);
|
);
|
||||||
|
|
||||||
// Write coordinates
|
// Write coordinates
|
||||||
writer.writeField(ipp.localPoints().component(0)());
|
writer.writeField(ipp.localPoints().component(0)());
|
||||||
writer.writeField(ipp.localPoints().component(1)());
|
writer.writeField(ipp.localPoints().component(1)());
|
||||||
writer.writeField(ipp.localPoints().component(2)());
|
writer.writeField(ipp.localPoints().component(2)());
|
||||||
|
|
||||||
// Write all volfields
|
// Write all volfields
|
||||||
forAll(vsf, i)
|
forAll(vsf, i)
|
||||||
{
|
{
|
||||||
writer.writeField
|
writer.writeField
|
||||||
(
|
|
||||||
writer.getFaceField
|
|
||||||
(
|
(
|
||||||
linearInterpolate(vsf[i])(),
|
writer.getFaceField
|
||||||
pp
|
(
|
||||||
)()
|
linearInterpolate(vsf[i])(),
|
||||||
);
|
pp
|
||||||
}
|
)()
|
||||||
forAll(vvf, i)
|
);
|
||||||
{
|
}
|
||||||
writer.writeField
|
forAll(vvf, i)
|
||||||
(
|
{
|
||||||
writer.getFaceField
|
writer.writeField
|
||||||
(
|
(
|
||||||
linearInterpolate(vvf[i])(),
|
writer.getFaceField
|
||||||
pp
|
(
|
||||||
)()
|
linearInterpolate(vvf[i])(),
|
||||||
);
|
pp
|
||||||
}
|
)()
|
||||||
forAll(vSpheretf, i)
|
);
|
||||||
{
|
}
|
||||||
writer.writeField
|
forAll(vSpheretf, i)
|
||||||
(
|
{
|
||||||
writer.getFaceField
|
writer.writeField
|
||||||
(
|
(
|
||||||
linearInterpolate(vSpheretf[i])(),
|
writer.getFaceField
|
||||||
pp
|
(
|
||||||
)()
|
linearInterpolate(vSpheretf[i])(),
|
||||||
);
|
pp
|
||||||
}
|
)()
|
||||||
forAll(vSymmtf, i)
|
);
|
||||||
{
|
}
|
||||||
writer.writeField
|
forAll(vSymmtf, i)
|
||||||
(
|
{
|
||||||
writer.getFaceField
|
writer.writeField
|
||||||
(
|
(
|
||||||
linearInterpolate(vSymmtf[i])(),
|
writer.getFaceField
|
||||||
pp
|
(
|
||||||
)()
|
linearInterpolate(vSymmtf[i])(),
|
||||||
);
|
pp
|
||||||
}
|
)()
|
||||||
forAll(vtf, i)
|
);
|
||||||
{
|
}
|
||||||
writer.writeField
|
forAll(vtf, i)
|
||||||
(
|
{
|
||||||
writer.getFaceField
|
writer.writeField
|
||||||
(
|
(
|
||||||
linearInterpolate(vtf[i])(),
|
writer.getFaceField
|
||||||
pp
|
(
|
||||||
)()
|
linearInterpolate(vtf[i])(),
|
||||||
);
|
pp
|
||||||
}
|
)()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
writer.writeConnectivity(ipp);
|
writer.writeConnectivity(ipp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Info<< " Skipping zero sized faceZone " << zoneI
|
||||||
|
<< "\t" << pp.name()
|
||||||
|
<< nl << endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user