added one end fixed
@@ -19,24 +19,17 @@ class Free_Rod:
pass
-# both ends fixed for the rod
-class BothEnds_Fixed_Rod(Free_Rod):
- def __init__(self, rod, start_position, end_position,
- start_directors, end_directors):
+# start of the rod fixed
+class OneEnd_Fixed_Rod(Free_Rod):
+ def __init__(self, rod, start_position, start_directors):
self.rod = rod
self.start_position = start_position
- self.end_position = end_position
self.start_directors = start_directors
- self.end_directors = end_directors
def dirichlet(self):
self.rod.position[..., 0] = self.start_position
- self.rod.position[..., -1] = self.end_position
self.rod.directors[..., 0] = self.start_directors
- self.rod.directors[..., -1] = self.end_directors
def neumann(self):
self.rod.velocity[..., 0] = 0
- self.rod.velocity[..., -1] = 0
self.rod.omega[..., 0] = 0
- self.rod.omega[..., -1] = 0
