This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
walkthrough [2017/10/18 10:48] marijn.nijenhuis |
walkthrough [2017/10/18 10:50] marijn.nijenhuis [Node properties] |
||
---|---|---|---|
Line 15: | Line 15: | ||
We start by defining the positions of the nodes where we place the origin at node 1. '' | We start by defining the positions of the nodes where we place the origin at node 1. '' | ||
<code matlab> | <code matlab> | ||
- | clc | + | clear %clear |
- | clear | + | clc %clear |
- | %% NODE POSITIONS | + | % addpath(' |
+ | |||
+ | %some dimensions | ||
L = 0.1; %[m] | L = 0.1; %[m] | ||
W = 0.05; %[m] | W = 0.05; %[m] | ||
+ | |||
%% NODE POSITIONS | %% NODE POSITIONS | ||
nodes = [0 0 0; %node 1 | nodes = [0 0 0; %node 1 | ||
Line 37: | Line 39: | ||
3 4]; %leafspring between node 3 and 4 | 3 4]; %leafspring between node 3 and 4 | ||
</ | </ | ||
- | |||
===== Node properties ===== | ===== Node properties ===== | ||
Node properties are defined by a structure array to assign properties to nodes, such as boundary conditions, applied loads, and inertia. The usage is '' | Node properties are defined by a structure array to assign properties to nodes, such as boundary conditions, applied loads, and inertia. The usage is '' | ||
Line 49: | Line 50: | ||
Furthermore, | Furthermore, | ||
<code matlab> | <code matlab> | ||
- | nprops(2).displ_initial_x =-0.01; %start with node 2 displaced | + | nprops(2).displ_initial_x =-0.01; %start with node 2 displaced |
- | nprops(2).displ_x = 0.02; %displace node 2 20mm to the right | + | nprops(2).displ_x = 0.02; %displace node 2 20 mm to the right |
</ | </ | ||
At last we apply a load of 5N in Z-direction on node 2 and 3 | At last we apply a load of 5N in Z-direction on node 2 and 3 | ||
<code matlab> | <code matlab> | ||
- | nprops(2).force_initial = [0 0 5]; %initial load of 5N i z-direction | + | nprops(2).force_initial = [0 0 5]; %initial load of 5N in z-direction |
- | nprops(3).force_initial = [0 0 5]; %initial load of 5N i z-direction | + | nprops(3).force_initial = [0 0 5]; %initial load of 5N in z-direction |
</ | </ | ||