source: inundation/ga/storm_surge/pyvolution-parallel/run_advection.py @ 1668

Last change on this file since 1668 was 1520, checked in by steve, 20 years ago
File size: 816 bytes
Line 
1from config import g, epsilon
2from Numeric import allclose, array, zeros, ones, Float
3from advection import *
4from Numeric import array
5
6import pdb
7from mesh_factory import rectangular
8
9points, vertices, boundary = rectangular(20, 20)
10
11#Create advection domain with direction (1,-1)
12domain = Domain(points, vertices, boundary, velocity=[1.0, 0.0])
13
14# Initial condition is zero by default
15
16domain.visualise = True
17
18#Boundaries
19T = Transmissive_boundary(domain)
20D = Dirichlet_boundary(array([0.5]))
21
22domain.default_order = 2
23
24domain.set_boundary( {'left': D, 'right': T, 'bottom': T, 'top': T} )
25domain.check_integrity()
26
27#Check that the boundary value gets propagated to all elements
28for t in domain.evolve(yieldstep = 0.01, finaltime = 1.5):
29    pdb.set_trace()
30    domain.write_time()
Note: See TracBrowser for help on using the repository browser.