This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
walkthrough [2017/10/18 10:50] marijn.nijenhuis [Element connectivity] |
walkthrough [2017/10/18 10:51] marijn.nijenhuis [Element properties] |
||
---|---|---|---|
Line 50: | 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 |
</ | </ | ||
Line 67: | Line 67: | ||
<code matlab> | <code matlab> | ||
%% ELEMENT PROPERTIES | %% ELEMENT PROPERTIES | ||
- | |||
%first element property set | %first element property set | ||
- | eprops(1).elems = [1 3]; %assing property set 1 to element | + | eprops(1).elems = [1 3]; %assing property set 1 to elements |
eprops(1).emod = 210e9; | eprops(1).emod = 210e9; | ||
- | eprops(1).smod = 70e9; %G-modulus [Pa] | + | eprops(1).smod = 70e9; %shear modulus [Pa] |
eprops(1).dens = 7800; %density | eprops(1).dens = 7800; %density | ||
- | eprops(1).dim = [0.05 0.0005]; | + | eprops(1).dim = [0.05 0.0005]; |
- | eprops(1).cshape = ' | + | eprops(1).cshape = ' |
- | eprops(1).flex = [2 3 4]; %torsional | + | eprops(1).flex = [2 3 4]; %flexible deformations: |
eprops(1).orien = [0 0 1]; %width-direction of leafspring oriented in z-direction | eprops(1).orien = [0 0 1]; %width-direction of leafspring oriented in z-direction | ||
- | %eprops(1).nbeams | + | eprops(1).color = [0.8549 |
</ | </ | ||
Line 85: | Line 84: | ||
eprops(2).elems = [2]; %assing property set 2 to element 2 | eprops(2).elems = [2]; %assing property set 2 to element 2 | ||
eprops(2).dens = 2700; %density | eprops(2).dens = 2700; %density | ||
- | eprops(2).dim = [0.05 0.025]; | + | eprops(2).dim = [0.05 0.025]; |
- | eprops(2).cshape = ' | + | eprops(2).cshape = ' |
eprops(2).orien = [0 0 1]; %width-direction of leafspring oriented in z-direction | eprops(2).orien = [0 0 1]; %width-direction of leafspring oriented in z-direction | ||
+ | eprops(2).color = [0.1686 | ||
</ | </ | ||
- | |||
====== Run simulation ====== | ====== Run simulation ====== |