Changeset 1090 for trunk/src/calc_field_tps.m
- Timestamp:
- Jan 21, 2021, 3:59:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/calc_field_tps.m
r1071 r1090 98 98 DataOut.(FieldNameType)=zeros(nb_sites,1); 99 99 VarAttributeNew{1}.Role='scalar'; 100 case {'curl','div','strain' }100 case {'curl','div','strain','DUDX','DUDY','DVDX','DVDY'} 101 101 check_der=1; 102 102 DataOut.(FieldNameType)=zeros(nb_sites,1); … … 105 105 VarAttribute=[VarAttribute VarAttributeNew]; 106 106 end 107 %Attr_FF.Role='errorflag';108 %VarAttribute=[VarAttribute {Attr_FF}];109 107 FieldName(check_remove)=[]; 110 108 … … 138 136 case 'div(U,V)' 139 137 DataOut.div(ind_sel)=DataOut.div(ind_sel)+EMDX*FieldVar(1:nbvec_sub+3,isub,1)+EMDY *FieldVar(1:nbvec_sub+3,isub,2); 140 % case 'curl_polar(U,V)'141 % DataOut.curl(ind_sel)=DataOut.curl(ind_sel)+(-EMDY *FieldVar(1:nbvec_sub+3,isub,1)+EMDX *(Coord_interp(ind_sel,1).*FieldVar(1:nbvec_sub+3,isub,2)))./Coord_interp(ind_sel,1);142 138 case 'strain(U,V)' 143 139 DataOut.strain(ind_sel)=DataOut.strain(ind_sel)+EMDY*FieldVar(1:nbvec_sub+3,isub,1)+EMDX *FieldVar(1:nbvec_sub+3,isub,2); 140 case 'DUDX(U,V)' 141 DataOut.DUDX(ind_sel)=DataOut.DUDX(ind_sel)+EMDX *FieldVar(1:nbvec_sub+3,isub,1); 142 case 'DUDY(U,V)' 143 DataOut.DUDY(ind_sel)=DataOut.DUDY(ind_sel)+EMDY*FieldVar(1:nbvec_sub+3,isub,1); 144 case 'DVDX(U,V)' 145 DataOut.DVDX(ind_sel)=DataOut.DVDX(ind_sel)+EMDX*FieldVar(1:nbvec_sub+3,isub,2); 146 case 'DVDY(U,V)' 147 DataOut.DVDY(ind_sel)=DataOut.DVDY(ind_sel)+EMDY *FieldVar(1:nbvec_sub+3,isub,2); 144 148 end 145 149 end
Note: See TracChangeset
for help on using the changeset viewer.