You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
448 B
15 lines
448 B
%--------------------------
|
|
% @Author: Jingqiao Hu
|
|
% @Date: 2021-03-01 19:43:43
|
|
% @LastEditTime: 2021-05-07 15:21:21
|
|
|
|
% assemble dNe from every micro-ele to global micro dN
|
|
% PARAMETERS: ele is micro-ele-id, gp is gauss point-id
|
|
%--------------------------
|
|
function dNg = assemble_dN(microx, dNe, edofMat, dofid, ele)
|
|
edof = edofMat(ele, :);
|
|
new_edof = dofid(edof);
|
|
|
|
dNg = sparse(9, 3*(microx+1)^3);
|
|
dNg(:, new_edof) = dNe;
|
|
end
|