User Tools

Site Tools


walkthrough

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 
 </code> </code>
- 
 ===== 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 ''nprops(i).field = value;'' to assign property ''field'' with value ''value'' to node ''i''. For a full syntax list with all possible inputs, see [[full_syntax#3. Node properties|SPACAR Light syntax]]. Node properties are defined by a structure array to assign properties to nodes, such as boundary conditions, applied loads, and inertia. The usage is ''nprops(i).field = value;'' to assign property ''field'' with value ''value'' to node ''i''. For a full syntax list with all possible inputs, see [[full_syntax#3. Node properties|SPACAR Light syntax]].
Line 51: Line 50:
 Furthermore, we would like for the parallel flexure guide to start 10mm deflected to the left and let it move 20mm to the right. For this purpose, we pre-describe the position of node 2 in x-direction: Furthermore, we would like for the parallel flexure guide to start 10mm deflected to the left and let it move 20mm to the right. For this purpose, we pre-describe the position of node 2 in x-direction:
 <code matlab> <code matlab>
-nprops(2).displ_initial_x =-0.01; %start with node 2 displaced 10mm to the left +nprops(2).displ_initial_x =-0.01; %start with node 2 displaced 10 mm to the left 
-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
 </code> </code>
 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 z-direction  +nprops(2).force_initial = [0 0 5]; %initial load of 5N in z-direction on node 2 
-nprops(3).force_initial = [0 0 5]; %initial load of 5N z-direction +nprops(3).force_initial = [0 0 5]; %initial load of 5N in z-direction on node 3
 </code> </code>
  
walkthrough.txt · Last modified: 2017/10/18 10:51 by marijn.nijenhuis