Changeset 2439
- Timestamp:
- Feb 22, 2006, 4:46:57 PM (19 years ago)
- Location:
- documentation/user_manual
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2434 r2439 5 5 % 6 6 % http://www.python.org/doc/current/doc/doc.html 7 8 9 %labels 10 %Sections and subsections \label{sec: } 11 %Chapters \label{ch: } 12 %Equations \label{eq: } 13 %Figures \label{fig: } 7 14 8 15 … … 517 524 \section{Functions and Classes} 518 525 519 \ begin{itemize}520 521 \item \indexedcode{create_mesh_from_region}:Creates a triangular mesh based on a bounding polygon and526 \indexedcodeheader{create_mesh_from_region} 527 528 Creates a triangular mesh based on a bounding polygon and 522 529 a number of internal polygons. For each polygon the user specifies a resolution---that is, the maximal area 523 530 of triangles in the mesh. The bounding polygon also has symbolic \code{tags} associated with it. … … 526 533 527 534 \begin{itemize} 528 529 \item the bounding polygon, %do we need to spell out how a polygon is specified? 530 531 \item a dictionary of boundary tags, for all segments of the bounding polygon, 532 \emph{[not clear what the keys and values of this dictionary are]} 533 534 \item the resolution for the bounding polygon, 535 536 \item (optional) a filename, \emph{[what is the file for?]} 537 538 \item a list of 2-tuples \code{(polygon, resolution)}, specifying the interior polygons and their associated 539 resolutions. 540 535 \item the bounding polygon, %do we need to spell out how a polygon is specified? 536 \item a dictionary of boundary tags, for all segments of the bounding polygon, 537 \emph{[not clear what the keys and values of this dictionary are]} 538 \item the resolution for the bounding polygon, 539 \item (optional) a filename, \emph{[what is the file for?]} 540 \item a list of 2-tuples \code{(polygon, resolution)}, specifying the interior polygons and 541 their associated resolutions. 541 542 \end{itemize} 542 543 543 544 545 \item \indexedcode{pmesh_to_domain_instance}: Converts a generated mesh file to a domain object. 544 545 \indexedcodeheader{pmesh_to_domain_instance} 546 547 Converts a generated mesh file to a domain object. 546 548 547 549 \textbf{Arguments:} 548 550 549 551 \begin{itemize} 550 551 \item \code{file_name} is the name of the mesh file to convert, including the extension 552 553 \item \code{DomainClass} is the Class that will be returned. 552 \item \code{file_name} is the name of the mesh file to convert, including the extension 553 \item \code{DomainClass} is the Class that will be returned. 554 554 It must be a subclass of \code{Domain}, with the same interface as domain. 555 556 \item \code{use_cache}: \code{True} means that caching is attempted for the computed domain. 557 555 \item \code{use_cache}: \code{True} means that caching is attempted for the computed domain. 558 556 \end{itemize} 559 557 560 558 561 559 \begin{itemize} 562 \item Mesh file name 563 564 \item Class name, specifying the domain class to be instantiated. 560 \item Mesh file name 561 \item Class name, specifying the domain class to be instantiated. 565 562 \end{itemize} 566 563 567 \item \indexedcode{file_function}: %in util.py "High priority" 564 \indexedcodeheader{file_function} %in util.py "High priority" 565 568 566 Reads the time history of spatial data from NetCDF file and returns a callable object. 569 567 570 568 \textbf{Input variables:} 571 569 572 \code{filename} - Name of \code{sww} or \code{tms} file 570 \code{filename} - Name of \code{sww} or \code{tms} file (see 571 Section \ref{sec:file formats} on page \pageref{sec:file formats} 572 for details about file formats). 573 573 574 574 \begin{quote} … … 606 606 607 607 % See Interpolation function for further documentation 608 609 \item \indexedcode{Interpolation_function} - creates a callable object \code{f(t, id)} or \code{f(t,x,y)}608 \indexedcodeheader{Interpolation_function} 609 Creates a callable object \code{f(t, id)} or \code{f(t,x,y)} 610 610 which is interpolated from time series defined at vertices of 611 611 triangular mesh (such as those stored in \code{sww} files). … … 651 651 652 652 653 \item \indexedcode{set_region} ``Low priority. Will be merged into set\_quantity''653 \indexedcodeheader{set_region} ``Low priority. Will be merged into set\_quantity'' 654 654 655 \item \indexedcode{set_quantity} ``Pretty mature''656 657 \item \indexedcode{set_boundary} ``Pretty mature''658 659 660 \end{itemize} 655 \indexedcodeheader{set_quantity} ``Pretty mature'' 656 657 \indexedcodeheader{set_boundary} ``Pretty mature'' 658 659 660 661 661 662 662 \section{Diagnostics} … … 743 743 744 744 \section{File Formats} 745 \label{sec:file formats} 746 747 748 \[ 749 \left[ 750 \begin{array}{ccr} 751 2 & 4 & 4\\ 752 1 & 1 & 1 753 \end{array} 754 \right] 755 \] 756 745 757 746 758 \chapter{Basic \anuga Assumptions} -
documentation/user_manual/definitions.tex
r2384 r2439 3 3 4 4 \newcommand{\indexedcode}[1]{\code{#1}\index{#1}} 5 \newcommand{\indexedcodeheader}[1]{{\bigskip \Large \bf \code{#1}}\index{#1}\\} 5 6 \newcommand{\indexedbold}[1]{\textbf{#1}\index{#1}} 6 7 \newcommand{\anuga}{\textbf{ANUGA}$^{\scriptscriptstyle \copyright}$ v1.0\ }
Note: See TracChangeset
for help on using the changeset viewer.