From 12e0fc01c0c233c33b59fc69d558bf797d2d6ab1 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 23 Jun 2008 17:42:05 +0100 Subject: [PATCH] removed molecular dynamics functionality (being updated) --- .../preProcessing/molConfig/Make/files | 8 - .../molConfig/correctVelocities.H | 21 -- .../preProcessing/molConfig/createMolecules.C | 253 ------------------ .../preProcessing/molConfig/createPositions.H | 26 -- .../molConfig/createVelocities.H | 13 - .../preProcessing/molConfig/genMolConfig.C | 129 --------- .../molConfig/latticeStructures/BCC.H | 179 ------------- .../molConfig/latticeStructures/FCC.H | 217 --------------- .../molConfig/latticeStructures/SC.H | 127 --------- .../preProcessing/molConfig/molConfig.C | 50 ---- .../preProcessing/molConfig/molConfig.H | 147 ---------- .../preProcessing/molConfig/molConfigI.H | 98 ------- .../preProcessing/molConfig/origin.H | 49 ---- .../preProcessing/molConfig/readZoneSubDict.H | 93 ------- .../preProcessing/molConfig/startingPoint.H | 97 ------- .../velocityDistributions/maxwellian.H | 26 -- .../molConfig/velocityDistributions/uniform.H | 27 -- .../constant/polyMesh/blockMeshDict | 73 ----- .../periodicCube/system/fvSchemes | 67 ----- .../periodicCube/system/fvSolution | 40 --- .../periodicCube/system/mdEquilibrationDict | 27 -- .../periodicCube/system/molConfigDict | 43 --- 22 files changed, 1810 deletions(-) delete mode 100755 applications/utilities/preProcessing/molConfig/Make/files delete mode 100644 applications/utilities/preProcessing/molConfig/correctVelocities.H delete mode 100644 applications/utilities/preProcessing/molConfig/createMolecules.C delete mode 100644 applications/utilities/preProcessing/molConfig/createPositions.H delete mode 100644 applications/utilities/preProcessing/molConfig/createVelocities.H delete mode 100644 applications/utilities/preProcessing/molConfig/genMolConfig.C delete mode 100644 applications/utilities/preProcessing/molConfig/latticeStructures/BCC.H delete mode 100644 applications/utilities/preProcessing/molConfig/latticeStructures/FCC.H delete mode 100644 applications/utilities/preProcessing/molConfig/latticeStructures/SC.H delete mode 100644 applications/utilities/preProcessing/molConfig/molConfig.C delete mode 100644 applications/utilities/preProcessing/molConfig/molConfig.H delete mode 100644 applications/utilities/preProcessing/molConfig/molConfigI.H delete mode 100644 applications/utilities/preProcessing/molConfig/origin.H delete mode 100644 applications/utilities/preProcessing/molConfig/readZoneSubDict.H delete mode 100644 applications/utilities/preProcessing/molConfig/startingPoint.H delete mode 100644 applications/utilities/preProcessing/molConfig/velocityDistributions/maxwellian.H delete mode 100644 applications/utilities/preProcessing/molConfig/velocityDistributions/uniform.H delete mode 100644 tutorials/mdEquilibrationFoam/periodicCube/constant/polyMesh/blockMeshDict delete mode 100644 tutorials/mdEquilibrationFoam/periodicCube/system/fvSchemes delete mode 100644 tutorials/mdEquilibrationFoam/periodicCube/system/fvSolution delete mode 100644 tutorials/mdEquilibrationFoam/periodicCube/system/mdEquilibrationDict delete mode 100644 tutorials/mdEquilibrationFoam/periodicCube/system/molConfigDict diff --git a/applications/utilities/preProcessing/molConfig/Make/files b/applications/utilities/preProcessing/molConfig/Make/files deleted file mode 100755 index 6501e68426..0000000000 --- a/applications/utilities/preProcessing/molConfig/Make/files +++ /dev/null @@ -1,8 +0,0 @@ -latticeStructures = latticeStructures -velocityDistributions = velocityDistributions - -createMolecules.C -molConfig.C -genMolConfig.C - -EXE = $(FOAM_APPBIN)/molConfig diff --git a/applications/utilities/preProcessing/molConfig/correctVelocities.H b/applications/utilities/preProcessing/molConfig/correctVelocities.H deleted file mode 100644 index 0c69f15c7c..0000000000 --- a/applications/utilities/preProcessing/molConfig/correctVelocities.H +++ /dev/null @@ -1,21 +0,0 @@ -for (molN = totalMols; molN < totalMols + totalZoneMols; molN++) -{ - - // Remove bulk momentum introduced by random numbers and add - // desired bulk velocity - - // For systems with molecules of significantly differing masses, this may - // need to be an iterative process or employ a better algorithm for - // removing an appropriate share of the excess momentum from each molecule. - - initialVelocities(molN) += bulkVelocity - momentumSum/totalZoneMols/mass; -} - -// momentumSum = vector::zero; -// -// for (molN = totalMols; molN < totalMols + totalZoneMols; molN++) -// { -// momentumSum += mass*initialVelocities(molN); -// } -// -// Info << "Check momentum adjustment: " << momentumSum << endl; diff --git a/applications/utilities/preProcessing/molConfig/createMolecules.C b/applications/utilities/preProcessing/molConfig/createMolecules.C deleted file mode 100644 index 20318f06d6..0000000000 --- a/applications/utilities/preProcessing/molConfig/createMolecules.C +++ /dev/null @@ -1,253 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 1991-2005 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 "molConfig.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void Foam::molConfig::createMolecules() -{ - Info<< nl << "Creating molecules from zone specifications\n" << endl; - - DynamicList initialPositions(0); - - DynamicList