forked from Mrunzzz/Advanced-Structural-Analysis-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMD_concen_load_dof.m
26 lines (22 loc) · 958 Bytes
/
MD_concen_load_dof.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function concen_applied_load_dof = MD_load_dof(concen, nnodes)
% Code developed by Mrunmayi Mungekar and Devasmit Dutta
%
% MD_load_dof.m computes the final applied load vector
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Functions Called
% none
% Dictionary of variables
% Input information
% concen = gives the applied load information along each DOF at every node
% nnodes = total number of nodes
%
% Output information
% load_dof = final load_dof vector
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Taking the transpose of concen matrix for getting the loads associated with each DOF at every node along the rows
load_dof = concen';
% Stacking vertically the load data at each node along the rows for obtaining the final applied load vector
concen_applied_load_dof = reshape(load_dof,nnodes*6,1);