adding warning messages

This commit is contained in:
andy
2009-03-17 18:33:27 +00:00
parent 398849cd1d
commit e534882f5a
3 changed files with 38 additions and 0 deletions

View File

@ -39,6 +39,19 @@ void Foam::KinematicParcel<ParcelType>::updateCellQuantities
)
{
rhoc_ = td.rhoInterp().interpolate(this->position(), cellI);
if (rhoc_ < SMALL)
{
WarningIn
(
"void Foam::KinematicParcel<ParcelType>::updateCellQuantities"
"("
"TrackData&, "
"const scalar, "
"const label"
")"
) << "Density < " << SMALL << " in cell " << cellI << nl << endl;
}
Uc_ = td.UInterp().interpolate(this->position(), cellI);
muc_ = td.muInterp().interpolate(this->position(), cellI);

View File

@ -40,6 +40,18 @@ void Foam::ReactingParcel<ParcelType>::updateCellQuantities
ThermoParcel<ParcelType>::updateCellQuantities(td, dt, cellI);
pc_ = td.pInterp().interpolate(this->position(), cellI);
if (pc_ < SMALL)
{
WarningIn
(
"void Foam::ReactingParcel<ParcelType>::updateCellQuantities"
"("
"TrackData&, "
"const scalar, "
"const label"
")"
) << "Pressure < " << SMALL << " in cell " << cellI << nl << endl;
}
}

View File

@ -40,6 +40,19 @@ void Foam::ThermoParcel<ParcelType>::updateCellQuantities
KinematicParcel<ParcelType>::updateCellQuantities(td, dt, cellI);
Tc_ = td.TInterp().interpolate(this->position(), cellI);
if (Tc_ < SMALL)
{
WarningIn
(
"void Foam::ThermoParcel<ParcelType>::updateCellQuantities"
"("
"TrackData&, "
"const scalar, "
"const label"
")"
) << "Temperature < " << SMALL << " in cell " << cellI << nl << endl;
}
cpc_ = td.cpInterp().interpolate(this->position(), cellI);
}