Changeset 2439


Ignore:
Timestamp:
Feb 22, 2006, 4:46:57 PM (19 years ago)
Author:
ole
Message:

From meeting: Ole and Howard

Location:
documentation/user_manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r2434 r2439  
    55%
    66%     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: }
    714
    815
     
    517524\section{Functions and Classes}
    518525
    519 \begin{itemize}
    520 
    521   \item \indexedcode{create_mesh_from_region}: Creates a triangular mesh based on a bounding polygon and
     526\indexedcodeheader{create_mesh_from_region}
     527
     528  Creates a triangular mesh based on a bounding polygon and
    522529  a number of internal polygons. For each polygon the user specifies a resolution---that is, the maximal area
    523530  of triangles in the mesh. The bounding polygon also has symbolic \code{tags} associated with it.   
     
    526533 
    527534  \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.
    541542  \end{itemize}
    542543 
    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.
    546548 
    547549  \textbf{Arguments:}
    548550 
    549551  \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.
    554554    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.
    558556  \end{itemize}
    559557 
    560558 
    561559  \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.
    565562  \end{itemize}
    566563 
    567   \item \indexedcode{file_function}: %in util.py "High priority"
     564\indexedcodeheader{file_function} %in util.py "High priority"
     565
    568566  Reads the time history of spatial data from NetCDF file and returns a callable object.
    569567
    570568  \textbf{Input variables:}
    571569   
    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).
    573573       
    574574       \begin{quote}
     
    606606   
    607607  %  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)}
    610610    which is interpolated from time series defined at vertices of
    611611    triangular mesh (such as those stored in \code{sww} files).
     
    651651   
    652652
    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''
    654654   
    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
    661661
    662662\section{Diagnostics}
     
    743743
    744744\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
    745757
    746758\chapter{Basic \anuga Assumptions}
  • documentation/user_manual/definitions.tex

    r2384 r2439  
    33       
    44\newcommand{\indexedcode}[1]{\code{#1}\index{#1}}
     5\newcommand{\indexedcodeheader}[1]{{\bigskip \Large \bf \code{#1}}\index{#1}\\}
    56\newcommand{\indexedbold}[1]{\textbf{#1}\index{#1}}
    67\newcommand{\anuga}{\textbf{ANUGA}$^{\scriptscriptstyle \copyright}$ v1.0\ }
Note: See TracChangeset for help on using the changeset viewer.