From 73374a5f8e94e31a9fcfde5afd2d732a48c46c3b Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Tue, 26 May 2009 11:22:57 +0100 Subject: [PATCH] updates to enable post-processing sub-models --- src/lagrangian/coalCombustion/Make/files | 3 + .../submodels/makeCoalParcelIOList.C | 39 +++++++++++++ .../makeCoalParcelPostProcessingModels.C | 55 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelIOList.C create mode 100644 src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelPostProcessingModels.C diff --git a/src/lagrangian/coalCombustion/Make/files b/src/lagrangian/coalCombustion/Make/files index c8fb192aea8..21bb5911821 100755 --- a/src/lagrangian/coalCombustion/Make/files +++ b/src/lagrangian/coalCombustion/Make/files @@ -11,6 +11,7 @@ coalParcel/submodels/makeCoalParcelDispersionModels.C coalParcel/submodels/makeCoalParcelInjectionModels.C coalParcel/submodels/makeCoalParcelHeatTransferModels.C coalParcel/submodels/makeCoalParcelPhaseChangeModels.C +coalParcel/submodels/makeCoalParcelPostProcessingModels.C coalParcel/submodels/makeCoalParcelSurfaceReactionModels.C coalParcel/submodels/makeCoalParcelWallInteractionModels.C @@ -18,5 +19,7 @@ submodels/surfaceReactionModel/COxidationDiffusionLimitedRate/COxidationDiffusio submodels/surfaceReactionModel/COxidationKineticDiffusionLimitedRate/COxidationKineticDiffusionLimitedRate.C submodels/surfaceReactionModel/COxidationMurphyShaddix/COxidationMurphyShaddix.C +/* IOLists */ +coalParcel/submodels/makeCoalParcelIOList.C LIB = $(FOAM_USER_LIBBIN)/libcoalCombustion diff --git a/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelIOList.C b/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelIOList.C new file mode 100644 index 00000000000..1023c5e1668 --- /dev/null +++ b/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelIOList.C @@ -0,0 +1,39 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM 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 2 of the License, or (at your + option) any later version. + + OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +\*---------------------------------------------------------------------------*/ + +#include "makeParcelIOList.H" + +#include "coalParcel.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + makeParcelIOList(coalParcel); +}; + + +// ************************************************************************* // diff --git a/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelPostProcessingModels.C b/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelPostProcessingModels.C new file mode 100644 index 00000000000..7a8594eedad --- /dev/null +++ b/src/lagrangian/coalCombustion/coalParcel/submodels/makeCoalParcelPostProcessingModels.C @@ -0,0 +1,55 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM 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 2 of the License, or (at your + option) any later version. + + OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +\*---------------------------------------------------------------------------*/ + +#include "coalParcel.H" +#include "KinematicCloud.H" + +#include "NoPostProcessing.H" +#include "StandardPostProcessing.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + makePostProcessingModel(KinematicCloud<coalParcel>); + + // Add instances of post-processing model to the table + makePostProcessingModelType + ( + NoPostProcessing, + KinematicCloud, + coalParcel + ); + makePostProcessingModelType + ( + StandardPostProcessing, + KinematicCloud, + coalParcel + ); +}; + + +// ************************************************************************* // -- GitLab