source: production/swan_river_tin_2005/populate_mesh.py @ 2225

Last change on this file since 2225 was 2068, checked in by ole, 19 years ago

Swan river

File size: 821 bytes
Line 
1"""Script for fitting data points to mesh
2"""
3
4from pyvolution.pmesh2domain import pmesh_to_domain_instance
5from caching import cache
6from pyvolution.shallow_water import Domain, Reflective_boundary
7
8
9meshname = 'swan_mesh.msh'
10
11domain = cache(pmesh_to_domain_instance, (meshname, Domain),
12               dependencies = [meshname],                     
13               verbose = True)               
14
15
16domain.set_quantity('elevation',
17                    filename = 'cross_sections.pts',
18                    use_cache = True,
19                    verbose = True)
20
21print domain.get_boundary_tags()
22Br = Reflective_boundary(domain)
23#domain.set_boundary( {'back': Br} )
24
25
26domain.set_name('swan_river')
27domain.set_datadir('.')
28domain.store = True
29
30for t in domain.evolve(yieldstep = 1, finaltime = 1):
31    domain.write_time()
Note: See TracBrowser for help on using the repository browser.