Renamed autoHexMesh to snappyHexMesh

This commit is contained in:
mattijs
2008-05-20 18:30:52 +01:00
parent 14a17c6fef
commit 1e7c9ae822
5 changed files with 36 additions and 13 deletions

View File

@ -1,3 +0,0 @@
autoHexMesh.C
EXE = $(FOAM_APPBIN)/autoHexMesh

View File

@ -105,16 +105,39 @@ int main(int argc, char *argv[])
if (writeTopo)
{
word objMeshFile(runTime.path()/"blockTopology.obj");
Info<< nl << "Dumping block structure as Lightwave obj format"
<< " to " << objMeshFile << endl;
// Write mesh as edges.
{
fileName objMeshFile("blockTopology.obj");
OFstream objStream(objMeshFile);
OFstream str(runTime.path()/objMeshFile);
blocks.writeTopology(objStream);
Info<< nl << "Dumping block structure as Lightwave obj format"
<< " to " << objMeshFile << endl;
blocks.writeTopology(str);
}
// Write centres of blocks
{
fileName objCcFile("blockCentres.obj");
OFstream str(runTime.path()/objCcFile);
Info<< nl << "Dumping block centres as Lightwave obj format"
<< " to " << objCcFile << endl;
const polyMesh& topo = blocks.topology();
const pointField& cellCentres = topo.cellCentres();
forAll(cellCentres, cellI)
{
//point cc = b.blockShape().centre(b.points());
const point& cc = cellCentres[cellI];
str << "v " << cc.x() << ' ' << cc.y() << ' ' << cc.z() << nl;
}
}
Info<< nl << "end" << endl;

View File

@ -0,0 +1,3 @@
snappyHexMesh.C
EXE = $(FOAM_APPBIN)/snappyHexMesh

View File

@ -23,10 +23,10 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Application
autoHexMesh
snappyHexMesh
Description
Automatic split hex mesher.
Automatic split hex mesher. Refines and snaps to surface.
\*---------------------------------------------------------------------------*/
@ -58,7 +58,7 @@ int main(int argc, char *argv[])
(
IOobject
(
"autoHexMeshDict",
"snappyHexMeshDict",
runTime.system(),
mesh,
IOobject::MUST_READ,