Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BCTC Supplements
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AK Krewald
BCTC Supplements
Commits
d5a79b0b
Commit
d5a79b0b
authored
4 months ago
by
moritz.buchhorn
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes
parent
c58bdd43
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
05-geometrien/support.py
+19
-0
19 additions, 0 deletions
05-geometrien/support.py
with
19 additions
and
0 deletions
05-geometrien/support.py
+
19
−
0
View file @
d5a79b0b
...
...
@@ -83,6 +83,17 @@ def make_fibonacci_sphere(center: np.ndarray, radius: float = 0.1, resolution: i
return
x
,
y
,
z
class
XYZ
:
"""
A class for representing a molecular structure in cartesian coordinates.
The molecule is represented by a list of atoms and corresponding coordinates.
Attributes:
xyz (ndarray): A 2D numpy array of shape (num_atoms, 3) containing the
coordinates of the atoms in the molecule.
elements (list): A list of strings representing the elements of the atoms in
the molecule.
"""
sphere_mode
=
"
ball
"
def
__init__
(
self
,
coords
:
list
[
dict
[
str
,
str
|
float
]]):
...
...
@@ -271,6 +282,13 @@ class XYZ:
return
fig
class
Trajectory
:
"""
A class to represent a molecular trajectory in terms of XYZ objects.
Attributes:
coordinates (list[XYZ]): A list of XYZ objects representing the atomic coordinates for each frame in the trajectory.
vibration_vectors (list[list[float]] or None): A list of vibration vectors associated with the trajectory, if any.
"""
def
__init__
(
self
,
coordinates
:
list
[
XYZ
]):
self
.
coordinates
=
coordinates
self
.
vibration_vectors
=
None
...
...
@@ -310,6 +328,7 @@ class Trajectory:
Args:
output_file (str): The path to the ORCA output file.
mode (int): The mode number.
Returns:
Trajectory: A Trajectory object.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment