ENH: propogate face area support into surface-type meshes (issue #266)

* MeshedSurface / surfMesh / triSurface

- use shorter method names similar to those from volume meshes:

      Sf(), magSf(), Cf()

  instead of the longer ones from PrimitivePatch:

      faceAreas(), magFaceAreas(), faceCentres()

- similar names throughout to ease switching between triSurface and
  MeshedSurface storage.
This commit is contained in:
Mark Olesen
2016-10-20 08:36:02 +02:00
parent caba74dcfa
commit fb9f93dd7c
7 changed files with 94 additions and 20 deletions

View File

@ -161,7 +161,8 @@ int main(int argc, char *argv[])
Info<< "Read surface:" << endl;
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
// check: output to ostream, construct from istream
{
@ -205,7 +206,8 @@ int main(int argc, char *argv[])
Info<< " with scaling " << scaleFactor << endl;
surf.scalePoints(scaleFactor);
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
}
if (optStdout)
@ -224,7 +226,8 @@ int main(int argc, char *argv[])
Info<< "Read surface:" << endl;
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
// check: output to ostream, construct from istream
{
@ -268,7 +271,8 @@ int main(int argc, char *argv[])
Info<< " with scaling " << scaleFactor << endl;
surf.scalePoints(scaleFactor);
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
}
if (optStdout)
@ -286,7 +290,8 @@ int main(int argc, char *argv[])
Info<< "Read surface:" << endl;
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
// check: output to ostream, construct from istream
{
@ -330,7 +335,8 @@ int main(int argc, char *argv[])
Info<< " with scaling " << scaleFactor << endl;
surf.scalePoints(scaleFactor);
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
}
if (optStdout)
@ -348,7 +354,8 @@ int main(int argc, char *argv[])
Info<< "Read surface:" << endl;
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
// check: output to ostream, construct from istream
{
@ -392,7 +399,8 @@ int main(int argc, char *argv[])
Info<< " with scaling " << scaleFactor << endl;
surf.scalePoints(scaleFactor);
surf.writeStats(Info);
Info<< endl;
Info<< "Area : " << sum(surf.magSf()) << nl
<< endl;
}
if (optStdout)