Changeset 3179


Ignore:
Timestamp:
Jun 19, 2006, 3:58:37 PM (18 years ago)
Author:
duncan
Message:

Added more pmesh stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r3153 r3179  
    11631163Module: \module{pmesh.mesh}
    11641164
    1165 A class used to store a representation of a two-dimensional
    1166 triangular mesh. The user may initialise the class by specifying
    1167 lists of segments and/or vertices, using the parameters
    1168 \code{userSegments} and \code{userVertices}, and may also specify
    1169 lists of regions and/or holes, using the parameters \code{regions}
    1170 and \code{holes}.
     1165A class used to build a mesh outline and generate a two-dimensional
     1166triangular mesh. The mesh outline is used to describe features on the
     1167mesh, such as the mesh boundary. Many of this classes methods are used
     1168to build a mesh outline, such as \code{add\_vertices} and
     1169\code{add\_region\_from\_polygon}.
     1170
    11711171\end{classdesc}
    11721172
     
    11741174\subsection{Key Methods of Class Mesh}
    11751175
    1176 \begin{methoddesc} {add\_region}{}
     1176
     1177\begin{methoddesc} {add\_hole}{x,y, geo_reference=None}
     1178Module: \module{pmesh.mesh},  Class: \class{Mesh}
     1179
     1180This method is used to build the mesh outline.  It defines a hole,
     1181when the boundary of the hole has already been defined, by selecting a
     1182point within the boundary.
    11771183
    11781184\end{methoddesc}
    11791185
    1180 \begin{methoddesc} {add\_hole}{}
    1181 
     1186
     1187\begin{methoddesc}  {add\_hole\_from\_polygon}{self, polygon, tags=None,
     1188    geo_reference=None}
     1189Module: \module{pmesh.mesh},  Class: \class{Mesh}
     1190
     1191This method is used to add a `hole' within a region ---that is, to
     1192define a interior region where the triangular mesh will not be
     1193generated---to a \class{Mesh} instance. The region boundary is described by
     1194the polygon passed in.  Additionally, the user specifies a list of
     1195boundary tags, one for each edge of the bounding polygon.
    11821196\end{methoddesc}
    11831197
     1198
     1199\begin{methoddesc} {add\_region}{x,y, geo_reference=None}
     1200Module: \module{pmesh.mesh},  Class: \class{Mesh}
     1201
     1202This method is used to build the mesh outline.  It defines a region,
     1203when the boundary of the region has already been defined, by selecting
     1204a point within the boundary.  A region instance is returned.  This can
     1205be used to set the resolution.
     1206
     1207\end{methoddesc}
    11841208
    11851209\begin{methoddesc}  {add\_region\_from\_polygon}{self, polygon, tags=None,
     
    11871211Module: \module{pmesh.mesh},  Class: \class{Mesh}
    11881212
    1189 This method is used to add a region to a \class{Mesh} instance.  The
    1190 region is described by the input \code{polygon}.  Additionally, the
     1213This method is used to build the mesh outline.  It adds a region to a
     1214\class{Mesh} instance.  Regions are commonly used to describe an area
     1215with an increased density of triangles, by setting
     1216\code{max_triangle_area}.  The
     1217region boundary is described by the input \code{polygon}.  Additionally, the
    11911218user specifies a list of boundary tags, one for each edge of the
    11921219bounding polygon.
     
    11951222
    11961223
    1197 \begin{methoddesc}  {add\_hole\_from\_polygon}{self, polygon, tags=None,
    1198     geo_reference=None}
     1224
     1225
     1226
     1227\begin{methoddesc} {add\_vertices}{point_data}
     1228
     1229Add user vertices. The point_data can be a list of (x,y) values, a numeric
     1230array or a geospatial_data instance.
     1231       
     1232\end{methoddesc}
     1233
     1234\begin{methoddesc}  {export\_mesh_file}{self,ofile}
    11991235Module: \module{pmesh.mesh},  Class: \class{Mesh}
    12001236
    1201 % Translate following into layman's language
    1202 This method is used to add a `hole' within a region ---that is, to
    1203 define a interior region where the triangular mesh will not be
    1204 generated---to a \class{Mesh} instance. The region is described by
    1205 the polygon passed in.  Additionally, the user specifies a list of
    1206 boundary tags, one for each edge of the bounding polygon.
     1237This method is used to save the mesh to a file. \code{ofile} is the
     1238name of the mesh file to be written, including the extension.  Use
     1239the extension \code{.msh} for the file to be in NetCDF format and
     1240\code{.tsh} for the file to be ASCII format.
    12071241\end{methoddesc}
    12081242
     
    12131247Module: \module{pmesh.mesh},  Class: \class{Mesh}
    12141248
    1215 % Translate following into layman's language
    12161249This method is used to generate the triangular mesh.  The  maximal
    1217 area of any triangle in the mesh can be specified, along with the
     1250area of any triangle in the mesh can be specified, which is used to
     1251control the triangle density, along with the
    12181252minimum angle in any triangle.
    12191253\end{methoddesc}
    12201254
    12211255
    1222 \begin{methoddesc}  {export\_mesh_file}{self,ofile}
    1223 Module: \module{pmesh.mesh},  Class: \class{Mesh}
    1224 
    1225 % Translate following into layman's language
    1226 This method is used to save the mesh to a file. \code{ofile} is the
    1227 name of the mesh file to be written, including the extension.  Use
    1228 the extension \code{.msh} for the file to be in NetCDF format and
    1229 \code{.tsh} for the file to be ASCII format.
    1230 \end{methoddesc}
    1231 
    12321256
    12331257\begin{methoddesc}  {import_ungenerate_file}{self,ofile, tag=None}
    12341258Module: \module{pmesh.mesh},  Class: \class{Mesh}
    12351259
    1236 % Translate following into layman's language
    12371260This method is used to import a polygon file in the ungenerate
    1238 format, which is used by arcGIS. The polygons are converted to
     1261format, which is used by arcGIS. The polygons from the file are converted to
    12391262vertices and segments. \code{ofile} is the name of the polygon file.
    12401263\code{tag} is the tag given to all the polygon's segments.
Note: See TracChangeset for help on using the changeset viewer.