Changeset 2627
- Timestamp:
- Mar 29, 2006, 1:29:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2626 r2627 1038 1038 \section{Boundary Conditions} 1039 1039 1040 \anuga provides a large number of predefined boundary conditions to 1041 be used with \code{set\_boundary}. 1040 \anuga provides a large number of predefined boundary conditions, represented by 1041 objects such as \code{Reflective\_boundary(domain)} and \code{Dirichlet\_boundary([0.2, 0.0, 0.0])}, 1042 described in the examples in Chapter 2. Alternatively, you may prefer to ``roll 1043 your own'', following the method explained in \ref{sec:roll_your_own}. 1044 1045 These boundary objects may be used with the function \code{set\_boundary} described below 1046 to assign boundary conditions according to the tags used to label boundary segments. 1042 1047 1043 1048 \begin{funcdesc}{set\_boundary}{boundary_map} 1044 1049 Module: \code{pyvolution.domain} 1045 1050 1046 Associate boundary objects with tagged boundary segments. 1047 1048 The input \code{boundary\_map} is a dictionary of boundary objects 1049 keyed by symbolic tags. 1050 1051 As result one pointer to a boundary object is stored for each vertex 1052 in the list self.boundary_objects. 1053 More entries may point to the same boundary object 1054 1055 Schematically the mapping is from two dictionaries to one list where 1056 the index is used as pointer to the \code{boundary\_values} arrays 1057 within each quantity. 1051 This function allows you to assign a boundary object (corresponding to a 1052 pre-defined or user-specified boundary condition) to every boundary segment that 1053 has been assigned a particular tag. 1054 1055 This is done by specifying a dictionary \code{boundary\_map}, whose values are the boundary objects 1056 and whose keys are the symbolic tags. 1057 1058 1058 \end{funcdesc} 1059 1059 … … 1113 1113 1114 1114 \subsection{User-defined boundary conditions} 1115 \label{sec:roll_your_own} 1115 1116 [How to roll your own] 1116 1117
Note: See TracChangeset
for help on using the changeset viewer.