Skip to content

Commit

Permalink
fix bird dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JBertholdt committed Feb 27, 2024
1 parent cfdb4c6 commit d38489c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions birdpressure/Bird.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, initial_density=950, speed_of_sound=1482.9, mass=1.814, aspec
self.mass = mass
self.k = k
self.aspect_ratio = aspect_ratio
self.length = (16 / np.pi * self.mass / self.initial_density) ** 1 / 3
self.length = (16 *self.mass / (np.pi*self.initial_density)) ** 1 / 3
self.diameter = self.length / self.aspect_ratio

def to_dict(self):
Expand Down Expand Up @@ -77,7 +77,7 @@ def get_length(self):
return self.length

def get_mass(self):
return self.m
return self.mass

def get_sound_speed(self):
return self.speed_of_sound
Expand Down

0 comments on commit d38489c

Please sign in to comment.