Changeset 3179
- Timestamp:
- Jun 19, 2006, 3:58:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r3153 r3179 1163 1163 Module: \module{pmesh.mesh} 1164 1164 1165 A class used to store a representation ofa two-dimensional1166 triangular mesh. The user may initialise the class by specifying1167 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}. 1165 A class used to build a mesh outline and generate a two-dimensional 1166 triangular mesh. The mesh outline is used to describe features on the 1167 mesh, such as the mesh boundary. Many of this classes methods are used 1168 to build a mesh outline, such as \code{add\_vertices} and 1169 \code{add\_region\_from\_polygon}. 1170 1171 1171 \end{classdesc} 1172 1172 … … 1174 1174 \subsection{Key Methods of Class Mesh} 1175 1175 1176 \begin{methoddesc} {add\_region}{} 1176 1177 \begin{methoddesc} {add\_hole}{x,y, geo_reference=None} 1178 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1179 1180 This method is used to build the mesh outline. It defines a hole, 1181 when the boundary of the hole has already been defined, by selecting a 1182 point within the boundary. 1177 1183 1178 1184 \end{methoddesc} 1179 1185 1180 \begin{methoddesc} {add\_hole}{} 1181 1186 1187 \begin{methoddesc} {add\_hole\_from\_polygon}{self, polygon, tags=None, 1188 geo_reference=None} 1189 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1190 1191 This method is used to add a `hole' within a region ---that is, to 1192 define a interior region where the triangular mesh will not be 1193 generated---to a \class{Mesh} instance. The region boundary is described by 1194 the polygon passed in. Additionally, the user specifies a list of 1195 boundary tags, one for each edge of the bounding polygon. 1182 1196 \end{methoddesc} 1183 1197 1198 1199 \begin{methoddesc} {add\_region}{x,y, geo_reference=None} 1200 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1201 1202 This method is used to build the mesh outline. It defines a region, 1203 when the boundary of the region has already been defined, by selecting 1204 a point within the boundary. A region instance is returned. This can 1205 be used to set the resolution. 1206 1207 \end{methoddesc} 1184 1208 1185 1209 \begin{methoddesc} {add\_region\_from\_polygon}{self, polygon, tags=None, … … 1187 1211 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1188 1212 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 1213 This 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 1215 with an increased density of triangles, by setting 1216 \code{max_triangle_area}. The 1217 region boundary is described by the input \code{polygon}. Additionally, the 1191 1218 user specifies a list of boundary tags, one for each edge of the 1192 1219 bounding polygon. … … 1195 1222 1196 1223 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 1229 Add user vertices. The point_data can be a list of (x,y) values, a numeric 1230 array or a geospatial_data instance. 1231 1232 \end{methoddesc} 1233 1234 \begin{methoddesc} {export\_mesh_file}{self,ofile} 1199 1235 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1200 1236 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. 1237 This method is used to save the mesh to a file. \code{ofile} is the 1238 name of the mesh file to be written, including the extension. Use 1239 the extension \code{.msh} for the file to be in NetCDF format and 1240 \code{.tsh} for the file to be ASCII format. 1207 1241 \end{methoddesc} 1208 1242 … … 1213 1247 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1214 1248 1215 % Translate following into layman's language1216 1249 This method is used to generate the triangular mesh. The maximal 1217 area of any triangle in the mesh can be specified, along with the 1250 area of any triangle in the mesh can be specified, which is used to 1251 control the triangle density, along with the 1218 1252 minimum angle in any triangle. 1219 1253 \end{methoddesc} 1220 1254 1221 1255 1222 \begin{methoddesc} {export\_mesh_file}{self,ofile}1223 Module: \module{pmesh.mesh}, Class: \class{Mesh}1224 1225 % Translate following into layman's language1226 This method is used to save the mesh to a file. \code{ofile} is the1227 name of the mesh file to be written, including the extension. Use1228 the extension \code{.msh} for the file to be in NetCDF format and1229 \code{.tsh} for the file to be ASCII format.1230 \end{methoddesc}1231 1232 1256 1233 1257 \begin{methoddesc} {import_ungenerate_file}{self,ofile, tag=None} 1234 1258 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1235 1259 1236 % Translate following into layman's language1237 1260 This method is used to import a polygon file in the ungenerate 1238 format, which is used by arcGIS. The polygons are converted to1261 format, which is used by arcGIS. The polygons from the file are converted to 1239 1262 vertices and segments. \code{ofile} is the name of the polygon file. 1240 1263 \code{tag} is the tag given to all the polygon's segments.
Note: See TracChangeset
for help on using the changeset viewer.