BUG: manualInjection - set timeEnd so that injection interval is finite - mantis #1241
This commit is contained in:
parent
40e7df1d2a
commit
0d83c251db
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue