Ignore:
Timestamp:
May 8, 2005, 11:50:32 PM (20 years ago)
Author:
steve
Message:

Playing with coloured surfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/netherlands.py

    r1290 r1295  
    6363                z[i] = -x[i]/20+0.4
    6464
     65            if (x[i] - 0.72)**2 + (y[i] - 0.4)**2 < 0.05**2:# or\
     66                   #x[i] > 0.75 and x[i] < 0.9 and y[i] > 0.35 and y[i] < 0.45:
     67                z[i] = -x[i]/20+0.4
     68
    6569            #Wall
    6670            if x[i] > 0.995:
     
    7983N = 130 #size = 33800
    8084N = 600 #Size = 720000
    81 N = 30
     85N = 40
    8286
    8387#N = 15
     
    100104print "Number of triangles = ", len(domain)
    101105
     106#Set bed-slope and friction
     107inflow_stage = 0.4
     108manning = 0.02
     109Z = Weir(inflow_stage)
    102110
    103111if N > 150:
     
    112120else:
    113121    domain.visualise = True
     122    domain.visualise_color_stage = True
     123    domain.visualise_timer = True
    114124    domain.checkpoint = False
    115125    domain.store = False
    116126
    117 
    118 #Set bed-slope and friction
    119 inflow_stage = 0.1
    120 manning = 0.02
    121 Z = Weir(inflow_stage)
    122127
    123128print 'Field values'
     
    134139
    135140#Constant inflow
    136 Bd = Dirichlet_boundary([2*inflow_stage, 0.0, 0.0])
     141Bd = Dirichlet_boundary([inflow_stage, 0.0, 0.0])
    137142
    138143
     
    151156t0 = time.time()
    152157
    153 for t in domain.evolve(yieldstep = 0.2, finaltime = 10.0):
     158for t in domain.evolve(yieldstep = 0.05, finaltime = 10.0):
    154159    domain.write_time()
    155160
Note: See TracChangeset for help on using the changeset viewer.