Changeset 6423


Ignore:
Timestamp:
10/26/10 08:48:57 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added constraint regularization for Balanced thickness

File:
1 edited

Legend:

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

    r6420 r6423  
    17561756        double      xyz_list[NUMVERTICES][3];
    17571757        double      l1l2l3[3];
     1758        double      dbasis[NDOF2][NUMVERTICES];
     1759        double      dH[2];
    17581760        GaussTria*  gauss=NULL;
    17591761
     
    17761778                GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss);
    17771779                GetNodalFunctions(l1l2l3, gauss);
     1780                GetNodalFunctionsDerivatives(&dbasis[0][0],&xyz_list[0][0],gauss);
    17781781
    17791782                thickness_input->GetParameterValue(&thickness, gauss);
     1783                thickness_input->GetParameterDerivativeValue(&dH[0],&xyz_list[0][0],gauss);
    17801784                thicknessobs_input->GetParameterValue(&thicknessobs, gauss);
    17811785                weights_input->GetParameterValue(&weight, gauss);
    17821786
    17831787                for(i=0;i<numdof;i++) pe->values[i]+=(thicknessobs-thickness)*weight*Jdet*gauss->weight*l1l2l3[i];
     1788                /*Regularization of the constraint: 20000000*/
     1789                //for(i=0;i<numdof;i++) pe->values[i]+= - 1*2000000*dH[0]*dbasis[0][i]*Jdet*gauss->weight;
     1790                //for(i=0;i<numdof;i++) pe->values[i]+= - 1*2000000*dH[1]*dbasis[1][i]*weight*Jdet*gauss->weight;
    17841791        }
    17851792
Note: See TracChangeset for help on using the changeset viewer.