Changeset 1736


Ignore:
Timestamp:
Aug 20, 2005, 5:57:06 PM (19 years ago)
Author:
ole
Message:
 
Location:
inundation/validation/LWRU2
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/validation/LWRU2/extract_timeseries.py

    r1697 r1736  
    1111#gauges = [[4.521, 1.196],  [4.521, 1.696],  [4.521, 2.196]] #Ch 5-7-9
    1212
    13 gauge_names = ['Boundary gauge', 'ch5', 'ch7', 'ch9']
     13gauge_names = ['Boundary', 'ch5', 'ch7', 'ch9']
    1414#gauge_names = ['ch5', 'ch7', 'ch9']
    1515
  • inundation/validation/LWRU2/lwru2.py

    r1734 r1736  
    99Depth at western boundary is d = 13.5 cm
    1010"""
     11
     12
     13read_mesh = False
    1114
    1215import sys
     
    7881from cPickle import dump, load
    7982
    80 N = 50
     83N = 100
    8184
    8285try:
     
    99102    #######################
    100103    # Domain
    101     #print 'Creating domain'
    102     #points, vertices, boundary = rectangular(N, N/5*3,
    103     #                                         len1=5.448, len2=3.402)
    104     #domain = Domain(points, vertices, boundary)
     104   
     105    if read_mesh is True:
     106        print 'Creating domain from', filenames.mesh_filename
     107        domain = pmesh_to_domain_instance(filenames.mesh_filename, Domain)   
     108    else:       
     109        print 'Creating regular domain'
     110        points, vertices, boundary = rectangular(N, N/5*3,
     111                                                 len1=5.448, len2=3.402)
     112        domain = Domain(points, vertices, boundary)
    105113
    106     print 'Creating domain from', filenames.mesh_filename
    107     domain = pmesh_to_domain_instance(filenames.mesh_filename, Domain)
     114
    108115
    109116    print "Number of triangles = ", len(domain)
     
    159166
    160167#Set boundary conditions
    161 #domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br})
    162 domain.set_boundary({'wave': Bts, 'wall': Br})
     168
     169if read_mesh is True:
     170    domain.set_boundary({'wave': Bts, 'wall': Br})     
     171else:   
     172    domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br})
     173
    163174
    164175#Evolve
Note: See TracChangeset for help on using the changeset viewer.