-
Notifications
You must be signed in to change notification settings - Fork 7
Redefined functions relating to collective diffusion coefficient and reduced ionic condictivity. #3
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
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 |
|---|---|---|
|
|
@@ -271,23 +271,25 @@ def collective_correlation( self ): | |
| return None | ||
|
|
||
| @property | ||
| def reduced_ionic_conductivity( self ): | ||
| def collective_diffusion_coefficient( self ): | ||
| """ | ||
| Returns the reduced ionic conductivity, \u03C3\' ( D_J * n_natoms). | ||
| Returns the collective or "jump" diffusion coefficient multiplied by the number of atoms, | ||
| ( D_J * number_of_atoms). | ||
|
|
||
| Args: | ||
| None | ||
|
|
||
| Returns: | ||
| (Float): The reduced ionic conductivity, \u03C3\' ( D_J * n_natoms). | ||
| (Float): the collective or "jump" diffusion coefficient multiplied by the number of | ||
| atoms, ( D_J * number_of_atoms). | ||
|
Comment on lines
+283
to
+284
Owner
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 ) | ||
| 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. | ||
|
Owner
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. |
||
|
|
||
|
|
@@ -298,7 +300,25 @@ def collective_diffusion_coefficient( self ): | |
| (Float): The collective diffusion coefficient, D_J. | ||
|
Owner
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.reduced_ionic_conductivity / float( self.number_of_atoms ) | ||
| 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 | ||
|
|
||
|
|
||
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.