new noInteraction pair potential

This commit is contained in:
graham
2008-10-08 17:24:30 +01:00
parent c8098a13d1
commit f9ddde87ea
2 changed files with 182 additions and 0 deletions

View File

@ -0,0 +1,85 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2008 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 "noInteraction.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace pairPotentials
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(noInteraction, 0);
addToRunTimeSelectionTable
(
pairPotential,
noInteraction,
dictionary
);
// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
noInteraction::noInteraction
(
const word& name,
const dictionary& pairPotentialProperties
)
:
pairPotential(name, pairPotentialProperties)
{
setLookupTables();
}
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
scalar noInteraction::unscaledEnergy(const scalar r) const
{
return 0.0;
}
bool noInteraction::read(const dictionary& pairPotentialProperties)
{
pairPotential::read(pairPotentialProperties);
return true;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace pairPotentials
} // End namespace Foam
// ************************************************************************* //

View File

@ -0,0 +1,97 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2008 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
Class
Foam::pairPotentials::noInteraction
Description
SourceFiles
noInteraction.C
\*---------------------------------------------------------------------------*/
#ifndef noInteraction_H
#define noInteraction_H
#include "pairPotential.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace pairPotentials
{
/*---------------------------------------------------------------------------*\
Class noInteraction Declaration
\*---------------------------------------------------------------------------*/
class noInteraction
:
public pairPotential
{
public:
//- Runtime type information
TypeName("noInteraction");
// Constructors
//- Construct from components
noInteraction
(
const word& name,
const dictionary& pairPotentialProperties
);
// Destructor
~noInteraction()
{}
// Member Functions
scalar unscaledEnergy(const scalar r) const;
//- Read transportProperties dictionary
bool read(const dictionary& pairPotentialProperties);
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace pairPotentials
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //