Skip to content

Commit

Permalink
Merge pull request #1062 from raphaeltimbo/fix-ucs
Browse files Browse the repository at this point in the history
Fix ucs for rotor with rsxl elements
  • Loading branch information
raphaeltimbo authored May 23, 2024
2 parents b7f4b78 + d123cd2 commit c6038ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ross/rotor_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ def run_ucs(
bearings_elements.append(bearing)

for i, k in enumerate(stiffness_log):
bearings = [b.__class__(b.n, kxx=k, cxx=0) for b in bearings_elements]
bearings = [BearingElement(b.n, kxx=k, cxx=0) for b in bearings_elements]
rotor = self.__class__(self.shaft_elements, self.disk_elements, bearings)
modal = rotor.run_modal(
speed=0, num_modes=num_modes, synchronous=synchronous
Expand Down Expand Up @@ -2365,7 +2365,7 @@ def run_ucs(

for k, speed in zip(intersection_points["x"], intersection_points["y"]):
# create bearing
bearings = [b.__class__(b.n, kxx=k, cxx=0) for b in bearings_elements]
bearings = [BearingElement(b.n, kxx=k, cxx=0) for b in bearings_elements]
# create rotor
rotor_critical = Rotor(
shaft_elements=self.shaft_elements,
Expand Down

0 comments on commit c6038ed

Please sign in to comment.