[Camino-users] timestep of simulation

stefania oliviero stefania.oliviero at hotmail.it
Tue Jul 18 03:18:41 PDT 2017


Dear all

I need to know what is the timestep of simulation, in order to calculate the mean velocity of a particle ( knowing diffusion coefficient). In Simulation/SimulationParams.java I found the parameter dt ( /** the increment of time corresponding to a timestep */ ) and the method getDt() to get It.


/***** code of SimulationParams.java */


        /** set the echo time and dt increment properly */
        double TE=((SimulableScheme)imPars).getDuration();

        //double halfP90= imPars.getHalfP90(0);

        //this.dt=(halfP90+TE)/((double)tmax);

        this.dt=TE/((double)tmax);
....

/*************************************************************************/


I used this method in tool/CL_Initializer.java

 private static double dt=simParams.getDt();


and when I executed a datasinth I obtained this error:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at apps.SyntheticData.initOptions(SyntheticData.java:46)
    at apps.Executable.<init>(Executable.java:24)
    at apps.SyntheticData.<init>(SyntheticData.java:34)
    at apps.EntryPoint.getExecutable(EntryPoint.java:222)
    at apps.EntryPoint.main(EntryPoint.java:282)
Caused by: java.lang.NullPointerException
    at tools.CL_Initializer.<clinit>(CL_Initializer.java:176)
    ... 5 more

I found that method getDuration() is not declared in interface SimulableScheme.. Is this the problem?  What should be the code?


Thank you

Cheers


Stefania Oliviero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.nitrc.org/pipermail/camino-users/attachments/20170718/7cad1801/attachment.html>


More information about the Camino-users mailing list