Changeset 2779
- Timestamp:
- Apr 28, 2006, 2:08:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2751 r2779 267 267 268 268 \item a list \code{points} of length $N$, where $N = (m + 1)(n + 1)$, 269 comprising the coordinates $(x, y)$ of each of the $N$ mesh points, 269 comprising the coordinates \code{(x, y)} of each of the $N$ mesh 270 points, 270 271 271 272 \item a list \code{vertices} of length $2mn$ (each entry specifies the three … … 392 393 393 394 {\small \begin{verbatim} 394 h = 0.0 0# Constant depth395 domain.set_quantity('stage', -.4)396 \end{verbatim}} 397 398 That is, the value of \code{stage} is set to $\code{h} = 0.0 0$ plus the399 value of \code{elevation} already defined.395 h = 0.05 # Constant depth 396 domain.set_quantity('stage', expression = 'elevation + %f' %h) 397 \end{verbatim}} 398 399 That is, the value of \code{stage} is set to $\code{h} = 0.05$ plus 400 the value of \code{elevation} already defined. 400 401 401 402 The reader will probably appreciate that this capability to … … 489 490 contains stage and momentum information and can be used with the 490 491 \code{swollen} visualisation package to generate a visual display. 492 See Section \ref{sec:file formats} (page \pageref{sec:file formats}) 493 for more on NetCDF and other file formats. 491 494 492 495 … … 754 757 function is both more complex and more interesting. 755 758 756 The function returns the water displacement for all \code{x} 757 and \code{y} in the domain. The water displacement is a ?? function that depends 758 on the characteristics of the slump (length, thickness, slope, etc), its 759 location (origin) and the depth at that location. 759 The function returns the water displacement for all \code{x} and 760 \code{y} in the domain. The water displacement is a double Gaussian 761 function that depends on the characteristics of the slump (length, 762 thickness, slope, etc), its location (origin) and the depth at that 763 location. 760 764 761 765 … … 1512 1516 northing_min = None, 1513 1517 northing_max = None, 1514 expand_search = False, #To avoid intractable situations (This will be fixed when least_squares gets redesigned)1518 expand_search = False, 1515 1519 verbose = False, 1516 1520 origin = None, 1517 1521 datum = 'WGS84', 1518 format = 'ers'}1522 format = 'ers'} 1519 1523 Module: \module{pyvolution.data\_manager} 1520 1524 … … 1523 1527 1524 1528 1525 \begin{funcdesc}{dem2pts}{???} 1529 \begin{funcdesc}{dem2pts}{basename_in, basename_out=None, 1530 easting_min=None, easting_max=None, 1531 northing_min=None, northing_max=None, 1532 use_cache=False, verbose=False} 1526 1533 Module: \module{pyvolution.data\_manager} 1527 1534 … … 1531 1538 \bigskip 1532 1539 1533 \subsection{Samples} 1534 1535 The following is an excerpt from a CDL representation of the output file \code{bedslope.sww}. 1540 \subsection{SWW and TMS Formats} 1541 1542 The SWW and TMS formats are both NetCDF formats, and are of key 1543 importance for \anuga. 1544 1545 The output from \anuga is stored in an SWW file. The contents may be 1546 viewed using the visualisation tool \code{swollen}, which creates an 1547 on-screen geometric representation. See section \ref{sec:swollen} 1548 (page \pageref{sec:swollen}) in Appendix \ref{ch:supporting_tools} 1549 for more on \code{swollen}. 1550 1551 Alternatively, there are tools, such as \code{ncdump}, that allow 1552 you to convert an NetCDF file into a readable format such as the 1553 Class Definition Language (CDL). The following is an excerpt from a 1554 CDL representation of the output file \file{bedslope.sww} generated 1555 from running the simple example \filename{bedslopephysical.py}. 1536 1556 1537 1557 \verbatiminput{examples/bedslopeexcerpt.cdl} 1558 1559 1560 1561 \subsection{Meshfile Formats} 1562 1563 A meshfile is a file of a specific format used for holding data that 1564 specifies a mesh suitable for use with \anuga. A meshfile can have 1565 one of two formats: it can be either a TSH file, which is an ASCII 1566 file, or an MSH file, which is a NetCDF file. 1567 1568 A meshfile describes the outline of the mesh---the vertices and line 1569 segments that enclose the region in which the mesh is created---and 1570 the triangular mesh itself, which is specified by listing the 1571 triangles and their vertices, and the segments, which are those 1572 sides of the triangles that are associated with boundary conditions. 1573 1574 In addition, a meshfile may contain `holes' and/or `regions'. A hole 1575 or region is defined by specifying a point and a number of segments 1576 that enclose the point. A hole represents an area where no mesh is 1577 to be created, while a region is a labelled area used for defining 1578 properties of a mesh, such as friction values. 1579 1580 A meshfile can also contain a georeference, which describes the 1581 offset of the x,y values eg, the offset of the vertices. 1582 1583 1584 \subsection{} 1538 1585 1539 1586 … … 1602 1649 1603 1650 \chapter{Supporting Tools} 1651 \label{ch:supporting_tools} 1604 1652 1605 1653 This section describes a number of supporting tools, supplied with \anuga, that offer a … … 1658 1706 1659 1707 \section{swollen} 1660 The output generated by \anuga may be viewed by means of the visualisation tool \code{swollen}, 1661 which takes the \code{sww} file output by \anuga and creates a visual representation of the data. 1662 Examples may be seen in Figures \ref{fig:bedslopestart} and \ref{fig:bedslope2}. 1663 To view an \code{sww} file with \code{swollen} in the 1664 Windows environment, you can simply drag the icon representing the file over an icon on the desktop 1665 for the \code{swollen} executable file (or a shortcut to it). Alternatively, you can operate \code{swollen} 1666 from the command line, in both Windows and Linux environments. 1708 \label{sec:swollen} 1709 The output generated by \anuga may be viewed by 1710 means of the visualisation tool \code{swollen}, which takes the 1711 \code{sww} file output by \anuga and creates a visual representation 1712 of the data. Examples may be seen in Figures \ref{fig:bedslopestart} 1713 and \ref{fig:bedslope2}. To view an \code{sww} file with 1714 \code{swollen} in the Windows environment, you can simply drag the 1715 icon representing the file over an icon on the desktop for the 1716 \code{swollen} executable file (or a shortcut to it). Alternatively, 1717 you can operate \code{swollen} from the command line, in both 1718 Windows and Linux environments. 1667 1719 1668 1720 On successful operation, you will see an interactive moving-picture display. You can use keys and the mouse
Note: See TracChangeset
for help on using the changeset viewer.