Ignore:
Timestamp:
May 15, 2006, 2:26:21 PM (19 years ago)
Author:
ole
Message:

Implemented Domain(meshfile) variant widely, updated documentation and added more statistics

Location:
documentation/user_manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/anuga_user_manual.tex

    r2861 r2866  
    788788
    789789
    790 \emph{NOTE: Will be replaced by domain=Domain(meshname, use_cache=True, verbose=True)}
    791 
    792 
    793790{\small \begin{verbatim}
    794     domain = pmesh_to_domain_instance(meshname,
    795     Domain, use_cache = True, verbose = True)
     791    domain = Domain(meshname, use_cache=True, verbose=True)
    796792\end{verbatim}}
    797793
    798 The function \function{pmesh\_to\_domain\_instance} converts a meshfile
     794Providing a filename instead of the lists used in bedslopephysical
     795above causes Domain to convert a meshfile
    799796\code{meshname} into an instance of the data structure
    800797\code{domain}, allowing us to use methods like \method{set\_quantity}
    801 to set quantities and to apply other operations. (In principle, the
    802 second argument of \function{pmesh\_to\_domain\_instance} can be any
    803 subclass of \class{Domain}, but for applications involving the
    804 shallow-water wave equation, the second argument of
    805 \function{pmesh\_to\_domain\_instance} can always be set simply to
    806 \class{Domain}.)
     798to set quantities and to apply other operations.
     799
     800%(In principle, the
     801%second argument of \function{pmesh\_to\_domain\_instance} can be any
     802%subclass of \class{Domain}, but for applications involving the
     803%shallow-water wave equation, the second argument of
     804%\function{pmesh\_to\_domain\_instance} can always be set simply to
     805%\class{Domain}.)
    807806
    808807The following statements specify a basename and data directory, and
     
    819818
    820819\subsection{Initial Conditions}
    821 Quantities for \file{run\_sydney\_smf.py} are set
     820Quantities for \file{runsydney.py} are set
    822821using similar methods to those in \file{bedslopephysical.py}. However,
    823822in this case, many of the values are read from the auxiliary file
     
    857856{\small \begin{verbatim}
    858857    domain.set_quantity('elevation',
    859                     filename = project.combineddemname + '.pts',
    860                     use_cache = True,
    861                     verbose = True)
     858                        filename = project.combineddemname + '.pts',
     859                        use_cache = True,
     860                        verbose = True)
    862861\end{verbatim}}
    863862
  • documentation/user_manual/examples/runsydney.py

    r2805 r2866  
    7676
    7777#Create shallow water domain
    78 domain = pmesh_to_domain_instance(meshname, Domain,
    79                                   use_cache = True,
    80                                   verbose = True)
    81 #domain = Domain(meshname)
     78
     79domain = Domain(meshname,
     80                use_cache = True,
     81                verbose = True)                                 
    8282
    8383
Note: See TracChangeset for help on using the changeset viewer.