Comments (7)
Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).
Tagging @rosecers , do you know how the rotation keyword is defined?
from garnett.
Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).
It appears that the rotation keyword refers to a rotation about the x, y, z view axis, where x=[1,0,0], y=[0,1,0], and z=[0,0,1] in euler angles with DEG unit.
from garnett.
Original comment by RoseCers (Bitbucket: RoseCers, ).
That's correct!
from garnett.
Original comment by RoseCers (Bitbucket: RoseCers, ).
The rotation key word indicates rotation about the x, y, and z axes, defined as the [100], [010], and [001], respectively.
from garnett.
Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).
Thank you for the confirmation @rosecers . I'm going to keep the issue open until this is actually implemented.
Since the glotzformats box is defined such that the first box vector must be parallel to [1,0,0], there is no way to actually rotate the whole system according to the specified rotation.
I'm currently working on an implementation where the rotation keyword is interpreted by the PosFileReader
and the associated rotation is stored as a quaternion as part of the frame data. This rotation is also written out again by the PosFileWriter
.
For this I copied and translated injavis code from java to python for the translation between the angles and quaternion and back. @rosecers, does the injavis license allow that?
from garnett.
Original comment by RoseCers (Bitbucket: RoseCers, ).
I'm not entirely sure, that's a question for @michaelengel.
from garnett.
This issue was addressed on 4b6ebe0.
from garnett.
Related Issues (20)
- Refactor GSD into a hard/soft dependency HOT 7
- Host documentation on ReadTheDocs
- Enable installation through pip and conda HOT 2
- Add GitHub CODEOWNERS / PR, Issue templates
- Trajectory attribute for all box objects HOT 2
- Test for trajectory with varying number of particles per frame
- Old Links HOT 6
- Box regularization yields wrong orientations HOT 2
- __main__ entry point for file conversion HOT 3
- Enable/read user defined logged quantities from GSD files. HOT 4
- Add option to explicitly set number of dimensions on read/write (specific use case: DCD) HOT 2
- Use types and typeid properties consistent with HOOMD HOT 4
- Refactor and test hoomd snapshot functions in the Frame and Trajectory class
- Make FrameData private and merge _RawFrameData and FrameData
- Update GSD reader/writer for GSD 2.0 HOT 1
- Add badges for PyPI / conda-forge, etc.
- Modernize DCD Reader's use of NumPy
- Update usage of `read_frame` when reading hoomd trajectories
- CI deploy key not enabled for this repository
- Support GSD 3.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garnett.