Hello Material Studio users,
I am trying to implement a serial simulation of Monte Carlo+MD, by combining the Sorption and Fotcite modules. please see my code below.
For \$i=0, the code works well and produces the MC and MC outcomes (including the MD trajectory). But then it stops over the highlighted line in the code, with the following error:
"Referenced document no longer exists. It was last associated with file 'C:\...\Documents\ros112.xsd' in Sorption.FixedPressure (function/property "Run") at -e line 16."
I suppose the problem is from how I copy the structure (.xsd file) from the study table(the outcome of the Sorption module (MC)) to be used as the MD calculations input. Any advice would be appreciated.
Thanks!
--------------------------------------------------
my \$doc1=\$Documents{"ros112 Low energy.std"}->Cell(0,0);
my \$Copy= \$doc1->SaveAs("step_\$i.xsd");
my \$doc = Documents->New("ros112.xsd");
\$doc->CopyFrom(\$Documents{"step_\$i.xsd"});