mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user