Changeset 4033


Ignore:
Timestamp:
Nov 24, 2006, 5:02:14 PM (18 years ago)
Author:
duncan
Message:

Getting the dam break simulation going

Location:
anuga_work/development/dam_2006
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/dam_2006/create_mesh.py

    r4008 r4033  
    5555    dam.setTag("dam")
    5656   
    57     if is_course:
     57    if is_coarse:
    5858        m.generate_mesh(maximum_triangle_area=0.01)
    5959    else:
  • anuga_work/development/dam_2006/project.py

    r4007 r4033  
    1010     copy_code_files
    1111
     12from anuga.utilities.system_tools import get_user_name
    1213
    1314#swollen/ all data output
    1415basename = 'source'
    1516
     17user = get_user_name()
    1618if sys.platform == 'win32':
    1719    try:
    18         home = environ['INUNDATIONHOME']   
    19         user = getenv('USERPROFILE')
     20        home = environ['INUNDATIONHOME'] 
    2021    except:
    2122        home = '.'   
    22         user = getenv('LOGNAME')
    2323else:   
    2424    home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'1'+sep+'cit'+sep+'risk_assessment_methods_project'+sep+'inundation')     
    2525
    26 
    2726if not access(home, F_OK):
    2827    home = '.'
    29    
     28
    3029# Create the structure of where the output will go
    3130create_scenario_dir = ['data','flumes','dam_2006']
  • anuga_work/development/dam_2006/run_dam.py

    r4008 r4033  
    7878    domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
    7979    domain.set_minimum_storable_height(0.01)
    80     domain.set_store_vertices_uniquely(True)  # for writting to sww
     80    #domain.set_store_vertices_uniquely(True)  # for writting to sww
    8181
    8282    #-------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.