Changes between Version 5 and Version 6 of ModellingQuestions


Ignore:
Timestamp:
Oct 20, 2008, 1:46:04 PM (16 years ago)
Author:
rwilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ModellingQuestions

    v5 v6  
    106106(as for the {{{run_sydney_smf.py}}} example).
    107107
     108== How can I set the friction in different areas in the domain? ==
     109
     110The model area will typically be estimating the water height and momentum over varying
     111topographies which will have different friction values. One way of assigning
     112different friction values is to create polygons (say {{{poly1, poly2 and poly3}}}) describing each
     113area and then set the corresponding friction values in the following way:
     114
     115{{{domain.set_quantity('friction',Polygon_function([(poly1,f1),(poly2,f2), (poly3,f3))]))}}}
     116
     117The values of {{{f1}}}, {{{f2}}} and {{{f3}}} could be constant or functions
     118as determined by the user.
    108119
    109120
    110