opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: "Ting Yau" <2100011354 AT alumni.pku.edu.cn>
- To: opal AT lists.psi.ch
- Subject: [Opal] The Code of StatWriter.cpp does not match with its description
- Date: Sun, 14 Jun 2026 18:30:29 +0200
Dear OPAL developers,
My name is youteman, and I work for the CIAE.
The Code mentioned in the title is
https://github.com/OPALX-project/OPAL/blob/078ff1e1357553f76ff8ed00439ea44a2f9d28d3/src/Structure/StatWriter.cpp.
according to the description in StatWriter.h:
* \param FDext The external E and B field for the head, reference and
tail particles. The vector array
* has the following layout:
* - FDext[0] = B at head particle location (in x, y and z).
* - FDext[1] = E at head particle location (in x, y and z).
* - FDext[2] = B at reference particle location (in x, y and z).
* - FDext[3] = E at reference particle location (in x, y and z).
* - FDext[4] = B at tail particle location (in x, y, and z).
* - FDext[5] = E at tail particle location (in x, y, and z).
*/
But The StatWriter.cpp write FDext[0/1](B/E at head particle location) as B/E
at ref particle position:
// Write head/reference particle/tail field information.
columns_m.addColumnValue("Bx_ref", FDext[0](0)); // 34 B-ref
x
columns_m.addColumnValue("By_ref", FDext[0](1)); // 35 B-ref
y
columns_m.addColumnValue("Bz_ref", FDext[0](2)); // 36 B-ref
z
columns_m.addColumnValue("Ex_ref", FDext[1](0)); // 37 E-ref
x
columns_m.addColumnValue("Ey_ref", FDext[1](1)); // 38 E-ref
y
columns_m.addColumnValue("Ez_ref", FDext[1](2)); // 39 E-ref
z
Best regards,
Youteman
- [Opal] The Code of StatWriter.cpp does not match with its description, Ting Yau, 06/14/2026
Archive powered by MHonArc 2.6.24.