Skip to content
Snippets Groups Projects
Commit e534882f authored by Andrew Heather's avatar Andrew Heather
Browse files

adding warning messages

parent 398849cd
No related merge requests found
......@@ -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);
......
......@@ -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;
}
}
......
......@@ -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);
}
......
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