ENH: Function objects - notify when writing results

This commit is contained in:
andy
2013-08-14 11:10:27 +01:00
parent 00800bbc1d
commit 98cc307aec
14 changed files with 47 additions and 26 deletions

View File

@ -198,10 +198,11 @@ void Foam::CourantNo::write()
CourantNo.correctBoundaryConditions();
CourantNo.write();
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << CourantNo.name() << nl
<< endl;
Info<< type() << " output:" << nl
<< " writing " << CourantNo.name() << " field" << nl << endl;
CourantNo.write();
}
}

View File

@ -136,7 +136,7 @@ void Foam::DESModelRegions::write()
if (log_)
{
Info<< type() << " output:" << nl;
Info<< type() << " " << name_ << " output:" << nl;
}
tmp<volScalarField> tresult;
@ -186,6 +186,7 @@ void Foam::DESModelRegions::write()
{
Info<< " LES = " << prc << " % (volume)" << nl
<< " RAS = " << 100.0 - prc << " % (volume)" << nl
<< " writing field " << result.name() << nl
<< endl;
}

View File

@ -157,10 +157,11 @@ void Foam::Lambda2::write()
Lambda2 = -eigenValues(SSplusWW)().component(vector::Y);
Lambda2.write();
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << Lambda2.name() << nl
<< endl;
Info<< type() << " output:" << nl
<< " writing " << Lambda2.name() << " field" << nl << endl;
Lambda2.write();
}
}

View File

@ -209,10 +209,11 @@ void Foam::Peclet::write()
*fvc::interpolate(nuEff)
);
Peclet.write();
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << Peclet.name() << nl
<< endl;
Info<< type() << " output:" << nl
<< " writing " << Peclet.name() << " field" << nl << endl;
Peclet.write();
}
}

View File

@ -150,10 +150,11 @@ void Foam::Q::write()
Q = 0.5*(sqr(tr(gradU)) - tr(((gradU) & (gradU))));
Q.write();
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << Q.name() << nl
<< endl;
Info<< type() << " output:" << nl
<< " writing " << Q.name() << " field" << nl << endl;
Q.write();
}
}

View File

@ -322,6 +322,10 @@ void Foam::pressureTools::write()
pResult == convertToCoeff(rhoScale(p)*p + pDyn(p) + pRef());
Info<< type() << " " << name_ << " output:" << nl
<< " writing field " << pResult.name() << nl
<< endl;
pResult.write();
}
}

View File

@ -234,7 +234,7 @@ void Foam::wallShearStress::write()
if (log_)
{
Info<< type() << " output:" << nl;
Info<< type() << " " << name_ << " output:" << nl;
}
@ -265,7 +265,8 @@ void Foam::wallShearStress::write()
if (log_)
{
Info<< endl;
Info<< " writing field " << wallShearStress.name() << nl
<< endl;
}
wallShearStress.write();

View File

@ -282,7 +282,7 @@ void Foam::yPlusLES::write()
if (log_)
{
Info<< type() << " output:" << nl;
Info<< type() << " " << name_ << " output:" << nl;
}
if (phi.dimensions() == dimMass/dimTime)
@ -296,7 +296,8 @@ void Foam::yPlusLES::write()
if (log_)
{
Info<< endl;
Info<< " writing field " << yPlusLES.name() << nl
<< endl;
}
yPlusLES.write();

View File

@ -267,7 +267,7 @@ void Foam::yPlusRAS::write()
if (log_)
{
Info<< type() << " output:" << nl;
Info<< type() << " " << name_ << " output:" << nl;
}
if (phi.dimensions() == dimMass/dimTime)
@ -281,7 +281,8 @@ void Foam::yPlusRAS::write()
if (log_)
{
Info<< endl;
Info<< " writing field " << yPlusRAS.name() << nl
<< endl;
}
yPlusRAS.write();