ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/utilities/waterBoxer
(Generate patch)

Comparing trunk/src/applications/utilities/waterBoxer (file contents):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1416 by gezelter, Thu Mar 25 19:38:06 2010 UTC

# Line 18 | Line 18 | $doRandomize = 0;
18   $nMol = 500;
19   $density = 1.0;
20   $doRandomize = 0;
21 < $cutoff = 12;
22 < $alpha = 0.2125;
23 < $alphaInt = 0.5125;
24 < $alphaSlope = 0.025;
21 > $cutoff = 9;
22 > $alpha = 0.18;
23   $invalidWater = 0;
24   $waterCase = -1;
25   $nothingSelected = 1;
# Line 319 | Line 317 | sub writeOutFile {
317    # write out the header
318    print OUTFILE "<OpenMD version=1>\n";
319    findCutoff();
322  findAlpha();
320    printMetaData();
321    printFrameData();
322    print OUTFILE "    <StuntDoubles>\n";
# Line 376 | Line 373 | cutoffRadius = $cutoff;
373   electrostaticSummationMethod = \"shifted_force\";
374   electrostaticScreeningMethod = \"damped\";
375   cutoffRadius = $cutoff;
376 + switchingRadius = $cutoff;
377 + dampingAlpha = $alpha;
378  
379   targetTemp = 300;
380   targetPressure = 1.0;
# Line 408 | Line 407 | sub findCutoff {
407    } else {
408      $cutoff = int($boxLength2);
409    }
411 }
412
413 sub findAlpha {
414  $alpha = $alphaInt - $cutoff*$alphaSlope;
410   }
411  
412   sub printFrameData {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines