| mapc2p.py.html |   | 
| Source file: mapc2p.py | |
| Directory: /Users/rjl/git/rjleveque/clawpack-4.6.2/apps/advection/2d/annulus | |
| Converted: Wed May 30 2012 at 13:01:38 using clawcode2html | |
| This documentation file will not reflect any later changes in the source file. | 
 
def mapc2p(xc,yc):
    """
    Specifies the mapping to curvilinear coordinates -- should be consistent
    with mapc2p.f
    """
    from numpy import sin, cos
    # Polar coordinates (xc = r,  yc = theta)
    xp = xc * cos(yc)
    yp = xc * sin(yc)
    return xp,yp