Changeset 2751
- Timestamp:
- Apr 24, 2006, 12:34:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2747 r2751 392 392 393 393 {\small \begin{verbatim} 394 h = 0.0 5# Constant depth395 domain.set_quantity('stage', expression = 'elevation + %f' %h)396 \end{verbatim}} 397 398 That is, the value of \code{stage} is set to $\code{h} = 0.0 5$ plus the394 h = 0.00 # Constant depth 395 domain.set_quantity('stage', -.4) 396 \end{verbatim}} 397 398 That is, the value of \code{stage} is set to $\code{h} = 0.00$ plus the 399 399 value of \code{elevation} already defined. 400 400 … … 415 415 416 416 Bw = Time_boundary(domain=domain, 417 f=lambda t: [(0.1*sin(t*2*pi) ), 0.0, 0.0])417 f=lambda t: [(0.1*sin(t*2*pi)-0.3), 0.0, 0.0]) 418 418 \end{verbatim}} 419 419 … … 446 446 447 447 {\small \begin{verbatim} 448 domain.set_boundary({'left': B d, 'right': Br, 'top': Br, 'bottom': Br})449 \end{verbatim}} 450 451 This statement stipulates that, in the current example, the left452 boundary is fixed, with an elevation of 0.2, while the other448 domain.set_boundary({'left': Br, 'right': Bw, 'top': Br, 'bottom': Br}) 449 \end{verbatim}} 450 451 This statement stipulates that, in the current example, the right 452 boundary varies with time, as defined by the equation, while the other 453 453 boundaries are all reflective. 454 454 … … 458 458 elevation, $x$-momentum and $y$-momentum, respectively. 459 459 460 %{\small \begin{verbatim}461 %Bw = Time_boundary(domain=domain,462 % f=lambda t: [(0.1*sin(t*2*pi)), 0.0, 0.0])463 %\end{verbatim}}460 {\small \begin{verbatim} 461 Bw = Time_boundary(domain=domain, 462 f=lambda t: [(0.1*sin(t*2*pi)-0.3), 0.0, 0.0]) 463 \end{verbatim}} 464 464 465 465
Note: See TracChangeset
for help on using the changeset viewer.