Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dotmet committed Mar 2, 2023
1 parent 622782c commit e5ad453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcmd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_fluid(self, geometry=None, position=None, velocity=None, N=0, density
velocity = None

if velocity is None:
scales = np.sqrt(KbT/arr([mass])).T
scales = np.sqrt(KbT/mass)
velocity = scales*np.random.randn(self.N,3)

self.position = position
Expand Down

0 comments on commit e5ad453

Please sign in to comment.