Changeset 2866 for documentation/user_manual
- Timestamp:
- May 15, 2006, 2:26:21 PM (19 years ago)
- Location:
- documentation/user_manual
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/anuga_user_manual.tex
r2861 r2866 788 788 789 789 790 \emph{NOTE: Will be replaced by domain=Domain(meshname, use_cache=True, verbose=True)}791 792 793 790 {\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) 796 792 \end{verbatim}} 797 793 798 The function \function{pmesh\_to\_domain\_instance} converts a meshfile 794 Providing a filename instead of the lists used in bedslopephysical 795 above causes Domain to convert a meshfile 799 796 \code{meshname} into an instance of the data structure 800 797 \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}.) 798 to 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}.) 807 806 808 807 The following statements specify a basename and data directory, and … … 819 818 820 819 \subsection{Initial Conditions} 821 Quantities for \file{run \_sydney\_smf.py} are set820 Quantities for \file{runsydney.py} are set 822 821 using similar methods to those in \file{bedslopephysical.py}. However, 823 822 in this case, many of the values are read from the auxiliary file … … 857 856 {\small \begin{verbatim} 858 857 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) 862 861 \end{verbatim}} 863 862 -
documentation/user_manual/examples/runsydney.py
r2805 r2866 76 76 77 77 #Create shallow water domain 78 domain = pmesh_to_domain_instance(meshname, Domain, 79 use_cache = True,80 verbose = True)81 #domain = Domain(meshname) 78 79 domain = Domain(meshname, 80 use_cache = True, 81 verbose = True) 82 82 83 83
Note: See TracChangeset
for help on using the changeset viewer.