Changeset 4020


Ignore:
Timestamp:
Nov 21, 2006, 2:56:19 PM (18 years ago)
Author:
ole
Message:

Added example to a docstring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py

    r3963 r4020  
    372372        Valid expressions are limited to operators defined in class Quantity
    373373
    374         Example:
    375 
     374        Examples creating derived quantities:
     375
     376            Depth = domain.create_quantity_from_expression('stage-elevation')
     377
     378            exp = '(xmomentum*xmomentum + ymomentum*ymomentum)**0.5')       
     379            Absolute_momentum = domain.create_quantity_from_expression(exp)
    376380
    377381        """
Note: See TracChangeset for help on using the changeset viewer.