Changeset 5242
- Timestamp:
- Apr 24, 2008, 7:30:33 PM (17 years ago)
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r5162 r5242 166 166 # =0 for ghost 167 167 N = len(self) #number_of_elements 168 self.number_of_elements = N 168 169 self.tri_full_flag = ones(N, Int) 169 170 for i in self.ghost_recv_dict.keys(): … … 173 174 # Test the assumption that all full triangles are store before 174 175 # the ghost triangles. 175 assert allclose(self.tri_full_flag[:self.number_of_full_nodes],1) 176 if not allclose(self.tri_full_flag[:self.number_of_full_nodes],1): 177 print 'WARNING: Not all full triangles are store before ghost triangles' 176 178 177 179 … … 1415 1417 # Protect against degenerate timesteps arising from isolated 1416 1418 # triangles 1419 # FIXME (Steve): This should be in shallow_water as it assumes x and y 1420 # momentum 1417 1421 if self.protect_against_isolated_degenerate_timesteps is True and\ 1418 1422 self.max_speed > 10.0: # FIXME (Ole): Make this configurable -
anuga_core/source/anuga/advection/__init__.py
r3592 r5242 2 2 """ 3 3 4 pass 4 # Add path of package to PYTHONPATH to allow C-extensions to be loaded 5 import sys 6 sys.path += __path__ 7 8 # Make selected classes available directly 9 from advection import Domain,\ 10 Transmissive_boundary, Dirichlet_boundary 5 11 6 12 7 13 8 -
anuga_core/source/anuga/advection/advection.py
r4978 r5242 157 157 158 158 import advection_ext 159 self. timestep = advection_ext.compute_fluxes(self, Stage, huge_timestep, max_timestep)159 self.flux_timestep = advection_ext.compute_fluxes(self, Stage, huge_timestep, max_timestep) 160 160 161 161 -
anuga_core/source/anuga/advection/test_advection.py
r4978 r5242 143 143 144 144 145 def FIXME_test_advection_example(self):145 def test_advection_example(self): 146 146 #Test that system can evolve 147 147 -
anuga_core/source/anuga_parallel/parallel_advection.py
r3579 r5242 22 22 pass 23 23 24 from anuga.a bstract_2d_finite_volumes.advection_vtkimport *24 from anuga.advection import * 25 25 from Numeric import zeros, Float, Int, ones, allclose, array 26 26 import pypar -
anuga_core/source/anuga_parallel/parallel_meshes.py
r3579 r5242 15 15 16 16 import sys 17 from Numeric import array, zeros, Float, Int 17 from Numeric import array, zeros, Float, Int, ones, sum 18 18 19 19 import pypar 20 20 21 21 from anuga.config import epsilon 22 23 24 22 25 23 26 … … 181 184 ghost_recv_dict[(processor+1)%numproc] = [Idgr, Idgr] 182 185 186 187 188 189 183 190 return points, elements, boundary, full_send_dict, ghost_recv_dict 184 191 -
anuga_core/source/anuga_parallel/print_stats.py
r3954 r5242 50 50 for id in ghost_recv_dict[i][0]: 51 51 tri_full_flag[id] = 0 52 52 53 53 54 return tri_full_flag -
anuga_core/source/anuga_parallel/run_parallel_advection_prof.py
r3579 r5242 76 76 full_send_dict, ghost_recv_dict, velocity=[1.0, 0.0]) 77 77 78 # Turn on the visualisation79 80 # rect = [0.0, 0.0, 1.0, 1.0]81 # domain.initialise_visualiser(rect=rect)82 83 78 # Boundaries 84 79 -
anuga_work/publications/anuga_2007/anuga_validation.tex
r5235 r5242 3 3 \documentclass[12pt,a4paper]{article} 4 4 5 % create a pdf of this doc by using pdflatex 5 % create a pdf of this doc by using pdflatex 6 6 % Do \emph{not} change the width nor the height of the text from the 7 7 % defaults set by this document class. … … 22 22 \usepackage{amsfonts} 23 23 \usepackage{underscore} 24 \usepackage{epstopdf} 24 25 % Avoid loading unused packages (as done by some \LaTeX\ editors). 25 26 … … 34 35 \textsc{Australia}. \protect\url{mailto:Duncan.Gray@ga.gov.au}}\footnotemark[1] 35 36 \and 36 T.~Baldock\thanks{University of Queensland, Brisbane, \textsc{Australia}. 37 T.~Baldock\thanks{University of Queensland, Brisbane, \textsc{Australia}. 37 38 \protect\url{mailto:tom.baldock@uq.edu.au}}\footnotemark[2] 38 39 \and 39 40 O.~M.~Nielsen\footnotemark[1] 40 \and 41 \and 41 42 M.~J.~Sexton\footnotemark[1] 42 43 \and … … 84 85 The core of \ANUGA{} is a \Python{} implementation of a finite-volume method 85 86 for solving the conservative form of the Shallow Water Wave equation. 86 In this paper we describe the model, the architecture and a range of 87 validations that have been carried out to establish confidence in the model. 87 In this paper we describe the model, the architecture and a range of 88 validations that have been carried out to establish confidence in the model. 88 89 89 90 … … 142 143 described in section~\ref{sec:fvm}. A more complete discussion of the 143 144 method can be found in \cite{modsim2005} where the model and solution 144 technique is validated on a standard tsunami benchmark data set 145 technique is validated on a standard tsunami benchmark data set 145 146 or in \cite{Roberts2007} where parallelisation of ANUGA is discussed. 146 147 This modelling capability is part of … … 148 149 understand the potential impact from natural hazards in order to 149 150 reduce their impact on Australian communities (see \cite{Nielsen2006}). 150 \ANUGA{} is currently being trialled for flood 151 \ANUGA{} is currently being trialled for flood 151 152 modelling (see \cite{Rigby2008}). 152 153 … … 482 483 wave specifications. The dataset also contained water depth time 483 484 series from three wave gauges situated offshore from the simulated 484 inundation area. The \ANUGA{} model comprised $41404$ triangles 485 and took about $2000$ s to run on a standard PC or $1500$ s 486 on a 64-bit Opteron 2000 series Linux server. 485 inundation area. The \ANUGA{} model comprised $41404$ triangles 486 and took about $2000$ s to run on a standard PC or $1500$ s 487 on a 64-bit Opteron 2000 series Linux server. 487 488 488 489 Figure~\ref{fig:val} compares the observed wave tank and modelled … … 501 502 This successful replication of the tsunami wave tank simulation on a 502 503 complex 3D beach is a positive first step in validating the \ANUGA{} 503 modelling capability. 504 modelling capability. 504 505 505 506 \subsection{Manning's Friction Model Validation} 506 507 507 508 % Validation UQ friction 508 509 % at X:\anuga_validation\uq_friction_2007 … … 515 516 \end{figure} 516 517 517 The bed friction is modelled in ANUGA using the Manning's 518 The bed friction is modelled in ANUGA using the Manning's 518 519 model. Validation of this model was carried out by comparing results 519 520 from ANUGA against experimental results from flume wave tanks. The 520 521 experiments were carried out at the Gordon McKay Hydraulics Laboratory 521 522 at St Lucia, University of Queensland. 522 523 %The Manning's friction model is 524 525 %To validate the friction model 523 524 %The Manning's friction model is 525 526 %To validate the friction model 526 527 527 528 \subsection{Stage and Velocity Validation in a Flume} … … 566 567 Figure~\ref{fig:uq-flume-depth} show that ANUGA predicts the actual 567 568 water depth very well, with the exception of the fluid tip-region. The 568 water velocity is also predicted accurately. 569 water velocity is also predicted accurately. 569 570 570 571 \subsection{Runup of Solitary wave on circular island wavetank validation}
Note: See TracChangeset
for help on using the changeset viewer.