-
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?
Conversation
Left the notebook the same, since it will now be correct with the way the functions are defined.
|
Fixed error in docstrings, updated example jupyter notebook and defined a reduced_ionic_conductivity function.
""" | ||
Returns the reduced ionic conductivity, \u03C3\' ( D_J * n_natoms). | ||
Returns the collective or "jump" diffusion coefficient multiplied by the number of atoms, |
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.
(Float): the collective or "jump" diffusion coefficient multiplied by the number of | ||
atoms, ( D_J * number_of_atoms). |
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.
Also needs changing here.
""" | ||
if self.has_run: | ||
return self.atoms.collective_dr_squared() / ( 6.0 * self.lattice.time ) | ||
else: | ||
return None | ||
|
||
@property | ||
def collective_diffusion_coefficient( self ): | ||
def collective_diffusion_coefficient_per_atom( self ): | ||
""" | ||
Returns the collective or "jump" diffusion coefficient, D_J. |
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 incorrect. Returns the collective diffusion coefficient per atom, which is equal to the "jump" diffusion coefficient.
@@ -298,7 +300,25 @@ def collective_diffusion_coefficient( self ): | |||
(Float): The collective diffusion coefficient, D_J. |
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.
Inconsistent. The collective diffusion coefficient is D_J * N_atoms.
Left the notebook the same, since it will now be correct with the way the functions are defined.