- Timestamp:
- Aug 9, 2009, 1:20:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r7313 r7342 386 386 In addition, the following statement could be used to state that 387 387 quantities \code{stage}, \code{xmomentum} and \code{ymomentum} are 388 to be stored: 389 390 \begin{verbatim} 391 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 392 \end{verbatim} 393 394 However, this is not necessary, as the above quantities are always stored by default. 388 to be stored at every timestep and \code{elevation} only once at 389 the beginning of the simulation: 390 391 \begin{verbatim} 392 domain.set_quantities_to_be_stored({'stage': 2, 'xmomentum': 2, 'ymomentum': 2, 'elevation': 1}) 393 \end{verbatim} 394 395 However, this is not necessary, as the above is the default behaviour. 395 396 396 397 \subsection{Initial Conditions} … … 1959 1960 data from the SWW files with that of the model internally. 1960 1961 \end{methoddesc} 1962 1963 1964 \begin{methoddesc}{\emph{<domain>}.set_quantities_to_be_stored}{quantity_dictionary} 1965 Module: \module{shallow_water.shallow_water_domain} 1966 1967 Selects quantities that is to be stored in the sww files. 1968 The argument can be None, in which case nothing is stored. 1969 1970 Otherwise, the argument must be a dictionary where the keys are names of quantities 1971 already defined within ANUGA and the values are either 1 or 2. If the value is 1, the quantity 1972 will be stored once at the beginning of the simulation, if the value is 2 it will be stored 1973 at each timestep. The ANUGA default is equivalent to the call 1974 \begin{verbatim} 1975 domain.set_quantities_to_be_stored({'elevation': 1, 1976 'stage': 2, 1977 'xmomentum': 2, 1978 'ymomentum': 2}) 1979 \end{verbatim} 1980 \end{methoddesc} 1981 1961 1982 1962 1983 % Structural methods
Note: See TracChangeset
for help on using the changeset viewer.