Changeset 26133
- Timestamp:
- 03/23/21 12:18:31 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r26132 r26133 2886 2886 2887 2887 /*Intermediaries */ 2888 IssmDouble thickness,Jdet,slope[2] ;2888 IssmDouble thickness,Jdet,slope[2],n; 2889 2889 IssmDouble* xyz_list = NULL; 2890 2890 … … 2900 2900 Input* thickness_input=element->GetInput(ThicknessEnum); _assert_(thickness_input); 2901 2901 Input* surface_input =element->GetInput(SurfaceEnum); _assert_(surface_input); 2902 Input* n_input =element->GetInput(MaterialsRheologyNEnum); _assert_(n_input); 2902 2903 IssmDouble rhog = element->FindParam(MaterialsRhoIceEnum)*element->FindParam(ConstantsGEnum); 2903 2904 … … 2910 2911 thickness_input->GetInputValue(&thickness,gauss); 2911 2912 surface_input->GetInputDerivativeValue(&slope[0],xyz_list,gauss); 2913 n_input->GetInputValue(&n,gauss); 2912 2914 2913 2915 for(int i=0;i<numnodes;i++){ 2914 pe->values[i*2+0]+=-rhog*thickness*slope[0]*Jdet*gauss->weight*basis[i]; 2915 pe->values[i*2+1]+=-rhog*thickness*slope[1]*Jdet*gauss->weight*basis[i]; 2916 pe->values[i+0]+=-rhog*thickness*slope[0]*Jdet*gauss->weight*basis[i]; //F1 2917 pe->values[i+3]+=-rhog*thickness*slope[0]*Jdet*gauss->weight*basis[i]*(n+1)/(n+2); //F2 2918 pe->values[i+6]+=-rhog*thickness*slope[1]*Jdet*gauss->weight*basis[i]; //F3 2919 pe->values[i+9]+=-rhog*thickness*slope[1]*Jdet*gauss->weight*basis[i]*(n+1)/(n+2); //F4 2916 2920 } 2917 2921 }
Note:
See TracChangeset
for help on using the changeset viewer.