BUG: manualInjection - set timeEnd so that injection interval is finite - mantis #1241

This commit is contained in:
andy 2014-05-12 16:16:59 +01:00
parent 40e7df1d2a
commit 0d83c251db

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -154,8 +154,9 @@ void Foam::ManualInjection<CloudType>::updateMesh()
template<class CloudType>
Foam::scalar Foam::ManualInjection<CloudType>::timeEnd() const
{
// Not used
return this->SOI_;
// Injection is instantaneous - but allow for a finite interval to
// avoid numerical issues when interval is zero
return ROOTVSMALL;
}