Changeset 8197


Ignore:
Timestamp:
Aug 12, 2011, 1:48:27 PM (13 years ago)
Author:
paul
Message:

Pipe flow code uses pressurised flux formulae again

Location:
trunk/anuga_work/development/2010-projects/anuga_1d/pipe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/2010-projects/anuga_1d/pipe/pipe_domain_ext.c

    r8196 r8197  
    2121
    2222// Hard coded choices of computational methods
    23 //#define flux_formula0 flux_formula_press0
    24 //#define flux_formula1 flux_formula_press1
    25 #define flux_formula0 flux_formula_fs0
    26 #define flux_formula1 flux_formula_fs1
     23#define flux_formula0 flux_formula_press0
     24#define flux_formula1 flux_formula_press1
     25//#define flux_formula0 flux_formula_fs0
     26//#define flux_formula1 flux_formula_fs1
    2727#define compute_flux compute_flux_godunov
    2828#define forcingterm_formula_press forcingterm_formula_press_naive
    2929#define forcingterm_formula_fs forcingterm_formula_fs_naive
    30 //#define compute_forcingterm compute_forcingterm_press
    31 #define compute_forcingterm compute_forcingterm_fs
     30#define compute_forcingterm compute_forcingterm_press
     31//#define compute_forcingterm compute_forcingterm_fs
    3232
    3333// Some formulae
  • trunk/anuga_work/development/2010-projects/anuga_1d/pipe/test_pipe.py

    r8196 r8197  
    2222    y = numpy.zeros(len(x),numpy.float)
    2323    for i in range(len(x)):
    24         y[i] = z_infty+2*A0*z_infty/L_x*cos(omega*t)*(x[i]/L_x-0.5*A0/(L_x)*cos(omega*t))
    25         #y[i] = 12.0
     24        #y[i] = z_infty+2*A0*z_infty/L_x*cos(omega*t)*(x[i]/L_x-0.5*A0/(L_x)*cos(omega*t))
     25        y[i] = 12.0
    2626    return y
    2727
     
    5252
    5353# Set final time and yield time for simulation
    54 finaltime = 500.0
    55 yieldstep = 10.0
     54finaltime = 130.0
     55yieldstep = 1.0
    5656
    5757# Length of channel (m)
Note: See TracChangeset for help on using the changeset viewer.