Professional Documents
Culture Documents
Data Input
Data Input
Data Input
m 1 of 3
function[...
... % solution parameters
sol_param, ...
... % data relative to nodes and nodal loads
n_n, coor_n, load_n, ...
... % data relative to nodal constraints
cons, ...
... % data relative to element materials
tab_mat, ...
... % data relative to element and element loads
element, n_el, conn, mat, load, ...
... % postprocessing parameters
postpro_param] = data_input()
% measure unit: N, m
% job
job = 'plane_linear_elastic_frame';
switch job
case 'plane_linear_elastic_frame'
% number of nodes
n_n = 6;
% nodal coordinates
coor_n = [0,0; 0,3.5; 3.5,7; 8.5,7; 8.5,3.5; 13.5,7]';
% connectivity matrix
conn = [1,2; 2,3; 3,4; 4,5; 4,6]';
% nodal constraints
cons = [ ...
1, 0, 0, 0, 1, 1; ...
1, 0, 0, 0, 0, 1; ...
1, 0, 0, 0, 1, 0; ...
];
m = 0; % [kN*m]
load_n(3,1) = m;
% number of elements
n_el = 5;
% POST-PROCESSING PARAMETERS
postpro_param.displ_scale = displ_scale;
postpro_param.axial_scale = axial_scale;
postpro_param.moment_scale = moment_scale;
postpro_param.shear_scale = shear_scale;
end