2010-05-12 13:27:55 +00:00
|
|
|
/*--------------------------------*- C++ -*----------------------------------*\
|
|
|
|
| ========= | |
|
2013-12-11 16:09:41 +00:00
|
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
2013-12-11 23:41:18 +00:00
|
|
|
| \\ / O peration | Version: 3.0 |
|
2013-12-11 16:09:41 +00:00
|
|
|
| \\ / A nd | Web: http://www.extend-project.de |
|
2010-05-12 13:27:55 +00:00
|
|
|
| \\/ M anipulation | |
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
FoamFile
|
|
|
|
{
|
|
|
|
version 2.0;
|
|
|
|
format ascii;
|
|
|
|
class dictionary;
|
|
|
|
object potentials;
|
|
|
|
}
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
|
|
|
|
// Subdictionaries specifying types of intermolecular potential.
|
|
|
|
// Sub-sub dictionaries specify the potentials themselves.
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Removal order
|
|
|
|
|
|
|
|
// This is the order in which to remove overlapping pairs if more than one
|
|
|
|
// type of molecule is present. The most valuable molecule type is at the
|
|
|
|
// right hand end, the molecule that will be removed 1st is 1st on the list.
|
|
|
|
// Not all types need to be present, a molecule that is not present is
|
|
|
|
// automatically less valuable than any on the list. For molecules of the
|
|
|
|
// same type there is no control over which is removed.
|
|
|
|
|
2010-09-23 13:04:10 +00:00
|
|
|
removalOrder ( water );
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Potential Energy Limit
|
|
|
|
|
|
|
|
// Maximum permissible pair energy allowed at startup. Used to remove
|
|
|
|
// overlapping molecules created during preprocessing.
|
|
|
|
|
|
|
|
potentialEnergyLimit 1e-18;
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Pair potentials
|
|
|
|
|
2010-09-23 13:04:10 +00:00
|
|
|
// If a pair are not present here it is assumed that they do not interact.
|
|
|
|
|
|
|
|
// Electrostatic pair interactions are not listed here - they are handled
|
|
|
|
// separately.
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
// If there are r different type of molecules, and a pair force is required
|
|
|
|
// between all combinations, then there are C = r(r+1)/2 combinations,
|
|
|
|
// i.e. for r = {1,2,3,4}, C = {1,3,6,10} (sum of triangular numbers).
|
|
|
|
|
|
|
|
// Pair potentials are specified by the combinaition of their ids,
|
|
|
|
// for MOLA and MOLB, "MOLA-MOLB" OR "MOLB-MOLA" is acceptable
|
2010-09-23 13:04:10 +00:00
|
|
|
// (strictly OR, both or neither will throw an error)
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
pair
|
|
|
|
{
|
2010-09-23 13:04:10 +00:00
|
|
|
O-O
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
2010-09-23 13:04:10 +00:00
|
|
|
pairPotential lennardJones;
|
|
|
|
rCut 1.0e-9;
|
|
|
|
rMin 0.1e-9;
|
|
|
|
dr 1e-13;
|
|
|
|
lennardJonesCoeffs
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
2010-09-23 13:04:10 +00:00
|
|
|
sigma 3.154e-10;
|
|
|
|
epsilon 1.07690722e-21;
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
energyScalingFunction noScaling;
|
|
|
|
writeTables yes;
|
|
|
|
}
|
2010-09-23 13:04:10 +00:00
|
|
|
|
|
|
|
electrostatic
|
|
|
|
{
|
|
|
|
pairPotential dampedCoulomb;
|
|
|
|
rCut 1e-9;
|
|
|
|
rMin 2e-11;
|
|
|
|
dr 2e-12;
|
|
|
|
dampedCoulombCoeffs
|
|
|
|
{
|
|
|
|
alpha 2e9;
|
|
|
|
}
|
|
|
|
energyScalingFunction shiftedForce;
|
|
|
|
writeTables yes;
|
|
|
|
}
|
2010-05-12 13:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// Tethering Potentials
|
|
|
|
|
|
|
|
tether
|
|
|
|
{
|
2010-09-23 13:04:10 +00:00
|
|
|
O
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
|
|
|
tetherPotential restrainedHarmonicSpring;
|
|
|
|
restrainedHarmonicSpringCoeffs
|
|
|
|
{
|
2010-09-23 13:04:10 +00:00
|
|
|
springConstant 0.277;
|
2010-05-12 13:27:55 +00:00
|
|
|
rR 1.2e-9;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// External Forces
|
|
|
|
|
|
|
|
// Bulk external forces (namely gravity) will be specified as forces rather
|
|
|
|
// than potentials to allow their direction to be controlled.
|
|
|
|
|
|
|
|
external
|
|
|
|
{
|
|
|
|
gravity (0 0 0);
|
|
|
|
}
|
2010-09-23 13:04:10 +00:00
|
|
|
|
|
|
|
// ************************************************************************* //
|