mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: checkMesh: do not create wallDist unless in fvSchemes. See #71
This commit is contained in:
@ -501,9 +501,16 @@ void Foam::writeFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (selectedFields.found("wallDistance"))
|
if (selectedFields.found("wallDistance"))
|
||||||
|
{
|
||||||
|
// See if wallDist.method entry in fvSchemes before calling factory
|
||||||
|
// method of wallDist. Have 'failing' version of wallDist::New instead?
|
||||||
|
const dictionary& schemesDict =
|
||||||
|
static_cast<const fvSchemes&>(mesh).schemesDict();
|
||||||
|
if (schemesDict.found("wallDist"))
|
||||||
|
{
|
||||||
|
if (schemesDict.subDict("wallDist").found("method"))
|
||||||
{
|
{
|
||||||
// Wall distance
|
// Wall distance
|
||||||
//const volScalarField& y = wallDist::New(mesh).y();
|
|
||||||
volScalarField y("wallDistance", wallDist::New(mesh).y());
|
volScalarField y("wallDistance", wallDist::New(mesh).y());
|
||||||
Info<< " Writing wall distance to " << y.name() << endl;
|
Info<< " Writing wall distance to " << y.name() << endl;
|
||||||
y.write();
|
y.write();
|
||||||
@ -513,6 +520,8 @@ void Foam::writeFields
|
|||||||
//Info<< " Writing wall normal to " << n.name() << endl;
|
//Info<< " Writing wall normal to " << n.name() << endl;
|
||||||
//n.write();
|
//n.write();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user