-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefined functions relating to collective diffusion coefficient and reduced ionic condictivity. #3
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -273,13 +273,15 @@ def collective_correlation( self ): | |
@property | ||
def collective_diffusion_coefficient( self ): | ||
""" | ||
Returns the collective or "jump" diffusion coefficient, D_J. | ||
Returns the collective or "jump" diffusion coefficient multiplied by the number of atoms, | ||
( D_J * number_of_atoms). | ||
|
||
Args: | ||
None | ||
|
||
Returns: | ||
(Float): The collective diffusion coefficient, D_J. | ||
(Float): the collective or "jump" diffusion coefficient multiplied by the number of | ||
atoms, ( D_J * number_of_atoms). | ||
Comment on lines
+283
to
+284
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also needs changing here. |
||
""" | ||
if self.has_run: | ||
return self.atoms.collective_dr_squared() / ( 6.0 * self.lattice.time ) | ||
|
@@ -289,18 +291,36 @@ def collective_diffusion_coefficient( self ): | |
@property | ||
def collective_diffusion_coefficient_per_atom( self ): | ||
""" | ||
The collective diffusion coefficient per atom. D_J / n_atoms. | ||
Returns the collective or "jump" diffusion coefficient, D_J. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is incorrect. Returns the collective diffusion coefficient per atom, which is equal to the "jump" diffusion coefficient. |
||
|
||
Args: | ||
None | ||
|
||
Returns: | ||
(Float): The collective diffusion coefficient per atom, D_J / n_atoms. | ||
(Float): The collective diffusion coefficient, D_J. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent. The collective diffusion coefficient is D_J * N_atoms. |
||
""" | ||
if self.has_run: | ||
return self.collective_diffusion_coefficient / float( self.number_of_atoms ) | ||
else: | ||
return None | ||
|
||
@property | ||
def reduced_ionic_conductivity( self ): | ||
""" | ||
Returns the reduced ionic conductivity, \u03C3\' ( D_J * ( number_of_atoms / | ||
number_of_sites ) ). | ||
|
||
Args: | ||
None | ||
|
||
Returns: | ||
(Float): The reduced ionic conductivity, \u03C3\' ( D_J * ( number_of_atoms / | ||
number_of_sites )). | ||
""" | ||
if self.has_run: | ||
return self.atoms.collective_diffusion_coefficient_per_atom * float( self.number_of_atoms / self.number_of_sites ) | ||
else: | ||
return None | ||
|
||
@property | ||
def average_site_occupations( self ): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is potentially misleading. This method returns the collective diffusion coefficient, which is equal to the "jump" diffusion coefficient multiplied by the number of atoms, D_J * N.