mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Renamed autoHexMesh to snappyHexMesh
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
autoHexMesh.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/autoHexMesh
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -0,0 +1,3 @@
|
||||
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,
|
||||
Reference in New Issue
Block a user