Skip to content

Commit

Permalink
add rho calculation in constrained pressure conv
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Jun 24, 2024
1 parent 7ada9f3 commit 3f12028
Show file tree
Hide file tree
Showing 3 changed files with 1,022 additions and 4 deletions.
1 change: 1 addition & 0 deletions calphy/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ def finalise_pressure(self,):
self.lz = np.round(np.mean(lz[-ncount+1:]), decimals=3)
self.volatom = volatom
self.vol = self.lx*self.ly*self.lz
self.rho = self.natoms/(self.lx*self.ly*self.lz)
self.logger.info("finalized vol/atom %f at pressure %f"%(self.volatom, mean))
self.logger.info("Avg box dimensions x: %f, y: %f, z:%f"%(self.lx, self.ly, self.lz))

Expand Down
Loading

0 comments on commit 3f12028

Please sign in to comment.