Perl script of geometry optimization+dynamic simulation

Hello,

I have a question about my Perl script and be thankful if help me. In my script, my first structure (named GPE1), should be geometry optimized and resulted .xsd structure finaly be inserted in a dynamc run.My problem as shown below with question marks, is how i could connect this two steps. i do not know how the geometry optimized result can insert in dynamic run?

my \\\$docName = "GPE1";

my \\\$doc = \\\$Documents{"\\\$docName.xsd"};

my \\\$Results1 = \\\$module->GeometryOptimization->Run(\\\$doc, ([     OptimizationAlgorithm => "Conjugate gradient",

                                                                                                        MaxIterations=> 10000,       ,

        

                                                                                                          ]));

   my \\\$opt = ???????;

   \\\$Results = \\\$module->Dynamics->Run(\\\$opt, ([          InitialVelocities => "Current",

                                                                                     NumberOfSteps => \\\$numberSteps,

                                                                                     Temperature => \\\$temperature,

                                                                                     Thermostat => "Andersen",

                                                                                     TrajectoryFrequency => \\\$trajFrequency,

        

                                                                                                         ]));

    
        
      
  
  

Answers 3
BX
BX 2013-06-18

my $opt = $Results1->Structure;

HP
HP 2013-06-21

Hi xujc1983

thank you so much for your help.

HP
HP 2013-06-21

Hi everyone,

I have another problem about above script.My simulation total process in summary is : Insertion a change to the system an then geometry optimization and then dynamic run,this steps repeat for about 80 times. It means in 80 steps I insert a change in the system and then geomrty optimization and dynamic run. But this process continues only for 23 steps and then it is finished by the mesege of error in geometry optimization of Forcite. I am wondering why geometry optimizaton can be done for 23 steps and it is imposible to continue??would you please guide me to solve my problem.

Thanks