Plotting end to end distribution vs. time from .xtd

Hi All,

I need help in plotting my MD simulation with the following characteristics:

* NVT dynamics run with PBC in 3D

* Contains an infinite surface and adsorbent molecules

* Trajectory in .xtd format

* Used Forcite for calculation

Any help will be greatly appreciated. Thank you.

Amardesh

Answers 2
JD
JD 2011-04-15

Dear Amardesh,

Here is a similar post:

How to calculate radius of gyration (Rg) vs time ?

In your case you can just define distance measures on all the molecules you want to include and then run something like the following example:

my $doc = $Documents{"Polynylon6.xtd"};

my $Rend_mean = 0; my $count = 0;

for (my $i=1; $i<=$doc->Trajectory->NumFrames; $i++)

{

    $doc->Trajectory->CurrentFrame = $i;

    foreach my $obj (@{$doc->Distances})

    {

        $Rend_mean += $obj->Distance;

        $count++;

    }

}

$Rend_mean /= $count;

printf "Rend_mean = %f\n", $Rend_mean;

Best,

/Jason

HP
HP 2011-05-24

Hi Jason,

Thanks a lot for your kind answer. It helps me a lot. I am sorry to post this reply for you.

Cheers,

A.N