Changeset 4673
- Timestamp:
- Aug 21, 2007, 6:11:32 PM (18 years ago)
- Location:
- anuga_core/documentation/user_manual
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r4662 r4673 181 181 terrains in the model are represented by predefined forcing terms. 182 182 183 The built-in mesh generator %, called pmesh,183 The built-in mesh generator, called \code{graphical\_mesh\_generator}, 184 184 allows the user to set up the geometry 185 185 of the problem interactively and to identify boundary segments and … … 564 564 to an edge depending on which part of the boundary it belongs to. 565 565 (In Section \ref{sec:realdataexample} we describe an example that 566 uses different boundary tags---in general, the possible tags are not 567 limited to `left', `right', `top' and `bottom', but can be specified 568 by the user.) 566 uses different boundary tags --- in general, the possible tags are entirely selectable by the user when generating the mesh and not 567 limited to `left', `right', `top' and `bottom' as in this example.) 568 All segments in bounding polygon must be tagged. If a tag is not supplied, the default tag name 'exterior' will be assigned by ANUGA. 569 569 570 570 571 Using the boundary objects described above, we assign a boundary … … 575 576 \end{verbatim}} 576 577 577 This statement stipulates that, in the current example, the right 578 It is critical that all tags are assoctiated with a boundary conditing in this statement. If not the program will halt with a statement like 579 580 \begin{verbatim} 581 582 Traceback (most recent call last): 583 File "mesh_test.py", line 114, in ? 584 domain.set_boundary({'west': Bi, 'east': Bo, 'north': Br, 'south': Br}) 585 File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\abstract_2d_finite_volumes\domain.py", line 505, in set_boundary 586 raise msg 587 ERROR (domain.py): Tag "exterior" has not been bound to a boundary object. 588 All boundary tags defined in domain must appear in the supplied dictionary. 589 The tags are: ['ocean', 'east', 'north', 'exterior', 'south'] 590 \end{verbatim} 591 592 593 The command \code{set\_boundary} stipulates that, in the current example, the right 578 594 boundary varies with time, as defined by the lambda function, while the other 579 595 boundaries are all reflective. … … 1045 1061 segments associated with each of these tags. (The value associated 1046 1062 with each boundary tag is a one-element list.) 1063 If polygons intersect, or edges coincide the resolution may be undefined in some regions. 1064 Use the underlying mesh interface for such cases. See Section \ref{sec:mesh_interface}. 1047 1065 1048 1066 … … 1355 1373 \code{pmesh}$\slash$\code{mesh\_interface.py} 1356 1374 \end{center} 1375 \label{sec:mesh_interface} 1357 1376 1358 1377 while in Windows syntax it would be … … 3531 3550 3532 3551 \section{pmesh GUI} 3533 \emph{Pmesh} 3552 The program \code{graphical\_mesh\_generator.py} in the pmesh module 3534 3553 allows the user to set up the mesh of the problem interactively. 3535 3554 It can be used to build the outline of a mesh or to visualise a mesh -
anuga_core/documentation/user_manual/demos/channel3.py
r3982 r4673 19 19 length = 40. 20 20 width = 5. 21 dx = dy = 1 # Resolution: Length of subdivisions on both axes22 #dx = dy = .1 # Resolution: Length of subdivisions on both axes21 #dx = dy = 1 # Resolution: Length of subdivisions on both axes 22 dx = dy = .1 # Resolution: Length of subdivisions on both axes 23 23 24 24 points, vertices, boundary = rectangular_cross(int(length/dx), int(width/dy),
Note: See TracChangeset
for help on using the changeset viewer.