Professional Documents
Culture Documents
perl
use strict;
use Getopt::Long;
use MaterialsScript qw(:all);
#give the atom a velocity
my $doc = $Documents{"export.xsd"};
my $fixatoms = $doc->DisplayRange->Sets("BOTTOMWALL")->Atoms;
$fixatoms->Fix("XYZ");
my $moveatoms = $doc->DisplayRange->Sets("TOPWALL")->Atoms;
foreach my $atom (@$moveatoms)
{
my $velocity = Point(X=>1, Y=>0, Z=>0);
$atom ->Translate($velocity);
}