# Changeset 2751

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

update to simple example

File:
1 edited

### Legend:

Unmodified
 r2747 {\small \begin{verbatim} h = 0.05 # Constant depth domain.set_quantity('stage', expression = 'elevation + %f' %h) \end{verbatim}} That is, the value of \code{stage} is set to $\code{h} = 0.05$ plus the h = 0.00 # Constant depth domain.set_quantity('stage', -.4) \end{verbatim}} That is, the value of \code{stage} is set to $\code{h} = 0.00$ plus the value of \code{elevation} already defined. Bw = Time_boundary(domain=domain, f=lambda t: [(0.1*sin(t*2*pi)), 0.0, 0.0]) f=lambda t: [(0.1*sin(t*2*pi)-0.3), 0.0, 0.0]) \end{verbatim}} {\small \begin{verbatim} domain.set_boundary({'left': Bd, 'right': Br, 'top': Br, 'bottom': Br}) \end{verbatim}} This statement stipulates that, in the current example, the left boundary is fixed, with an elevation of 0.2, while the other domain.set_boundary({'left': Br, 'right': Bw, 'top': Br, 'bottom': Br}) \end{verbatim}} This statement stipulates that, in the current example, the right boundary varies with time, as defined by the equation, while the other boundaries are all reflective. elevation, $x$-momentum and $y$-momentum, respectively. %{\small \begin{verbatim} %    Bw = Time_boundary(domain=domain, %                f=lambda t: [(0.1*sin(t*2*pi)), 0.0, 0.0]) %\end{verbatim}} {\small \begin{verbatim} Bw = Time_boundary(domain=domain, f=lambda t: [(0.1*sin(t*2*pi)-0.3), 0.0, 0.0]) \end{verbatim}}