Ignore:
Timestamp:
05/16/11 15:42:41 (14 years ago)
Author:
seroussi
Message:

changed from grid to node in c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/TriaRef.cpp

    r6987 r8303  
    5959void TriaRef::GetBMacAyeal(double* B, double* xyz_list, GaussTria* gauss){
    6060        /*Compute B  matrix. B=[B1 B2 B3] where Bi is of size 3*NDOF2.
    61          * For grid i, Bi can be expressed in the actual coordinate system
     61         * For node i, Bi can be expressed in the actual coordinate system
    6262         * by:
    6363         *       Bi=[ dh/dx           0    ]
    6464         *          [   0           dh/dy  ]
    6565         *          [ 1/2*dh/dy  1/2*dh/dx ]
    66          * where h is the interpolation function for grid i.
     66         * where h is the interpolation function for node i.
    6767         *
    6868         * We assume B has been allocated already, of size: 3x(NDOF2*NUMNODES)
     
    9090
    9191        /*Compute B  matrix. B=[B1 B2 B3] where Bi is of size 3*NDOF2.
    92          * For grid i, Bi can be expressed in the actual coordinate system
     92         * For node i, Bi can be expressed in the actual coordinate system
    9393         * by:
    9494         *       Bi=[   dh/dx         0     ]
    9595         *          [       0       dh/dy   ]
    9696         *          [  1/2*dh/dy  1/2*dh/dx ]
    97          * where h is the interpolation function for grid i.
     97         * where h is the interpolation function for node i.
    9898         *
    9999         * We assume B has been allocated already, of size: 3x(NDOF2*NUMNODES)
     
    158158void TriaRef::GetBPrognostic(double* B_prog, double* xyz_list, GaussTria* gauss){
    159159        /*Compute B  matrix. B=[B1 B2 B3] where Bi is of size 3*NDOF2.
    160          * For grid i, Bi can be expressed in the actual coordinate system
     160         * For node i, Bi can be expressed in the actual coordinate system
    161161         * by:
    162162         *       Bi=[ h ]
    163163         *          [ h ]
    164          * where h is the interpolation function for grid i.
     164         * where h is the interpolation function for node i.
    165165         *
    166166         * We assume B_prog has been allocated already, of size: 2x(NDOF1*NUMNODES)
     
    183183
    184184        /*Compute B'  matrix. B'=[B1' B2' B3'] where Bi' is of size 3*NDOF2.
    185          * For grid i, Bi' can be expressed in the actual coordinate system
     185         * For node i, Bi' can be expressed in the actual coordinate system
    186186         * by:
    187187         *       Bi_prime=[ 2*dh/dx    dh/dy ]
    188188         *                [   dh/dx  2*dh/dy ]
    189189         *                [   dh/dy    dh/dx ]
    190          * where h is the interpolation function for grid i.
     190         * where h is the interpolation function for node i.
    191191         *
    192192         * We assume B' has been allocated already, of size: 3x(NDOF2*NUMNODES)
     
    214214
    215215        /*Compute Bprime  matrix. Bprime=[Bprime1 Bprime2 Bprime3] where Bprimei is of size 3*NDOF2.
    216          * For grid i, Bprimei can be expressed in the actual coordinate system
     216         * For node i, Bprimei can be expressed in the actual coordinate system
    217217         * by:
    218218         *       Bprimei=[  dh/dx    0   ]
     
    220220         *               [  dh/dy  dh/dx ]
    221221         *               [  dh/dx  dh/dy ]
    222          * where h is the interpolation function for grid i.
     222         * where h is the interpolation function for node i.
    223223         *
    224224         * We assume Bprime has been allocated already, of size: 3x(NDOF2*NUMNODES)
     
    247247void TriaRef::GetBprimePrognostic(double* Bprime_prog, double* xyz_list, GaussTria* gauss){
    248248        /*Compute B'  matrix. B'=[B1' B2' B3'] where Bi' is of size 3*NDOF2.
    249          * For grid i, Bi' can be expressed in the actual coordinate system
     249         * For node i, Bi' can be expressed in the actual coordinate system
    250250         * by:
    251251         *       Bi_prime=[ dh/dx ]
    252252         *                [ dh/dy ]
    253          * where h is the interpolation function for grid i.
     253         * where h is the interpolation function for node i.
    254254         *
    255255         * We assume B' has been allocated already, of size: 3x(NDOF2*NUMNODES)
     
    272272void TriaRef::GetL(double* L, double* xyz_list,GaussTria* gauss,int numdof){
    273273        /*Compute L  matrix. L=[L1 L2 L3] where Li is square and of size numdof.
    274          * For grid i, Li can be expressed in the actual coordinate system
     274         * For node i, Li can be expressed in the actual coordinate system
    275275         * by:
    276276         *       numdof=1:
     
    279279         *                 Li=[ h   0 ]
    280280         *                    [ 0   h ]
    281          * where h is the interpolation function for grid i.
     281         * where h is the interpolation function for node i.
    282282         *
    283283         * We assume L has been allocated already, of size: NUMNODES (numdof=1), or numdofx(numdof*NUMNODES) (numdof=2)
Note: See TracChangeset for help on using the changeset viewer.