Ignore:
Timestamp:
Apr 24, 2006, 12:34:32 PM (18 years ago)
Author:
nick
Message:

update to simple example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r2747 r2751  
    392392
    393393{\small \begin{verbatim}
    394     h = 0.05 # Constant depth
    395     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.05$ plus the
     394    h = 0.00 # Constant depth
     395    domain.set_quantity('stage', -.4)
     396\end{verbatim}}
     397
     398That is, the value of \code{stage} is set to $\code{h} = 0.00$ plus the
    399399value of \code{elevation} already defined.
    400400
     
    415415
    416416    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])
    418418\end{verbatim}}
    419419
     
    446446
    447447{\small \begin{verbatim}
    448     domain.set_boundary({'left': Bd, 'right': Br, 'top': Br, 'bottom': Br})
    449 \end{verbatim}}
    450 
    451 This statement stipulates that, in the current example, the left
    452 boundary is fixed, with an elevation of 0.2, while the other
     448    domain.set_boundary({'left': Br, 'right': Bw, 'top': Br, 'bottom': Br})
     449\end{verbatim}}
     450
     451This statement stipulates that, in the current example, the right
     452boundary varies with time, as defined by the equation, while the other
    453453boundaries are all reflective.
    454454
     
    458458elevation, $x$-momentum and $y$-momentum, respectively.
    459459
    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}}
    464464
    465465
Note: See TracChangeset for help on using the changeset viewer.