Commit b47dd16a authored by mattijs's avatar mattijs
Browse files

ENH: snappyHexMehs: not write non-manifold points

parent 69ee5fa8
...@@ -206,12 +206,13 @@ void Foam::autoLayerDriver::checkMeshManifold() const ...@@ -206,12 +206,13 @@ void Foam::autoLayerDriver::checkMeshManifold() const
<< " points." << nl << " points." << nl
<< "This is not a fatal error but might cause some unexpected" << "This is not a fatal error but might cause some unexpected"
<< " behaviour." << nl << " behaviour." << nl
<< "Writing " << nNonManif //<< "Writing " << nNonManif
<< " points where this happens to pointSet " //<< " points where this happens to pointSet "
<< nonManifoldPoints.name() << endl; //<< nonManifoldPoints.name()
<< endl;
nonManifoldPoints.instance() = meshRefiner_.timeName(); //nonManifoldPoints.instance() = meshRefiner_.timeName();
nonManifoldPoints.write(); //nonManifoldPoints.write();
} }
Info<< endl; Info<< endl;
} }
...@@ -2634,6 +2635,8 @@ bool Foam::autoLayerDriver::writeLayerData ...@@ -2634,6 +2635,8 @@ bool Foam::autoLayerDriver::writeLayerData
if (meshRefinement::writeLevel() & meshRefinement::WRITELAYERFIELDS) if (meshRefinement::writeLevel() & meshRefinement::WRITELAYERFIELDS)
{ {
Info<< nl << "Writing fields with layer information:" << incrIndent
<< endl;
{ {
volScalarField fld volScalarField fld
( (
...@@ -2663,8 +2666,8 @@ bool Foam::autoLayerDriver::writeLayerData ...@@ -2663,8 +2666,8 @@ bool Foam::autoLayerDriver::writeLayerData
} }
fld.boundaryField()[patchI] == pfld; fld.boundaryField()[patchI] == pfld;
} }
Info<< "Writing volScalarField " << fld.name() Info<< indent << fld.name() << " : actual number of layers"
<< " with actual number of layers" << endl; << endl;
bool ok = fld.write(); bool ok = fld.write();
allOk = allOk & ok; allOk = allOk & ok;
} }
...@@ -2693,8 +2696,8 @@ bool Foam::autoLayerDriver::writeLayerData ...@@ -2693,8 +2696,8 @@ bool Foam::autoLayerDriver::writeLayerData
faceRealThickness faceRealThickness
); );
} }
Info<< "Writing volScalarField " << fld.name() Info<< indent << fld.name() << " : overall layer thickness"
<< " with overall layer thickness" << endl; << endl;
bool ok = fld.write(); bool ok = fld.write();
allOk = allOk & ok; allOk = allOk & ok;
} }
...@@ -2740,12 +2743,13 @@ bool Foam::autoLayerDriver::writeLayerData ...@@ -2740,12 +2743,13 @@ bool Foam::autoLayerDriver::writeLayerData
fld.boundaryField()[patchI] == pfld; fld.boundaryField()[patchI] == pfld;
} }
Info<< "Writing volScalarField " << fld.name() Info<< indent << fld.name()
<< " with overall layer thickness as fraction" << " : overall layer thickness (fraction"
<< " of desired thickness" << endl; << " of desired thickness)" << endl;
bool ok = fld.write(); bool ok = fld.write();
allOk = allOk & ok; allOk = allOk & ok;
} }
Info<< decrIndent<< endl;
} }
//if (meshRefinement::outputLevel() & meshRefinement::OUTPUTLAYERINFO) //if (meshRefinement::outputLevel() & meshRefinement::OUTPUTLAYERINFO)
......
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