-
Notifications
You must be signed in to change notification settings - Fork 2
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
Create plotting functions for viscosity function and running viscosity #29
base: main
Are you sure you want to change the base?
Conversation
* Plots result of class `ViscosityHelfand` * Write tests for plotting function
* Write tests for running viscosity plotting function * Improve variable name in `plot_viscosity_function()`
bd27457
to
43f7424
Compare
@@ -211,3 +217,86 @@ def _conclude(self): | |||
) | |||
# average over # particles and update results array | |||
self.results.timeseries = self.results.visc_by_particle.mean(axis=1) | |||
self._run_called = True | |||
|
|||
def plot_viscosity_function(self, start=0, stop=0, step=1): |
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.
What is meant by function
in the name here?
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.
I was referring to eq. 5 of E M Kirova and G E Norman 2015 J. Phys.: Conf. Ser. 653 012106
It is actually the product of viscosity and time as a function of time. You take the slope of it to obtain viscosity. Here is a direct link to the article: https://iopscience.iop.org/article/10.1088/1742-6596/653/1/012106
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.
Okay you should add this info to the docs and also to the docstring.
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.
block
Fixes #28
Changes made in this Pull Request:
ViscosityHelfand
ViscosityHelfand