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:49] marijn.nijenhuis [Node positions] |
walkthrough [2017/10/18 10:50] marijn.nijenhuis [Node properties] |
||
---|---|---|---|
Line 39: | 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 51: | 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 |
</ | </ | ||