Module Import alias identifier ImportFrom alias identifier ImportFrom alias alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpAdd BinOpSub BinOpMult BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Return BinOpDiv NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assert CompareEq Call NameLoad NameLoad NameLoad Str Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore IfExp CompareEq AttributeLoad NameLoad attr Num Str Str For NameStore NameLoad body Assert CompareIn NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Num If CompareEq NameLoad Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num orelse If CompareEq NameLoad Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num orelse Raise Call NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore TupleLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Num body AugAssignAdd NameStore TupleLoad Call AttributeLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpAdd NameLoad SubscriptLoad NameLoad Index Num BinOpAdd NameLoad SubscriptLoad NameLoad Index Num attr orelse If CompareEq NameLoad Num body AugAssignAdd NameStore TupleLoad Call AttributeLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpAdd NameLoad SubscriptLoad NameLoad Index Num BinOpAdd NameLoad SubscriptLoad NameLoad Index Num BinOpAdd NameLoad SubscriptLoad NameLoad Index Num attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert CompareIs Call NameLoad NameLoad NameLoad Str Assert CompareIs Call NameLoad NameLoad NameLoad Str Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpSub BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign NameStore Lambda arguments args NameParam defaults BinOpDiv NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad Call NameLoad NameLoad Num If NameLoad body Assign NameStore BinOpDiv BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad orelse If NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad orelse Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpAdd BinOpAdd BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Num Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A numpy np scipy sparse sp matutils mkvc ndgrid sub2ind sdiag volTetra N/A N/A xyz A B C D N/A N/A N/A 
    Returns the volume for tetrahedras volume specified by the indexes A to D.

    :param numpy.array xyz: X,Y,Z vertex vector
    :param numpy.array A,B,C,D: vert index of the tetrahedra
    :rtype: numpy.array
    :return: V, volume of the tetrahedra

    Algorithm http://en.wikipedia.org/wiki/Tetrahedron#Volume

    .. math::

       V = {1 \over 3} A  h

       V = {1 \over 6} | ( a - d ) \cdot ( ( b - d )  ( c - d ) ) |

     N/A AD N/A N/A xyz N/A N/A A N/A N/A xyz N/A N/A D N/A N/A BD N/A N/A xyz N/A N/A B N/A N/A xyz N/A N/A D N/A N/A CD N/A N/A xyz N/A N/A C N/A N/A xyz N/A N/A D N/A N/A V N/A N/A N/A N/A N/A N/A BD N/A N/A N/A 0 N/A CD N/A N/A N/A 1 N/A N/A BD N/A N/A N/A 1 N/A CD N/A N/A N/A 0 N/A AD N/A N/A N/A 2 N/A N/A N/A N/A BD N/A N/A N/A 0 N/A CD N/A N/A N/A 2 N/A N/A BD N/A N/A N/A 2 N/A CD N/A N/A N/A 0 N/A AD N/A N/A N/A 1 N/A N/A N/A N/A BD N/A N/A N/A 1 N/A CD N/A N/A N/A 2 N/A N/A BD N/A N/A N/A 2 N/A CD N/A N/A N/A 1 N/A AD N/A N/A N/A 0 N/A N/A V 6 N/A indexCube N/A N/A nodes gridSize n N/A None N/A N/A 
    Returns the index of nodes on the mesh.


    Input:
       nodes     - string of which nodes to return. e.g. 'ABCD'
       gridSize  - size of the nodal grid
       n         - number of nodes each i,j,k direction: [ni,nj,nk]


    Output:
       index  - index in the order asked e.g. 'ABCD' --> (A,B,C,D)

    TWO DIMENSIONS::

      node(i,j)          node(i,j+1)
           A -------------- B
           |                |
           |    cell(i,j)   |
           |        I       |
           |                |
          D -------------- C
      node(i+1,j)        node(i+1,j+1)


    THREE DIMENSIONS::

            node(i,j,k+1)       node(i,j+1,k+1)
                E --------------- F
               /|               / |
              / |              /  |
             /  |             /   |
      node(i,j,k)         node(i,j+1,k)
           A -------------- B     |
           |    H ----------|---- G
           |   /cell(i,j)   |   /
           |  /     I       |  /
           | /              | /
           D -------------- C
      node(i+1,j,k)      node(i+1,j+1,k)

     N/A N/A N/A type nodes str Nodes must be a str variable: e.g. 'ABCD' N/A N/A isinstance gridSize N/A np ndarray Number of nodes must be an ndarray N/A nodes N/A N/A nodes upper N/A possibleNodes N/A N/A N/A gridSize size 2 ABCD ABCDEFGH N/A node nodes N/A N/A N/A node possibleNodes N/A Nodes must be chosen from: '%s' possibleNodes N/A dim N/A gridSize size N/A N/A n None N/A N/A n N/A gridSize 1 N/A N/A dim 2 N/A N/A ij N/A ndgrid N/A N/A np arange N/A n N/A 0 N/A N/A np arange N/A n N/A 1 N/A N/A i j N/A N/A ij N/A N/A N/A 0 N/A ij N/A N/A N/A 1 N/A N/A N/A dim 3 N/A N/A ijk N/A ndgrid N/A N/A np arange N/A n N/A 0 N/A N/A np arange N/A n N/A 1 N/A N/A np arange N/A n N/A 2 N/A N/A i j k N/A N/A ijk N/A N/A N/A 0 N/A ijk N/A N/A N/A 1 N/A ijk N/A N/A N/A 2 N/A N/A N/A Exception Only 2 and 3 dimensions supported. N/A nodeMap N/A A B C D E F G H N/A 0 0 0 N/A 0 1 0 N/A 1 1 0 N/A 1 0 0 N/A 0 0 1 N/A 0 1 1 N/A 1 1 1 N/A 1 0 1 N/A out N/A N/A node nodes N/A N/A shift N/A nodeMap N/A node N/A N/A dim 2 N/A N/A out N/A N/A N/A N/A sub2ind gridSize N/A N/A np c_ N/A N/A N/A i N/A shift N/A 0 N/A j N/A shift N/A 1 flatten N/A N/A N/A dim 3 N/A N/A out N/A N/A N/A N/A sub2ind gridSize N/A N/A np c_ N/A N/A N/A i N/A shift N/A 0 N/A j N/A shift N/A 1 N/A k N/A shift N/A 2 flatten N/A out N/A faceInfo N/A N/A xyz A B C D average normalizeNormals N/A True True N/A N/A 
    function [N] = faceInfo(y,A,B,C,D)

       Returns the averaged normal, area, and edge lengths for a given set of faces.

       If average option is FALSE then N is a cell array {nA,nB,nC,nD}


    Input:
       xyz          - X,Y,Z vertex vector
       A,B,C,D      - vert index of the face (counter clockwize)

    Options:
       average      - [true]/false, toggles returning all normals or the average

    Output:
       N            - average face normal or {nA,nB,nC,nD} if average = false
       area         - average face area
       edgeLengths  - exact edge Lengths, 4 column vector [AB, BC, CD, DA]

    see also testFaceNormal testFaceArea

    @author Rowan Cockett

    Last modified on: 2013/07/26

     N/A N/A N/A type average bool average must be a boolean N/A N/A N/A type normalizeNormals bool normalizeNormals must be a boolean N/A AB N/A N/A xyz N/A N/A B N/A N/A xyz N/A N/A A N/A N/A BC N/A N/A xyz N/A N/A C N/A N/A xyz N/A N/A B N/A N/A CD N/A N/A xyz N/A N/A D N/A N/A xyz N/A N/A C N/A N/A DA N/A N/A xyz N/A N/A A N/A N/A xyz N/A N/A D N/A cross N/A N/A X Y N/A N/A N/A N/A N/A np c_ N/A N/A N/A N/A N/A X N/A N/A N/A 1 N/A Y N/A N/A N/A 2 N/A N/A X N/A N/A N/A 2 N/A Y N/A N/A N/A 1 N/A N/A N/A X N/A N/A N/A 2 N/A Y N/A N/A N/A 0 N/A N/A X N/A N/A N/A 0 N/A Y N/A N/A N/A 2 N/A N/A N/A X N/A N/A N/A 0 N/A Y N/A N/A N/A 1 N/A N/A X N/A N/A N/A 1 N/A Y N/A N/A N/A 0 N/A N/A nA N/A cross AB DA N/A nB N/A cross BC AB N/A nC N/A cross CD BC N/A nD N/A cross DA CD N/A length N/A N/A N/A x N/A N/A N/A np sqrt N/A N/A N/A N/A x N/A N/A N/A 0 2 N/A N/A x N/A N/A N/A 1 2 N/A N/A x N/A N/A N/A 2 2 N/A normalize N/A N/A N/A x N/A N/A x N/A N/A np kron N/A N/A np ones N/A 1 N/A N/A x shape N/A 1 N/A mkvc N/A length x 2 N/A average N/A N/A N N/A N/A N/A N/A nA nB nC nD 4 N/A N N/A normalize N N/A N/A normalizeNormals N/A N/A N N/A N/A normalize nA N/A normalize nB N/A normalize nC N/A normalize nD N/A N/A N N/A nA nB nC nD N/A area N/A N/A N/A N/A N/A length nA N/A length nB N/A length nC N/A length nD 4 N/A N/A N area N/A