Changeset 1949


Ignore:
Timestamp:
Oct 17, 2005, 5:46:55 PM (20 years ago)
Author:
steve
Message:

Starting to code up Euler equation

Location:
inundation
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/analytical solutions/Analytical solution_oblique_shock_01.py

    r1934 r1949  
    4242leny = 30.
    4343lenx = 40.
    44 f = 1
     44f = 5
    4545n = 60*f
    4646m = 80*f
     47theta = 25
     48h_bc = 1.5
     49p_bc = 5.0
    4750
    48 points, elements, boundary = oblique_cross(m, n, lenx, leny, theta = 25)
     51points, elements, boundary = oblique_cross(m, n, lenx, leny, theta = theta)
    4952domain = Domain(points, elements, boundary)
    5053
     54
     55print 'Number of Elements = ',domain.number_of_elements
    5156# Order of solver
    5257domain.default_order=2
     
    5661domain.store=True
    5762
     63# Provide file name for storing output
     64domain.filename="oblique_cross_%g_%g_%g_%g_%g" % (n,m,theta,h_bc,p_bc)
     65print domain.filename
     66
    5867# Output format
    5968domain.format="sww" #NET.CDF binary format
    6069                    # "dat" for ASCII
    6170
    62 # Provide file name for storing output
    63 domain.filename="oblique_cross"
    6471
    6572# Visualization smoothing
    66 domain.smooth=True
    67 domain.visualise=True
     73domain.smooth=False
     74domain.visualise=False
    6875
    6976#######################
    7077#Bed-slope and friction
     78class ConstantFunctionT:
     79
     80    def __init__(self,value):
     81        self.value = value
     82
     83    def __call__(self,t):
     84        return self.value
     85
     86
     87shock_hb = ConstantFunctionT(h_bc)
     88shock_hh = ConstantFunctionT(h_bc)
     89shock_pb = ConstantFunctionT(p_bc)
     90shock_pp = ConstantFunctionT(p_bc)
     91
     92
    7193def x_slope(x, y):
    7294    return 0*x
    7395
    74 def shock_hb(t):
    75     return 1.5
    76 
    77 def shock_hh(t):
    78     return 1.5
    79 
    80 def shock_pb(t):
    81     return 5
    82 
    83 def shock_pp(t):
    84     return 5
    8596
    8697
     
    105116            w[i] = 0.0
    106117    return w
     118
     119
     120
    107121
    108122
  • inundation/zeus/anuga-workspace.zwi

    r1934 r1949  
    22<workspace name="anuga-workspace">
    33    <mode>Debug</mode>
    4     <active>parallel</active>
     4    <active>pyvolution</active>
    55    <project name="analytic solns">analytic solns.zpi</project>
    66    <project name="Merimbula">Merimbula.zpi</project>
  • inundation/zeus/pyvolution.zpi

    r1556 r1949  
    8484    <file>..\pyvolution\data_manager.py</file>
    8585    <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>
    8689    <file>..\pyvolution\flatbed.py</file>
    8790    <file>..\pyvolution\flatbed_compare.py</file>
     
    120123    <file>..\pyvolution\test_data_manager.py</file>
    121124    <file>..\pyvolution\test_domain.py</file>
     125    <file>..\pyvolution\test_euler.py</file>
    122126    <file>..\pyvolution\test_general_mesh.py</file>
    123127    <file>..\pyvolution\test_generic_boundary_conditions.py</file>
Note: See TracChangeset for help on using the changeset viewer.