Commit 1e7c9ae8 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

Renamed autoHexMesh to snappyHexMesh

parent 14a17c6f
......@@ -105,16 +105,39 @@ int main(int argc, char *argv[])
if (writeTopo)
{
word objMeshFile(runTime.path()/"blockTopology.obj");
// Write mesh as edges.
{
fileName objMeshFile("blockTopology.obj");
Info<< nl << "Dumping block structure as Lightwave obj format"
<< " to " << objMeshFile << endl;
OFstream str(runTime.path()/objMeshFile);
// Write mesh as edges.
Info<< nl << "Dumping block structure as Lightwave obj format"
<< " to " << objMeshFile << endl;
blocks.writeTopology(str);
}
// Write centres of blocks
{
fileName objCcFile("blockCentres.obj");
OFstream objStream(objMeshFile);
OFstream str(runTime.path()/objCcFile);
blocks.writeTopology(objStream);
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;
......
snappyHexMesh.C
EXE = $(FOAM_APPBIN)/snappyHexMesh
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment