tadd plot parameter - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit d590ec7ff4e6d393e1d59bd998443ce9f0cea345
(DIR) parent 8d0af9465fc5790eaaa513c7b451c96cc79d2e88
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 20 Jan 2015 10:59:14 +0100
add plot parameter
Diffstat:
M python/sphere.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -5241,7 +5241,7 @@ class sim:
'''
self.setTopWallNormalStressModulation(A = 0.0, f = 0.0)
- def setFluidPressureModulation(self, A, f, phi=0.0):
+ def setFluidPressureModulation(self, A, f, phi=0.0, plot=True):
'''
Set the parameters for the sine wave modulating the fluid pressures
at the top boundary. Note that a cos-wave is obtained with phi=pi/2.
t@@ -5252,6 +5252,8 @@ class sim:
:type f: float
:param phi: Fluctuation phase shift (default=0.0) [t]
:type phi: float
+ :param plot: Show a plot of the resulting modulation
+ :type plot: bool
See also: :func:`setTopWallNormalStressModulation()` and
:func:`disableFluidPressureModulation()`