diff --git a/src/recurrence/Make/files b/src/recurrence/Make/files index c3bf25ed..cd69ddc6 100644 --- a/src/recurrence/Make/files +++ b/src/recurrence/Make/files @@ -9,6 +9,7 @@ recPath/recPath/recPath.C recPath/recPath/newRecPath.C recPath/simpleRandomPath/simpleRandomPath.C recPath/noPath/noPath.C +recPath/multiIntervalPath/multiIntervalPath.C recStatAnalysis/recStatAnalysis/recStatAnalysis.C recStatAnalysis/recStatAnalysis/newRecStatAnalysis.C recStatAnalysis/noRecStatAnalysis/noRecStatAnalysis.C diff --git a/src/recurrence/recPath/multiIntervalPath/multiIntervalPath.C b/src/recurrence/recPath/multiIntervalPath/multiIntervalPath.C new file mode 100644 index 00000000..210051b0 --- /dev/null +++ b/src/recurrence/recPath/multiIntervalPath/multiIntervalPath.C @@ -0,0 +1,236 @@ +/*---------------------------------------------------------------------------*\ + CFDEMcoupling academic - Open Source CFD-DEM coupling + + Contributing authors: + Thomas Lichtenegger + Copyright (C) 2015- Johannes Kepler University, Linz +------------------------------------------------------------------------------- +License + This file is part of CFDEMcoupling academic. + + CFDEMcoupling academic is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + CFDEMcoupling academic is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with CFDEMcoupling academic. If not, see . +\*---------------------------------------------------------------------------*/ + +#include "error.H" +#include "multiIntervalPath.H" +#include "Random.H" +#include "recModel.H" +#include "addToRunTimeSelectionTable.H" + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +defineTypeNameAndDebug(multiIntervalPath, 0); + +addToRunTimeSelectionTable +( + recPath, + multiIntervalPath, + dictionary +); + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + +// Construct from components +multiIntervalPath::multiIntervalPath +( + const dictionary& dict, + recBase& base +) +: + recPath(dict, base), + propsDict_(dict.subDict(typeName + "Props")), + meanIntervalSteps_(propsDict_.lookupOrDefault