Changeset 4016
- Timestamp:
- Nov 21, 2006, 11:49:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4015 r4016 1335 1335 triangles and associates a tag with each. 1336 1336 1337 \refmodindex[pmesh.meshinterface]{pmesh.mesh\_interface}\label{sec:meshgeneration}1337 %\refmodindex[pmesh.meshinterface]{pmesh.mesh\_interface}\label{sec:meshgeneration} 1338 1338 1339 1339 \begin{funcdesc} {create\_mesh\_from\_regions}{bounding_polygon, … … 1372 1372 1373 1373 1374 \subsection{Advanced mesh generation} 1375 1376 For more control over the creation of the mesh outline, use the 1377 methods of the class \class{Mesh}. 1378 1374 1379 1375 1380 \begin{classdesc} {Mesh}{userSegments=None, 1376 1381 userVertices=None, 1377 1382 holes=None, 1378 regions=None, 1379 geo_reference=None} 1383 regions=None} 1380 1384 Module: \module{pmesh.mesh} 1381 1385 … … 1389 1393 1390 1394 1391 \subs ection{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} 1395 1399 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1396 1400 … … 1402 1406 1403 1407 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} 1406 1409 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1407 1410 … … 1418 1421 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1419 1422 1420 This method is used to build the mesh outline. It adds somepoints and1421 segments connecting some points. A tag for each point can optionally1423 This method is used to build the mesh outline. It adds points and 1424 segments connecting the points. A tag for each segment can optionally 1422 1425 be added. 1423 1426 1424 1427 \end{methoddesc} 1425 1428 1426 \begin{methoddesc} {add\_region}{x,y , geo_reference=None}1429 \begin{methoddesc} {add\_region}{x,y} 1427 1430 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1428 1431 … … 1435 1438 1436 1439 \begin{methoddesc} {add\_region\_from\_polygon}{self, polygon, tags=None, 1437 max_triangle_area=None , geo_reference=None}1440 max_triangle_area=None} 1438 1441 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1439 1442 … … 1443 1446 \code{max_triangle_area}. The 1444 1447 region boundary is described by the input \code{polygon}. Additionally, the 1445 user specifies a list of boundarytags, one for each edge of the1448 user specifies a list of segment tags, one for each edge of the 1446 1449 bounding polygon. 1447 1450 … … 1454 1457 \begin{methoddesc} {add\_vertices}{point_data} 1455 1458 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1459 1456 1460 Add user vertices. The point_data can be a list of (x,y) values, a numeric 1457 1461 array or a geospatial_data instance. … … 1463 1467 expand_pinch=expand_pinch} 1464 1468 Module: \module{pmesh.mesh}, Class: \class{Mesh} 1465 Add segments between the user vertices to give the vertices an 1469 1470 Add segments between some of the user vertices to give the vertices an 1466 1471 outline. The outline is an alpha shape. This method is 1467 1472 useful since a set of user vertices need to be outlined by segments … … 1518 1523 other_quantities=None, 1519 1524 tagged_elements=None, 1520 geo_reference=None,1521 1525 use_inscribed_circle=False, 1522 1526 mesh_filename=None, … … 1532 1536 store and manipulate data associated with a mesh. The mesh is 1533 1537 specified 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 1539 mesh. 1555 1540 1556 1541 … … 1764 1749 function will return a tuple of values---one for each quantity. 1765 1750 1766 \code{interpolation\_points} is a list of absolute UTM coordinates 1751 \code{interpolation\_points} is a list of absolute coordinates or a 1752 geospatial object 1767 1753 for points at which values are sought. 1768 1754 … … 1843 1829 1844 1830 \begin{methoddesc} {get\_boundary\_tags}{} 1845 Module: \module{abstract\_2d\_finite\_volumes. mesh}1831 Module: \module{abstract\_2d\_finite\_volumes.domain} 1846 1832 1847 1833 Returns a list of the available boundary tags. … … 2014 2000 \begin{funcdesc}{get\_quantity}{name, location='vertices', indices = None} 2015 2001 Module: \module{abstract\_2d\_finite\_volumes.domain} 2002 2016 2003 Allow access to individual quantities and their methods 2017 2004
Note: See TracChangeset
for help on using the changeset viewer.