Started example for static properties
This commit is contained in:
parent
41ffe0c829
commit
9bf00254af
19
examples/static_properties.py
Normal file
19
examples/static_properties.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
bins = np.linspace(0, 1, 101)
|
||||||
|
result_rdf = md.distribution.rdf(oxygen_water[-1], bins=bins)
|
||||||
|
plt.figure()
|
||||||
|
plt.plot(bins[:-1], result_rdf)
|
||||||
|
plt.xlabel(r"$r$ in nm", fontsize=16)
|
||||||
|
plt.ylabel(r"$g(r)$", fontsize=16)
|
||||||
|
plt.show()
|
||||||
|
plt.close()
|
||||||
|
|
||||||
|
bins = np.linspace(0, 1, 101)
|
||||||
|
result_rdf = md.distribution.time_average(
|
||||||
|
partial(md.distribution.rdf, bins=bins), oxygen_water, segments=100, skip=0.1
|
||||||
|
)
|
||||||
|
plt.figure()
|
||||||
|
plt.plot(bins[:-1], result_rdf)
|
||||||
|
plt.xlabel(r"$r$ in nm", fontsize=16)
|
||||||
|
plt.ylabel(r"$g(r)$", fontsize=16)
|
||||||
|
plt.show()
|
||||||
|
plt.close()
|
Loading…
x
Reference in New Issue
Block a user