|
|
Run Forcite/Forcite Plus Batch Jobs:
First, prepare the .xsd file that contains the structure of the system you want to simulate and .pl file that contains MaterialsScript to execute Forcite:
The .pl file can be created by the following way:
Choose Files -> New… from toolbar and “Perl Script” and click OK.
New script file will be created. Rename the file to such as “TestForcite.pl”
In testForcite.pl file, add the following three lines after the “use MaterialsScript qw(:all);”
my %Args;
GetOptions(\%Args, "Structure=s");
my $doc = $Documents{"your_file.xsd"};
(Here “your_file.xsd” must be changed to your xsd filename)
Open the xsd file.
Open Forcite calculation dialogue and setup configuration as you do usually.
Click on the small down-arrow part that is on the right next to the Run button, and click “Copy Script”.
Open the TestForcite.pl file and right-click on the last blank line and choose “Paste”.
You will have something like this:
#!perl
use strict;
use Getopt::Long;
use MaterialsScript qw(:all);
my %Args;
GetOptions(\%Args, "Structure=s");
my $doc = $Documents{"your_file.xsd"};
my $results = Modules->Forcite->Dynamics->Run($doc, Settings(
CurrentForcefield => "COMPASSII",
ChargeAssignment => "Forcefield assigned",
Ensemble3D => "NVT",
NumberOfSteps => 50000,
TrajectoryFrequency => 10000));
my $outTrajectory = $results->Trajectory;
This example reflects the Forcite configuration and setting, it may differ from your script.
Once xsd and perl script files are prepared, which should be in the folder of the “New Projects” you define in Tools -> Options -> Locations. Transfer them from this location to the HPC server using scp or FileZilla on your PC.
Next, run the following commands on any HPC login server:
> cd /hpctmp2/
> qsub perl_script |
评分 Rate
-
查看全部评分 View all ratings
|