Skip to content

Commit

Permalink
changed acceleration_collection and alpha_collection to be more consi…
Browse files Browse the repository at this point in the history
…stent with velocity_collection and omega_collection
  • Loading branch information
Ali-7800 committed Apr 24, 2024
1 parent 665f55a commit 71e19c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions elastica/rigidbody/cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def __init__(self, start, direction, normal, base_length, base_radius, density):

self.velocity_collection = np.zeros((MaxDimension.value(), 1))
self.omega_collection = np.zeros((MaxDimension.value(), 1))
self.acceleration_collection = 0.0 * self.velocity_collection
self.alpha_collection = 0.0 * self.omega_collection
self.acceleration_collection = np.zeros((MaxDimension.value(), 1))
self.alpha_collection = np.zeros((MaxDimension.value(), 1))

self.director_collection = np.zeros(
(MaxDimension.value(), MaxDimension.value(), 1)
Expand Down
4 changes: 2 additions & 2 deletions elastica/rigidbody/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def __init__(self, center, base_radius, density):

self.velocity_collection = np.zeros((MaxDimension.value(), 1))
self.omega_collection = np.zeros((MaxDimension.value(), 1))
self.acceleration_collection = 0.0 * self.velocity_collection
self.alpha_collection = 0.0 * self.omega_collection
self.acceleration_collection = np.zeros((MaxDimension.value(), 1))
self.alpha_collection = np.zeros((MaxDimension.value(), 1))

self.director_collection = np.zeros(
(MaxDimension.value(), MaxDimension.value(), 1)
Expand Down

0 comments on commit 71e19c6

Please sign in to comment.