Changeset 1949
- Timestamp:
- Oct 17, 2005, 5:46:55 PM (20 years ago)
- Location:
- inundation
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/analytical solutions/Analytical solution_oblique_shock_01.py
r1934 r1949 42 42 leny = 30. 43 43 lenx = 40. 44 f = 144 f = 5 45 45 n = 60*f 46 46 m = 80*f 47 theta = 25 48 h_bc = 1.5 49 p_bc = 5.0 47 50 48 points, elements, boundary = oblique_cross(m, n, lenx, leny, theta = 25)51 points, elements, boundary = oblique_cross(m, n, lenx, leny, theta = theta) 49 52 domain = Domain(points, elements, boundary) 50 53 54 55 print 'Number of Elements = ',domain.number_of_elements 51 56 # Order of solver 52 57 domain.default_order=2 … … 56 61 domain.store=True 57 62 63 # Provide file name for storing output 64 domain.filename="oblique_cross_%g_%g_%g_%g_%g" % (n,m,theta,h_bc,p_bc) 65 print domain.filename 66 58 67 # Output format 59 68 domain.format="sww" #NET.CDF binary format 60 69 # "dat" for ASCII 61 70 62 # Provide file name for storing output63 domain.filename="oblique_cross"64 71 65 72 # Visualization smoothing 66 domain.smooth= True67 domain.visualise= True73 domain.smooth=False 74 domain.visualise=False 68 75 69 76 ####################### 70 77 #Bed-slope and friction 78 class ConstantFunctionT: 79 80 def __init__(self,value): 81 self.value = value 82 83 def __call__(self,t): 84 return self.value 85 86 87 shock_hb = ConstantFunctionT(h_bc) 88 shock_hh = ConstantFunctionT(h_bc) 89 shock_pb = ConstantFunctionT(p_bc) 90 shock_pp = ConstantFunctionT(p_bc) 91 92 71 93 def x_slope(x, y): 72 94 return 0*x 73 95 74 def shock_hb(t):75 return 1.576 77 def shock_hh(t):78 return 1.579 80 def shock_pb(t):81 return 582 83 def shock_pp(t):84 return 585 96 86 97 … … 105 116 w[i] = 0.0 106 117 return w 118 119 120 107 121 108 122 -
inundation/zeus/anuga-workspace.zwi
r1934 r1949 2 2 <workspace name="anuga-workspace"> 3 3 <mode>Debug</mode> 4 <active>p arallel</active>4 <active>pyvolution</active> 5 5 <project name="analytic solns">analytic solns.zpi</project> 6 6 <project name="Merimbula">Merimbula.zpi</project> -
inundation/zeus/pyvolution.zpi
r1556 r1949 84 84 <file>..\pyvolution\data_manager.py</file> 85 85 <file>..\pyvolution\domain.py</file> 86 <file>..\pyvolution\euler.py</file> 87 <file>..\pyvolution\euler_config.py</file> 88 <file>..\pyvolution\euler_ext.c</file> 86 89 <file>..\pyvolution\flatbed.py</file> 87 90 <file>..\pyvolution\flatbed_compare.py</file> … … 120 123 <file>..\pyvolution\test_data_manager.py</file> 121 124 <file>..\pyvolution\test_domain.py</file> 125 <file>..\pyvolution\test_euler.py</file> 122 126 <file>..\pyvolution\test_general_mesh.py</file> 123 127 <file>..\pyvolution\test_generic_boundary_conditions.py</file>
Note: See TracChangeset
for help on using the changeset viewer.