X hits on this document

82 views

0 shares

0 downloads

0 comments

21 / 30

self.pointCamera( breve.vector(

0, 0, 0 ), breve.vector( 0, 0, 70

)

)

self.U = breve.createInstances( self.V = breve.createInstances( self.inflow = breve.createInsta self.delta = breve.createInstan self.deltareact = breve.createI self.U.setSize( 128, 128 ) self.V.setSize( 128, 128 ) self.delta.setSize( 128, 128 ) self.deltareact.setSize( 128, 1 self.inflow.setSize( 128, 128 ) self.texture = breve.createInst self.texture.initWith( self.U, self.texture.setRed( self.V ) self.texture.setBlue( self.U ) self.cube = breve.createInstanc self.cube.setShape( breve.creat ).initWith( breve.vector( 400, 400, 1 ) ) ) self.cube.setTextureImage( self self.cube.setTextureScale( 40 )

breve.Matrix2D, 1 ) breve.Matrix2D, 1 ) nces( breve.Matrix2D, 1 ) ces( breve.Matrix2D, 1 ) nstances( breve.Matrix2D, 1 )

28 )

ances( breve.MatrixImage, 1 ) 1.000000 )

es( breve.Mobile, 1 ) eInstances( breve.Cube, 1

.texture )

n=0 while ( n < 128 ): m=0 while ( m < 128 ): self.U.setValue(

(

breve.breveInternalFunctionFinder.sqrt( sel 0.010000 * ( 1.000000 + ( 0.040000 / 0.0100 / 0.010000 ) ) ) ) ) ) ) + ( 0.020000 * ( b

  • -

    0.500000 ) ) ), m, n )

( 0.500000 + f, breve.length( ( 0.250000 - ( ( 00 ) ) ) * ( 1.000000 + ( 0.040000 reve.randomExpression( 1.000000 )

n)

)/

self.V.setValue( ( ( 1.000000 + ( 0.040000 / 0.010000

breve.randomExpression( 1.000000 ) - 0.5000 self.inflow.setValu

( ( 1.000000 - self.U.getValue( m, ) ) ) + ( 0.020000 * ( 00 ) ) ), m, n ) e( 0.010000, n, m )

m=(m+1)

n=(n+1)

def iterate( self ): self.deltareact.copy( self.U ) self.deltareact.multiplyWithValues( self.V ) self.deltareact.multiplyWithValues( self.V ) self.delta.computePeriodicDiffusionMatrix( self.U, 0.078000 ) self.delta.addValues( self.deltareact, -1.000000 ) self.delta.addValues( self.U, ( -0.010000 ) ) self.delta.addValues( self.inflow ) self.U.addValues( self.delta, 1.000000 )

Document info
Document views82
Page views82
Page last viewedTue Jan 17 03:14:54 UTC 2017
Pages30
Paragraphs495
Words6732

Comments