Changeset 4350
- Timestamp:
- Apr 3, 2007, 3:51:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/solitary_waves/solitary_wave_runup.py
r4145 r4350 22 22 from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary 23 23 from abstract_2d_finite_volumes.util import file_function 24 from pylab import plot, xlabel, ylabel, title, ion, close, savefig,\25 figure, axis, legend, grid, hold24 #from pylab import plot, xlabel, ylabel, title, ion, close, savefig,\ 25 # figure, axis, legend, grid, hold 26 26 27 27 … … 39 39 amplitude = 0.5 # Solitary wave height H 40 40 normalized_amplitude = amplitude/offshore_depth 41 simulation_name = 'runup_convergence'41 42 42 coastline_x = -highest_point/slope 43 43 … … 54 54 55 55 # Structured mesh 56 dx = 5# Resolution: Length of subdivisions on x axis (length)57 dy = 5# Resolution: Length of subdivisions on y axis (width)56 dx = 40. # Resolution: Length of subdivisions on x axis (length) 57 dy = 40. # Resolution: Length of subdivisions on y axis (width) 58 58 59 59 length = east-west 60 60 width = north-south 61 points, vertices, boundary = rectangular_cross(length/dx, width/dy,62 len1=length, len2=width,63 origin = (west, south))64 65 domain = Domain(points, vertices, boundary) # Create domain61 ##points, vertices, boundary = rectangular_cross(length/dx, width/dy, 62 ## len1=length, len2=width, 63 ## origin = (west, south)) 64 ## 65 ##domain = Domain(points, vertices, boundary) # Create domain 66 66 67 67 … … 70 70 interior_polygon = [[400,north-10],[west+10,north-10], 71 71 [west+10,south+10],[400,south+10]] 72 res = 0.065 73 simulation_name = 'runup_convergence' + str(res) 72 74 meshname = simulation_name + '.msh' 73 75 create_mesh_from_regions(polygon, 74 76 boundary_tags={'top': [0], 'left': [1], 75 77 'bottom': [2], 'right': [3]}, 76 maximum_triangle_area= dx*dy/4,78 maximum_triangle_area=10.,#dx*dy/4., 77 79 filename=meshname, 78 interior_regions=[[interior_polygon,dx*dy/32]]) 80 #interior_regions=[[interior_polygon,dx*dy/32.]]) 81 interior_regions=[[interior_polygon,res]]) 79 82 80 83 … … 174 177 print '**********************************************' 175 178 176 179 import sys; sys.exit() 177 180 #----------------------------------------------------------------------------- 178 181 # Interrogate further
Note: See TracChangeset
for help on using the changeset viewer.