Ignore:
Timestamp:
Nov 21, 2006, 8:36:47 PM (18 years ago)
Author:
jack
Message:

Moved the vpython visualiser to obsolete_code and cleared out things that call it from other code.

Location:
anuga_core/source/anuga/examples
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/advection_dirichlet.py

    r3560 r4026  
    2020domain = Domain(points, vertices, boundary, velocity=[1.0, -1.0])
    2121domain.smooth = False
    22 domain.visualise = True
    2322
    2423#Boundaries
  • anuga_core/source/anuga/examples/advection_waves.py

    r3560 r4026  
    1919domain = Domain(points, vertices, boundary, velocity=[1.0, -0.8])
    2020#domain.smooth = False
    21 domain.visualise = True
    2221
    2322#Boundaries
  • anuga_core/source/anuga/examples/bed_w_eden_boundary.py

    r3565 r4026  
    1717domain = Domain(points, vertices, boundary)
    1818domain.smooth = False
    19 domain.visualise = False
    2019domain.default_order = 2
    2120domain.store = True     #Store for visualisation purposes
  • anuga_core/source/anuga/examples/bed_w_file_boundary.py

    r3565 r4026  
    1919domain = Domain(points, vertices, boundary)
    2020domain.smooth = False
    21 domain.visualise = True
    2221domain.default_order=2
    2322
  • anuga_core/source/anuga/examples/cornell_room.py

    r3846 r4026  
    6363print "Number of triangles = ", len(domain)
    6464
    65 domain.visualise = False
    66 domain.checkpoint = False
    6765domain.store = True    #Store for visualisation purposes
    6866domain.format = 'sww'   #Native netcdf visualisation format
  • anuga_core/source/anuga/examples/flatbed_compare.py

    r3565 r4026  
    2020domain = Domain(points, vertices, boundary)
    2121domain.smooth = False
    22 domain.visualise = True
    2322domain.default_order=2
    2423
  • anuga_core/source/anuga/examples/island.py

    r3876 r4026  
    6161domain.maximum_allowed_speed = 100.0
    6262domain.minimum_storable_height = 1.0e-4
    63 domain.visualise_wet_dry_cutoff = 5.0e-2
    6463
    6564#------------------------------------------------------------------------------
     
    101100domain.check_integrity()
    102101
    103 domain.initialise_visualiser()
    104102#------------------------------------------------------------------------------
    105103# Evolve system through time
  • anuga_core/source/anuga/examples/netherlands.py

    r3962 r4026  
    122122
    123123if N > 150:
    124     domain.visualise = False
    125124    domain.checkpoint = False
    126125    domain.store = True    #Store for visualisation purposes
     
    132131    domain.set_name(basename)
    133132else:
    134     #domain.initialise_visualiser(rect=[0.0,0.0,1.0,1.0])
    135     #domain.initialise_visualiser()
    136     #domain.visualiser.coloring['stage'] = False
    137     domain.visualise_timer = True
    138133    domain.checkpoint = False
    139134    domain.store = False
    140     domain.visualise = False
    141135    vis = RealtimeVisualiser(domain)
    142136    vis.render_quantity_height("elevation", dynamic=False)
     
    177171t0 = time.time()
    178172
    179 
    180 #from realtime_visualisation_new import Visualiser
    181 #V = Visualiser(domain,title='netherlands')
    182 #V.update_quantity('stage')
    183 #V.update_quantity('elevation')
    184 
    185 
    186 
    187 
    188173for t in domain.evolve(yieldstep = 0.005, finaltime = None):
    189174    domain.write_time()
     
    192177    print domain.quantities['stage'].get_values(location='centroids',
    193178                                                indices=[0])
    194     #domain.visualiser.update_quantity('elevation')
    195179    #time.sleep(0.1)
    196180    #raw_input('pause>')
    197181    #V.update_quantity('stage')
    198182    #rpdb.set_active()
    199     #domain.visualiser.scale_z = 1.0
    200     #domain.visualiser.update_quantity_color('xmomentum',scale_z = 4.0)
    201183    #integral_label.text='Integral=%10.5e'%domain.quantities['stage'].get_integral()
    202184vis.evolveFinished()
  • anuga_core/source/anuga/examples/run_gong.py

    r3846 r4026  
    2121from mesh_factory import rectangular
    2222from anuga.pyvolution.pmesh2domain import pmesh_to_domain, pmesh_to_domain_instance
     23from anuga.visualiser import RealtimeVisualiser
    2324
    2425from Numeric import array
     
    5051    domain.checkpoint = False #True
    5152    domain.default_order = 1
    52     domain.visualise = visualise
    5353    domain.smooth = True
    5454    domain.set_datadir('.')
    5555    domain.starttime = 20000
    5656
    57     if (domain.visualise):
     57    if (visualise):
    5858        domain.store = False  #True    #Store for visualisation purposes
    5959    else:
     
    122122    domain.check_integrity()
    123123
     124    # prepare the visualiser
     125    if visualise is True:
     126        v = RealtimeVisualiser(domain)
     127        v.render_quantity_height('elevation', dynamic=False)
     128        v.render_quantity_height('stage', dynamic=True)
     129        v.colour_height_quantity('stage', (0.0, 0.0, 0.8))
     130        v.start()
    124131    ######################
    125132    #Evolution
     
    127134    for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    128135        domain.write_time()
     136        if visualise is True:
     137            v.update()
     138    if visualise is True:
     139        v.evolveFinished()
    129140   
    130141    print 'That took %.2f seconds' %(time.time()-t0)
  • anuga_core/source/anuga/examples/run_sw_rectangle.py

    r3697 r4026  
    4848print 'Number of triangles =', len(domain)
    4949
    50 # Turn on the visualisation
    51 try:
    52     domain.initialise_visualiser()
    53 except:
    54     pass
    55 
    56 
    5750#-----------------------------------------------------------------
    5851# Boundaries and Initial conditions
     
    9184domain.set_name('new_limiter_second_order')
    9285print 'Number of triangles =', len(domain)
    93 
    94 # Turn on the visualisation
    95 try:
    96     domain.initialise_visualiser()
    97 except:
    98     pass
    9986
    10087#-----------------------------------------------------------------
     
    136123print 'Number of triangles =', len(domain)
    137124
    138 # Turn on the visualisation
    139 try:
    140     domain.initialise_visualiser()
    141 except:
    142     pass
    143 
    144125#-----------------------------------------------------------------
    145126# Boundaries and Initial conditions
  • anuga_core/source/anuga/examples/run_tsh.py

    r3846 r4026  
    6060    domain.checkpoint = False #True
    6161    domain.default_order = 1
    62     domain.visualise = visualise
    6362    domain.smooth = True
    6463    domain.set_datadir('.')
    6564
    66     if (domain.visualise):
     65    if (visualise):
    6766        domain.store = False  #True    #Store for visualisation purposes
    6867    else:
     
    149148         
    150149    domain.check_integrity()
    151 
     150   
     151    # prepare the visualiser
     152    if visualise is True:
     153        v = RealtimeVisualiser(domain)
     154        v.render_quantity_height('elevation', dynamic=False)
     155        v.render_quantity_height('stage', dynamic=True)
     156        v.colour_height_quantity('stage', (0.0, 0.0, 0.8))
     157        v.start()
    152158    ######################
    153159    #Evolution
     
    155161    for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    156162        domain.write_time()
     163        if visualise is True:
     164            v.update()
     165    if visualise is True:
     166        v.evolveFinished()
     167
    157168   
    158169    print 'That took %.2f seconds' %(time.time()-t0)
  • anuga_core/source/anuga/examples/run_tsh_weir.py

    r3846 r4026  
    4343domain.set_name('weir')
    4444domain.checkpoint = False #True
    45 domain.visualise = True #False
    4645domain.default_order = 2
    4746
  • anuga_core/source/anuga/examples/twolevels.py

    r3846 r4026  
    3030domain.default_order=2
    3131domain.smooth = False
    32 domain.visualise = True
    3332
    3433#PLAY WITH THIS [0;1]:
  • anuga_core/source/anuga/examples/wind_example_variable.py

    r3565 r4026  
    1919domain = Domain(points, vertices, boundary)
    2020domain.smooth = True
    21 domain.visualise = False
    2221domain.store = True
    2322domain.default_order=2
Note: See TracChangeset for help on using the changeset viewer.