Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
marjanalbooyeh committed Nov 28, 2024
2 parents ae0d07d + 7156c79 commit 0199a8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flowermd/base/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,7 @@ def _pressure_to_reduced_pressure(self, pressure):
length = self.reference_length.to("m")
else:
length = 1 * Units.m
validated_pressure = validate_unit(pressure, u.dimensions.pressure)
pressure = validated_pressure.to("Pa")
pressure = pressure.to("Pa")
reduced_pressure = (pressure * (length**3)) / energy
return float(reduced_pressure)

Expand Down

0 comments on commit 0199a8d

Please sign in to comment.