debug printing in autoHexMesh; missing entry in createPatchDict

This commit is contained in:
mattijs
2008-05-01 22:24:52 +01:00
parent faf3d79525
commit c3474e528e
3 changed files with 8 additions and 3 deletions

View File

@ -22,6 +22,10 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Tolerance used in matching faces. Absolute tolerance is span of
// face times this factor.
matchTolerance 1E-3;
patches patches
( (
{ {

View File

@ -1492,7 +1492,8 @@ void Foam::autoHexMeshDriver::doMesh()
// Pre-smooth patch vertices (so before determining nearest) // Pre-smooth patch vertices (so before determining nearest)
preSmoothPatch(nInitErrors, baffles, meshMover); preSmoothPatch(nInitErrors, baffles, meshMover);
// Calculate displacement at every patch point. Insert into meshMover. // Calculate displacement at every patch point. Insert into
// meshMover.
calcNearestSurface(snapDist, meshMover); calcNearestSurface(snapDist, meshMover);
// Get smoothly varying internal displacement field. // Get smoothly varying internal displacement field.

View File

@ -890,6 +890,7 @@ void Foam::autoHexMeshDriver::preSmoothPatch
if (debug_) if (debug_)
{ {
const_cast<Time&>(mesh_.time())++;
Pout<< "Writing patch smoothed mesh to time " << mesh_.time().timeName() Pout<< "Writing patch smoothed mesh to time " << mesh_.time().timeName()
<< endl; << endl;
mesh_.write(); mesh_.write();
@ -1171,6 +1172,7 @@ void Foam::autoHexMeshDriver::scaleMesh
} }
if (debug_) if (debug_)
{ {
const_cast<Time&>(mesh_.time())++;
Pout<< "Writing scaled mesh to time " << mesh_.time().timeName() Pout<< "Writing scaled mesh to time " << mesh_.time().timeName()
<< endl; << endl;
mesh_.write(); mesh_.write();
@ -1179,8 +1181,6 @@ void Foam::autoHexMeshDriver::scaleMesh
meshMover.displacement().write(); meshMover.displacement().write();
tmp<pointScalarField> magDisp(mag(meshMover.displacement())); tmp<pointScalarField> magDisp(mag(meshMover.displacement()));
magDisp().write(); magDisp().write();
const_cast<Time&>(mesh_.time())++;
} }
} }