tadd functions for setting sigma0 fluctuations - 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 5955c91f69a45d785a84f480e4eab2efe388f68e
 (DIR) parent 035462c0173400bb96da329c5faf5edc67a540a7
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Tue, 20 Jan 2015 09:36:28 +0100
       
       add functions for setting sigma0 fluctuations
       
       Diffstat:
         M python/sphere.py                    |      24 ++++++++++++++++++++++++
       
       1 file changed, 24 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -5176,6 +5176,30 @@ class sim:
                plt.clf()
                plt.close(fig)
        
       +    def setTopWallNormalStressModulation(self, A, f):
       +        '''
       +        Set the parameters for the sine wave modulating the normal stress
       +        at the top wall. Note that a cos-wave is obtained with phi=pi/2.
       +
       +        :param A: Fluctuation amplitude [Pa]
       +        :type A: float
       +        :param f: Fluctuation frequency [Hz]
       +        :type f: float
       +
       +        See also: :func:`setFluidPressureModulation()`
       +        '''
       +        self.sigma0_A[0] = A
       +        self.sigma0_mod_f[0] = f
       +
       +    def disableTopWallNormalStressModulation(self):
       +        '''
       +        Set the parameters for the sine wave modulating the normal stress
       +        at the top dynamic wall to zero.
       +
       +        See also: :func:`setTopWallNormalStressModulation()`
       +        '''
       +        self.setTopWallNormalStressModulation(A = 0.0, f = 0.0)
       +
            def setFluidPressureModulation(self, A, f, phi=0.0):
                '''
                Set the parameters for the sine wave modulating the fluid pressures