Changeset 2050


Ignore:
Timestamp:
Nov 22, 2005, 2:14:12 PM (19 years ago)
Author:
steve
Message:

Fixed bug in visualisation of advection domain

Location:
inundation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/run_parallel_merimbula.py

    r1629 r2050  
    101101        print "WARNING: number of subboxes is not equal to the number of proc"
    102102
    103     domain_full = pmesh_to_domain_instance(filename, Domain)
     103    domain_full = pmesh_to_domain_instance(filename, Advection_Domain)
    104104    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
    105105#    domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))
     
    152152                                   velocity = [0.1,0.0])
    153153
    154 domain.initialise_visualiser(rect=rect)
     154#domain.initialise_visualiser(rect=rect)
    155155
    156156#Boundaries
    157157
    158158T = Transmissive_boundary(domain)
    159 domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, 'exterior': T, 'open':T} )
     159R = Reflective_boundary(domain)
     160domain.set_boundary( {'outflow': R, 'inflow': R, 'inner':R, 'exterior': R, 'open':R} )
    160161
    161162
     
    166167# Evolution
    167168t0 = time.time()
    168 domain.visualise = True
     169
     170
     171try:
     172    domain.initialise_visualiser(rect=rect)
     173    #domain.visualiser.coloring['stage'] = True
     174    #domain.visualiser.scale_z['stage'] = 0.2
     175except:
     176    print 'No visualiser'
     177
     178
     179
    169180#yieldstep = 1
    170181yieldstep = 1000
  • inundation/parallel/run_parallel_sw_merimbula.py

    r1629 r2050  
    9292    # read in the test files
    9393
    94     filename = 'test-100.tsh'
    95 #    filename = 'merimbula_10785_1.tsh'
     94#    filename = 'test-100.tsh'
     95    filename = 'merimbula_10785_1.tsh'
    9696    nx = numprocs
    9797    ny = 1
     
    101101    domain_full = pmesh_to_domain_instance(filename, Domain)
    102102
    103     domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
    104 #    domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0))
     103#    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
     104    domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0))
    105105
    106106    nodes, triangles, boundary, triangles_per_proc, quantities = \
  • inundation/pyvolution/advection.py

    r1639 r2050  
    6464        self.visualise  = False
    6565        self.visualise_color_stage = False
     66        self.visualise_stage_range = 1.0
    6667        self.visualise_timer = True
    6768        self.visualise_range_z = None
     69
    6870
    6971        self.smooth = True
     
    342344        #Initialise real time viz if requested
    343345        if self.visualise is True and self.time == 0.0:
     346            #pass
    344347            #import realtime_visualisation_new as visualise
     348            #visualise.create_surface(self)
    345349            self.initialise_visualiser()
    346             #self.visualiser.update_quantity('stage')
     350            self.visualiser.setup_all()
    347351            self.visualiser.update_timer()
     352
    348353
    349354        #Call basic machinery from parent class
    350355        for t in Generic_domain.evolve(self, yieldstep, finaltime):
     356
     357
    351358            #Real time viz
    352359            if self.visualise is True:
    353                 #self.visualiser.update_quantity('stage')
     360                #pass
     361                self.visualiser.update_all()
    354362                self.visualiser.update_timer()
     363
    355364
    356365            #Pass control on to outer loop for more specific actions
Note: See TracChangeset for help on using the changeset viewer.