Changeset 4725


Ignore:
Timestamp:
Sep 11, 2007, 12:02:31 PM (17 years ago)
Author:
ole
Message:

Investigated mesh (and timestepping) differences across platforms

Location:
anuga_work/development/demos
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/demos/island.py

    r4723 r4725  
    3030#------------------------------------------------------------------------------
    3131
    32 #Create basic mesh
    33 create_mesh_from_regions( [[0,0], [100,0], [100,100], [0,100]],
    34                           boundary_tags = {'bottom': [0],
    35                                            'right': [1],
    36                                            'top': [2],
    37                                            'left': [3]},
    38                           maximum_triangle_area = 2,
    39                           filename = 'island.msh' ,
    40                           interior_regions=[ ([[50,25], [70,25], [70,75], [50,75]], 10.0)]
    41                           #interior_holes=[[[50,25], [70,25], [70,75], [50,75]]],
    42                           )
     32if False:
     33    #Create basic mesh
     34    create_mesh_from_regions( [[0,0], [100,0], [100,100], [0,100]],
     35                              boundary_tags = {'bottom': [0],
     36                                               'right': [1],
     37                                               'top': [2],
     38                                               'left': [3]},
     39                              maximum_triangle_area = 2,
     40                              filename = 'island.msh' ,
     41                              interior_regions=[ ([[50,25], [70,25], [70,75], [50,75]], 10.0)]
     42                              #interior_holes=[[[50,25], [70,25], [70,75], [50,75]]],
     43                              )
    4344
    4445
    4546
     47
     48
     49# Select precomputed meshes here. In changeset:4725 there is a huge difference
     50# in timestepping characteristics depending on the mesh used.
     51# The mesh generated on windows takes 10 times as many timesteps.
     52
     53name = 'island_linux'    # Mesh generated on a Linux box (here nautilus) but similar on cyclone
     54#name = 'island_windows' # Mesh generated on a Windows box (asset 0031136)
     55
     56
    4657#Create shallow water domain
    47 domain = Domain(mesh_filename = 'island.msh')
     58domain = Domain(mesh_filename = name + '.msh')
    4859domain.smooth = False #True
    49 domain.set_name('island_unique')
     60domain.set_name(name)
    5061#domain.set_name('island_not_unique')
    5162domain.default_order = 2
    5263
     64print domain.statistics()
    5365
    5466#I tried to introduce this parameter top control the h-limiter,
     
    89101domain.maximum_allowed_speed = 0
    90102domain.beta_h = 0.0
    91 #domain.H0 = 0.01
    92103domain.tight_slope_limiters = 1
    93 
    94 
    95104
    96105
Note: See TracChangeset for help on using the changeset viewer.