1 | ################################### |
---|
2 | ALL INFORMATION IS NOW IN TRAC |
---|
3 | DON'T EDIT THIS FILE ANYMORE |
---|
4 | ################################### |
---|
5 | |
---|
6 | |
---|
7 | ANUGA Future Directions (2005-2006) |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | -------------------------------------------------- |
---|
12 | Draft of known issues regarding the ANUGA software |
---|
13 | -------------------------------------------------- |
---|
14 | |
---|
15 | |
---|
16 | ---------------- |
---|
17 | Numerical issues |
---|
18 | |
---|
19 | CFL condition (centroid-midpt distances versus inscribed circle ? or error estimator) |
---|
20 | Gradient limiters |
---|
21 | Forcing terms: |
---|
22 | Friction of Mud |
---|
23 | Viscosity |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | -------------------- |
---|
28 | Functionality issues |
---|
29 | |
---|
30 | Mesh generation: (Duncan) |
---|
31 | Through graphical generator |
---|
32 | Through scripts |
---|
33 | Alternative triangulators (Strang, ?.) |
---|
34 | alpha-shapes |
---|
35 | |
---|
36 | |
---|
37 | refactoring triangle interface |
---|
38 | outputting a "triangle" readable file (from pmesh?) |
---|
39 | |
---|
40 | simple method in mesh factory that will convert regularly gridded data to mesh using |
---|
41 | points as vertices |
---|
42 | |
---|
43 | Pmesh (Duncan) |
---|
44 | - from pmesh issues file: |
---|
45 | Main issues (TBA) |
---|
46 | |
---|
47 | - Better API for handling (scripted) meshes: |
---|
48 | *Error messages |
---|
49 | *Refined regions should be specified easily |
---|
50 | *Ways of handling different point sets (e.g. 10m, 100m, 250m) |
---|
51 | and populate according to refinement of mesh |
---|
52 | (wavelets or other adaptive method) |
---|
53 | |
---|
54 | |
---|
55 | Georeferencing |
---|
56 | Code works in UTM coordinates. Zone boundaries cannot be crossed: |
---|
57 | Introduce nonstandard central meridians if necessary |
---|
58 | |
---|
59 | Could code be cast in terms of lat/lons? |
---|
60 | make sure that georeferencing is used consistently (domain, pmesh, sww files, ...) (Duncan) |
---|
61 | Test that least_squares (and elsewhere) correctly reconciles different georefs. (See Karratha) |
---|
62 | |
---|
63 | Least_squares, (Duncan) |
---|
64 | use of quad-tree may not use all datapoints |
---|
65 | (currently fixed by expand search, need algorithm for searching neighbouring treenodes) (TRAC) |
---|
66 | |
---|
67 | Give feedback when |
---|
68 | points outside mesh |
---|
69 | mesh outside points boundary ! |
---|
70 | if mesh is corrupted (see lwru2.py and create_mesh.py in debug dir) |
---|
71 | if segments are repeated (maybe in mesh.check_integrity) (TRAC) |
---|
72 | |
---|
73 | use sparse matrix (CSR) format in "build_interpolation_matrix_A" (TRAC) |
---|
74 | |
---|
75 | simplify geo-referencing (make sure that coordinate changes 'change_points' are |
---|
76 | used everywhere) (TRAC) |
---|
77 | |
---|
78 | memory issue: ! (TRAC) |
---|
79 | If LS is used for fitting |
---|
80 | compute self.Atz and self AtA directly and avoid self.A. |
---|
81 | need alpha |
---|
82 | If LS is to be used for interpolation |
---|
83 | compute self.A |
---|
84 | no alpha needed |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | refactor interpolate_sww in terms of Interpolation_function (Ole or Duncan) |
---|
89 | |
---|
90 | |
---|
91 | Checkpointing (largely done but needs to be revisited) |
---|
92 | |
---|
93 | |
---|
94 | Ability to create additional quantities and initialise arbitrarily |
---|
95 | |
---|
96 | FIXMEs (TBA) |
---|
97 | |
---|
98 | |
---|
99 | File management (msh, pts, dem, ..) - introduce the notion of a project |
---|
100 | |
---|
101 | Reduce # of methods that read/write sww files (Yes) |
---|
102 | |
---|
103 | |
---|
104 | ----------------- |
---|
105 | Efficiency issues |
---|
106 | |
---|
107 | Parallelisation (First cut is done) |
---|
108 | |
---|
109 | Edgefluxes are currently computed twice (f01 = -f10) |
---|
110 | (This has been fixed by Matt Hardy in June 2005) |
---|
111 | |
---|
112 | Increase Timesteps (Implicit techniques?) |
---|
113 | |
---|
114 | Optimise creation and importing of domains (C-code and caching) (Ole) |
---|
115 | Caching needs optional arguments: bypass_args and bypass_kwargs. |
---|
116 | These should be passed onto the function when it is evaluated but not participate in the hashing. |
---|
117 | Rationale: Some arguments such as classes change their signature at every run and thus cause the functin to be evaluated every time, defeating the purpose of caching. |
---|
118 | |
---|
119 | |
---|
120 | NetCDF can't deal with files > 2GB except on cyclone. |
---|
121 | It is possible to write netCDF files that exceed 2 GiByte on platforms that have "Large File Support" (LFS). Such files are platform-independent to other LFS platforms, but trying to open them on an older platform without LFS yields a "file too large" error. |
---|
122 | |
---|
123 | |
---|
124 | |
---|
125 | ------------ |
---|
126 | Architecture |
---|
127 | |
---|
128 | Settle dataflows and formats (pts, dem, msh, sww, etc) (Ole) |
---|
129 | |
---|
130 | finaltime to be renamed duration |
---|
131 | |
---|
132 | |
---|
133 | ---- |
---|
134 | API: |
---|
135 | |
---|
136 | Suggestion for set_quantity |
---|
137 | set_quantity(name, X, location, region) |
---|
138 | where |
---|
139 | name: Name of quantity |
---|
140 | X: |
---|
141 | -Compatible list, |
---|
142 | -compatible list or numeric array, |
---|
143 | -constant |
---|
144 | -list of points or array with attribute values (use LS) (How to distinguish this from a numeric array? - perhaps use keyword arguments for everything) |
---|
145 | -callable object (f: x, y -> z) where x,y,z are arrays |
---|
146 | - inline |
---|
147 | - file functions |
---|
148 | - polygon functions |
---|
149 | -another quantity Q or an expression of the form |
---|
150 | a*Q+b*R+c, where |
---|
151 | a,b,c are scalars, arrays or quantities |
---|
152 | Q,R are quantities (or 1?) |
---|
153 | - pts filename (use LS and caching) (how to select attribute?) |
---|
154 | - general expression to be parsed |
---|
155 | |
---|
156 | location: Where values are to be stored. |
---|
157 | Permissible options are: vertices, edges, centroid, unique_vertices |
---|
158 | region: Identify subset of triangles. Permissible values are |
---|
159 | - tag name (refers to tagged region) |
---|
160 | - indices (refers to specific triangles) |
---|
161 | - polygon (identifies region) |
---|
162 | (incorporate uniqueness/non-uniqueness) |
---|
163 | |
---|
164 | |
---|
165 | IDEA for set_quantity: |
---|
166 | Use keywords and call underlying specific method, e.g. |
---|
167 | |
---|
168 | if filename is not None: |
---|
169 | vertex_values = caching( fitfunc, filename, dependencies = ...) |
---|
170 | set_quantity(..., ..., vertex_values) |
---|
171 | elif: |
---|
172 | |
---|
173 | Largely done. |
---|
174 | Should create class Point_set representing points and attribute(s) |
---|
175 | Include filename too? Yep (and selected attributes) |
---|
176 | This could also facilitate use of multiple point sources |
---|
177 | (e.g. at different resolutions) |
---|
178 | |
---|
179 | (IN TRAC now) |
---|
180 | |
---|
181 | |
---|
182 | |
---|
183 | Making methods private, using _private |
---|
184 | Or write the API in a separate module. |
---|
185 | |
---|
186 | |
---|
187 | Introduce create_quantity in domain.py: (Ole) |
---|
188 | It will make a new named instance and populate it by calling set_quantity |
---|
189 | if desired. |
---|
190 | Create_quantity would be called automatically by shallow_water. |
---|
191 | |
---|
192 | |
---|
193 | Make stage appear as any other quantity: |
---|
194 | Either |
---|
195 | 1: Make stage a subclass of quantity having knowledge of elevation and a special |
---|
196 | limiter (or more limiters) |
---|
197 | Or |
---|
198 | 2: Equip each quantity with a limiter class |
---|
199 | (Con: A limiter for stage should never be applied to any other quantity) |
---|
200 | |
---|
201 | |
---|
202 | Also, investigate if Quantity and Conserved_quantity should be one class (Steve). |
---|
203 | |
---|
204 | Finally, reconcile the optimised gradient limiter of Matt's with the more general framework |
---|
205 | |
---|
206 | |
---|
207 | |
---|
208 | |
---|
209 | Boundary (Dirichlet): Think about specifying values by quantity name (and having defaults) |
---|
210 | Dirichlet(stage = 1.0, ymomentum = 0.2) |
---|
211 | |
---|
212 | Finish MOST2SWW with bathymetry(Trevor) |
---|
213 | |
---|
214 | Make Steve's new boundary spatially dependent (Ole) |
---|
215 | |
---|
216 | Look at matplotlib's verbosity object. |
---|
217 | |
---|
218 | |
---|
219 | ------ |
---|
220 | Other: |
---|
221 | |
---|
222 | Should we remove Python code superseded by C-extensions? |
---|
223 | Pros: Leaner code and no risk |
---|
224 | Cons: Less readable algorithms |
---|
225 | |
---|
226 | Move py code into files such as quantity_ext.py and have python wrappers with doc strings for all functions. Name the code in extensions _ext and conditional import as usual. |
---|
227 | |
---|
228 | Generally separate file_format stuff from functionality (and work with a small number of formats) |
---|
229 | |
---|
230 | |
---|
231 | Have a .tms format for straight timeseries, use sww for f(t,x,y). |
---|
232 | Modify Interpolation function and file_function accordingly. (Use lwru2.py as test bed) (Ole) |
---|
233 | |
---|
234 | |
---|
235 | ------------- |
---|
236 | Visualisation |
---|
237 | |
---|
238 | Swollen: |
---|
239 | Export to movie |
---|
240 | Use maps |
---|
241 | Colourcoding |
---|
242 | z-scale |
---|
243 | |
---|
244 | Matplotlib: |
---|
245 | Realtime and 'post mortem' generation of colour coded maps with contourlines. |
---|
246 | Also useful for graphs |
---|
247 | |
---|
248 | Visual Python: |
---|
249 | Steves new and improved tool |
---|
250 | |
---|
251 | |
---|
252 | |
---|
253 | ----------- |
---|
254 | Installation and setup |
---|
255 | |
---|
256 | - Assume that root dir for AnuGA is on Pythonpath. That way the same code can work with |
---|
257 | sandpits and final installation |
---|
258 | - need installers for all modules |
---|
259 | - pmesh needs a compile.py that will compile triangle whan used from a sandpit. |
---|
260 | Currently it seems one needs a full setup to use pmesh |
---|
261 | |
---|
262 | |
---|
263 | ----------- |
---|
264 | Development |
---|
265 | |
---|
266 | Restructuring and moving svn repository (Ole) |
---|
267 | |
---|
268 | Flatten directory structure (Ole or DUncan) |
---|
269 | |
---|
270 | Apply buildbot |
---|
271 | |
---|
272 | Use real bugtracking/project management tool |
---|
273 | (see http://www.generalconcepts.com/resources/tracking, plone, basecamp,? |
---|
274 | Try out TRAC which integrates into subversion (Ole and Kat 27/7/5) - Done |
---|
275 | |
---|
276 | Zeus? |
---|
277 | |
---|
278 | Install Matplotlib on nautilus |
---|
279 | |
---|
280 | |
---|
281 | |
---|
282 | -------------- |
---|
283 | Documentation |
---|
284 | |
---|
285 | Hire technical writer to produce |
---|
286 | - Getting started |
---|
287 | - User guide |
---|
288 | - Reference manual - semi automated |
---|
289 | |
---|
290 | Mathematical model description (Steve & Chris) |
---|
291 | |
---|
292 | |
---|
293 | ----------------- |
---|
294 | Validation and QA |
---|
295 | |
---|
296 | Merimbula (Steve & Chris) |
---|
297 | PNG Landslide study or watertank data (Adrian?) |
---|
298 | BOM |
---|
299 | SMEC (Lex) |
---|
300 | CSIRO (Kathy) |
---|
301 | Watertank study (Okushiri) (Ole) Done |
---|
302 | Macca... |
---|
303 | |
---|
304 | |
---|
305 | -------- |
---|
306 | Naming |
---|
307 | |
---|
308 | The collection as well as individual modules may benefit from better names. |
---|
309 | |
---|
310 | |
---|
311 | -------- |
---|
312 | Release |
---|
313 | |
---|
314 | Search for appropriate procedure for OSS release (Ole is onto that with AGIMO) |
---|
315 | |
---|
316 | |
---|
317 | |
---|