Changeset 4016


Ignore:
Timestamp:
Nov 21, 2006, 11:49:27 AM (18 years ago)
Author:
duncan
Message:

update after meeting about public interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/anuga_user_manual.tex

    r4015 r4016  
    13351335triangles and associates a tag with each.
    13361336
    1337 \refmodindex[pmesh.meshinterface]{pmesh.mesh\_interface}\label{sec:meshgeneration}
     1337%\refmodindex[pmesh.meshinterface]{pmesh.mesh\_interface}\label{sec:meshgeneration}
    13381338
    13391339\begin{funcdesc}  {create\_mesh\_from\_regions}{bounding_polygon,
     
    13721372
    13731373
     1374\subsection{Advanced mesh generation}
     1375
     1376For more control over the creation of the mesh outline, use the
     1377methods of the class \class{Mesh}. 
     1378
    13741379
    13751380\begin{classdesc}  {Mesh}{userSegments=None,
    13761381                 userVertices=None,
    13771382                 holes=None,
    1378                  regions=None,
    1379                  geo_reference=None}
     1383                 regions=None}
    13801384Module: \module{pmesh.mesh}
    13811385
     
    13891393
    13901394
    1391 \subsection{Key Methods of Class Mesh}
    1392 
    1393 
    1394 \begin{methoddesc} {add\_hole}{x,y, geo_reference=None}
     1395\subsubsection{Key Methods of Class Mesh}
     1396
     1397
     1398\begin{methoddesc} {add\_hole}{x,y}
    13951399Module: \module{pmesh.mesh},  Class: \class{Mesh}
    13961400
     
    14021406
    14031407
    1404 \begin{methoddesc}  {add\_hole\_from\_polygon}{self, polygon, tags=None,
    1405     geo_reference=None}
     1408\begin{methoddesc}  {add\_hole\_from\_polygon}{self, polygon, tags=None}
    14061409Module: \module{pmesh.mesh},  Class: \class{Mesh}
    14071410
     
    14181421Module: \module{pmesh.mesh},  Class: \class{Mesh}
    14191422
    1420 This method is used to build the mesh outline. It adds some points and
    1421 segments connecting some points.  A tag for each point can optionally
     1423This method is used to build the mesh outline. It adds points and
     1424segments connecting the points.  A tag for each segment can optionally
    14221425be added.
    14231426
    14241427\end{methoddesc}
    14251428
    1426 \begin{methoddesc} {add\_region}{x,y, geo_reference=None}
     1429\begin{methoddesc} {add\_region}{x,y}
    14271430Module: \module{pmesh.mesh},  Class: \class{Mesh}
    14281431
     
    14351438
    14361439\begin{methoddesc}  {add\_region\_from\_polygon}{self, polygon, tags=None,
    1437                                 max_triangle_area=None, geo_reference=None}
     1440                                max_triangle_area=None}
    14381441Module: \module{pmesh.mesh},  Class: \class{Mesh}
    14391442
     
    14431446\code{max_triangle_area}.  The
    14441447region boundary is described by the input \code{polygon}.  Additionally, the
    1445 user specifies a list of boundary tags, one for each edge of the
     1448user specifies a list of segment tags, one for each edge of the
    14461449bounding polygon.
    14471450
     
    14541457\begin{methoddesc} {add\_vertices}{point_data}
    14551458Module: \module{pmesh.mesh},  Class: \class{Mesh}
     1459
    14561460Add user vertices. The point_data can be a list of (x,y) values, a numeric
    14571461array or a geospatial_data instance.   
     
    14631467                    expand_pinch=expand_pinch}
    14641468Module: \module{pmesh.mesh},  Class: \class{Mesh}
    1465 Add segments between the user vertices to give the vertices an
     1469
     1470Add segments between some of the user vertices to give the vertices an
    14661471outline.  The outline is an alpha shape. This method is
    14671472useful since a set of user vertices need to be outlined by segments
     
    15181523                 other_quantities=None,
    15191524                 tagged_elements=None,
    1520                  geo_reference=None,
    15211525                 use_inscribed_circle=False,
    15221526                 mesh_filename=None,
     
    15321536store and manipulate data associated with a mesh. The mesh is
    15331537specified either by assigning the name of a mesh file to
    1534 \code{source} or by
    1535 \end{classdesc}
    1536 
    1537 \begin{funcdesc}  {pmesh\_to\_domain\_instance}{file_name, DomainClass, use_cache = False, verbose = False}
    1538 Module: \module{abstract\_2d\_finite\_volumes.pmesh2domain}
    1539 
    1540 Once the initial mesh file has been created, this function is
    1541 applied to convert it to a domain object---that is, to a member of
    1542 the special Python class \class{Domain} (or a subclass of
    1543 \class{Domain}), which provides access to properties and methods
    1544 that allow quantities to be set and other operations to be carried
    1545 out.
    1546 
    1547 \code{file\_name} is the name of the mesh file to be converted,
    1548 including the extension. \code{DomainClass} is the class to be
    1549 returned, which must be a subclass of \class{Domain} having the same
    1550 interface as \class{Domain}---in practice, it can usually be set
    1551 simply to \class{Domain}.
    1552 
    1553 This is now superseded by Domain(mesh_filename).
    1554 \end{funcdesc}
     1538\code{source} or by specifying the points, triangle and boundary of the
     1539mesh.
    15551540
    15561541
     
    17641749function will return a tuple of values---one for each quantity.
    17651750
    1766 \code{interpolation\_points} is a list of absolute UTM coordinates
     1751\code{interpolation\_points} is a list of absolute coordinates or a
     1752geospatial object
    17671753for points at which values are sought.
    17681754
     
    18431829
    18441830\begin{methoddesc} {get\_boundary\_tags}{}
    1845 Module: \module{abstract\_2d\_finite\_volumes.mesh}
     1831Module: \module{abstract\_2d\_finite\_volumes.domain}
    18461832
    18471833Returns a list of the available boundary tags.
     
    20142000  \begin{funcdesc}{get\_quantity}{name, location='vertices', indices = None}
    20152001  Module: \module{abstract\_2d\_finite\_volumes.domain}
     2002 
    20162003  Allow access to individual quantities and their methods
    20172004
Note: See TracChangeset for help on using the changeset viewer.