From a20caaa2affd3fa8bd0aad15e01c6605dc29c9f9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 22 Jul 2011 10:34:34 +0100 Subject: [PATCH 1/2] ENH:molecule: reverted to old molecule. Removed MoleculeCloud, controllers, monoatomic, polyatomic molecules --- .../Templates/MoleculeCloud/MoleculeCloud.C | 1265 ----------------- .../Templates/MoleculeCloud/MoleculeCloud.H | 252 ---- .../Templates/MoleculeCloud/MoleculeCloudI.H | 416 ------ .../baseClasses/moleculeCloud/moleculeCloud.C | 48 - .../baseClasses/moleculeCloud/moleculeCloud.H | 83 -- .../derived/monoatomicCloud/monoatomicCloud.H | 52 - .../derived/polyatomicCloud/polyatomicCloud.H | 52 - .../basic/controllers/controllers.C | 573 -------- .../basic/controllers/controllers.H | 163 --- .../basic/controllers/controllersI.H | 64 - .../basic/fluxController/fluxController.C | 524 ------- .../basic/fluxController/fluxController.H | 272 ---- .../basic/stateController/stateController.C | 490 ------- .../basic/stateController/stateController.H | 270 ---- .../molecules/constPropSite/constPropSite.C | 114 -- .../molecules/constPropSite/constPropSite.H | 185 --- .../molecules/constPropSite/constPropSiteI.H | 139 -- .../molecules/monoatomic/monoatomic.C | 199 --- .../molecules/monoatomic/monoatomic.H | 418 ------ .../molecules/monoatomic/monoatomicI.H | 328 ----- .../molecules/monoatomic/monoatomicIO.C | 305 ---- .../molecules/polyatomic/polyatomic.C | 320 ----- .../molecules/polyatomic/polyatomic.H | 483 ------- .../molecules/polyatomic/polyatomicI.H | 653 --------- .../molecules/polyatomic/polyatomicIO.C | 414 ------ 25 files changed, 8082 deletions(-) delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloud.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloud.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloudI.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/baseClasses/moleculeCloud/moleculeCloud.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/baseClasses/moleculeCloud/moleculeCloud.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/derived/monoatomicCloud/monoatomicCloud.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/clouds/derived/polyatomicCloud/polyatomicCloud.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/controllers/controllers.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/controllers/controllers.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/controllers/controllersI.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/fluxController/fluxController.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/fluxController/fluxController.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/stateController/stateController.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/controllers/basic/stateController/stateController.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/constPropSite/constPropSite.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/constPropSite/constPropSite.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/constPropSite/constPropSiteI.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/monoatomic/monoatomic.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/monoatomic/monoatomic.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/monoatomic/monoatomicI.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/monoatomic/monoatomicIO.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/polyatomic/polyatomic.C delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/polyatomic/polyatomic.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/polyatomic/polyatomicI.H delete mode 100644 src/lagrangian/molecularDynamics/molecule/molecules/polyatomic/polyatomicIO.C diff --git a/src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloud.C b/src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloud.C deleted file mode 100644 index c6d54036f7..0000000000 --- a/src/lagrangian/molecularDynamics/molecule/clouds/Templates/MoleculeCloud/MoleculeCloud.C +++ /dev/null @@ -1,1265 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2008-2011 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 3 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, see . - -\*----------------------------------------------------------------------------*/ - -#include "MoleculeCloud.H" -#include "fvMesh.H" -#include "mathematicalConstants.H" - -using namespace Foam::constant::mathematical; - - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -template -void Foam::MoleculeCloud::buildConstProps() -{ - const List& idList(pot_.idList()); - - constPropList_.setSize(idList.size()); - - const List& siteIdList(pot_.siteIdList()); - - IOdictionary molPropertiesDict - ( - IOobject - ( - this->name() + "Properties", - mesh_.time().constant(), - mesh_, - IOobject::MUST_READ_IF_MODIFIED, - IOobject::NO_WRITE, - false - ) - ); - - Info<< nl << "Reading " << molPropertiesDict.name() << endl; - - forAll(idList, i) - { - const word& id = idList[i]; - - const dictionary& molDict(molPropertiesDict.subDict(id)); - - List siteIdNames = molDict.lookup("siteIds"); - - List