Ignore:
Timestamp:
Sep 7, 2009, 4:19:23 PM (16 years ago)
Author:
steve
Message:

Changed the order of update_timestep and compute_forcing_terms.
Can now update the parameter domain.flux_timestep within
the computation of the forcing terms, so as to control stability of
the evolver.

Hopefully this will help in reducing the oscillations seen within the
culvert computation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/run_okushiri.py

    r6046 r7492  
    2222
    2323# Module imports
    24 from anuga.shallow_water import Domain
    25 from anuga.shallow_water import Reflective_boundary
    26 from anuga.shallow_water import Transmissive_momentum_set_stage_boundary
    27 from anuga.abstract_2d_finite_volumes.util import file_function
     24from anuga.interface import Domain
     25from anuga.interface import Reflective_boundary
     26from anuga.interface import Time_boundary
     27from anuga.interface import Transmissive_momentum_set_stage_boundary
     28from anuga.interface import Transmissive_n_momentum_zero_t_momentum_set_stage_boundary
     29from anuga.interface import file_function
    2830
    2931import project
     
    8284triangle_id = domain.get_triangle_containing_point([4.521, 1.196])
    8385# This should get triangle id 32833 with centroid (4.5244, 1.1972)
     86bdry_id = domain.get_triangle_containing_point([0.000, 1.696])
     87print 'bdry_id = ',bdry_id
    8488
    8589
     
    9296for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
    9397    domain.write_time()
     98    print  function(domain.get_time())[0],' bdry_d = ',bdry_id,' ',\
     99          domain.get_conserved_quantities(bdry_id, edge=0)[0],' ',\
     100          domain.get_conserved_quantities(bdry_id, edge=1)[0],' ',\
     101          domain.get_conserved_quantities(bdry_id, edge=2)[0]   
     102   
    94103
    95104print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.