mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMehs: not write non-manifold points
This commit is contained in:
@ -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
|
|||||||
|
|
||||||
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
|
|||||||
}
|
}
|
||||||
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
|
|||||||
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
|
|||||||
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user