Page 1 of 1

Setting Expand_Hamiltonian to 1 of a CSBEND

Posted: 29 Sep 2019, 03:05
by duanz
Hi Michael,

It appears that setting expand_hamiltonian to 1 of a CSBEND produces incorrect result during tracking, for the latest 2019.2.1 version. In the attached example, we compared the results of tracking a particle through a CSBEND w/ expand_hamiltonian set to 1 and 0 (default value), a nontrivial difference in the x dimension is observed.

Best,

Zhe

Re: Setting Expand_Hamiltonian to 1 of a CSBEND

Posted: 01 Oct 2019, 22:24
by michael_borland
Zhe,

You are correct, this is a bug. I used a very simple-minded (inaccurate) integration scheme in this case. I hope to have a better scheme implemented in the next release.

Thanks for reporting the problem.

--Michael

Re: Setting Expand_Hamiltonian to 1 of a CSBEND

Posted: 07 Oct 2019, 13:56
by michael_borland
Zhe,

This bug was fixed in the 2019.3.0 release (just now available).

--Michael

Re: Setting Expand_Hamiltonian to 1 of a CSBEND

Posted: 08 Oct 2019, 10:38
by duanz
Hi Michael,

I just downloaded the latest version of elegant, and now the bug is gone. Thanks for your kind help!

Best,

Zhe