mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
adding warning messages
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user