Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def coolwave::CoolWave::__init_wireframe (   self,
  gridSize 
) [private]
Initial shape of the waveform
is based on a transcendental function.

Definition at line 151 of file coolwave.py.

                                         :
        ''' Initial shape of the waveform
        is based on a transcendental function.
        '''
        for i in xrange(0, gridSize):
            for j in xrange(0, gridSize):
                self.__force[i][j] = 0.0
                self.__veloc[i][j] = 0.0

                self.__posit[i][j] = (math.sin(M_PI * 2 * i/gridSize) + math.sin(M_PI * 2 * j/gridSize)) * (gridSize/6.0)
                if (i==0) or (j==0) or (i==(gridSize-1)) or (j==(gridSize-1)): self.__posit[i][j] = 0.0


Generated by  Doxygen 1.6.0   Back to index