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
Next revision Both sides next revision
walkthrough [2017/10/18 10:48]
marijn.nijenhuis
walkthrough [2017/10/18 10:50]
marijn.nijenhuis [Element connectivity]
Line 15: Line 15:
 We start by defining the positions of the nodes where we place the origin at node 1. ''nodes'' is an n<sub>n</sub>×3 matrix for //defining the positions of the nodes//. Each row represents a node (there are n<sub>n</sub> nodes). The row number determines the number a node gets. The first column contains the ''x''-coordinate of the node position, the second column the ''y''-coordinate, and the third column the ''z''-coordinate. We start by defining the positions of the nodes where we place the origin at node 1. ''nodes'' is an n<sub>n</sub>×3 matrix for //defining the positions of the nodes//. Each row represents a node (there are n<sub>n</sub> nodes). The row number determines the number a node gets. The first column contains the ''x''-coordinate of the node position, the second column the ''y''-coordinate, and the third column the ''z''-coordinate.
 <code matlab> <code matlab>
-clc    %clear command window +clear   %clear workspace 
-clear  %clear workspace+clc     %clear command window
  
-%% NODE POSITIONS+addpath('spacar'%have this point to the folder where spacar is located 
 + 
 +%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 
 </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]].
walkthrough.txt · Last modified: 2017/10/18 10:51 by marijn.nijenhuis