| 108 | == How can I set the friction in different areas in the domain? == |
| 109 | |
| 110 | The model area will typically be estimating the water height and momentum over varying |
| 111 | topographies which will have different friction values. One way of assigning |
| 112 | different friction values is to create polygons (say {{{poly1, poly2 and poly3}}}) describing each |
| 113 | area 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 | |
| 117 | The values of {{{f1}}}, {{{f2}}} and {{{f3}}} could be constant or functions |
| 118 | as determined by the user. |