Following the example of RotatedBox (XML Guide page 61-62), within the section initials
, after rotateaxis
the command matrixreset
throws an error *** Exception (JXml::ErrReadElement) Text: Error reading xml - Element 'matrixreset' is invalid
. This is unlike the command rotate
I then face this problem. Rotateaxis
is much better than rotate
because the particles are aligned with the object boundary rather than with the lattice axes. However, I do have a rotated object with eccentricity. Under the section floatings
I need to give the coordinates of this centre of mass in some reference system.
comes before floatings
, I have rotated the reference system and apparently cannot undo it, as per above. So I think I should input the centre of mass in the modified reference system.
If in the code I put floatings
in the xml file, I would give the object's centre of mass in the lattice coordinate system, or whichever holds at that time. This is before the rotation I intend to apply.
What happens actually under the hood, and what is the correct way to set the eccentricity of a rotated object drawn with rotateaxis
This is an derivative of a previous post on matrixreset
at NB https://dual.sphysics.org/vanilla/discussion/1115/matrixreset-rotate