User Tools

Site Tools


parallel_flexure_guide_transfer

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
parallel_flexure_guide_transfer [2020/06/04 12:26]
marijn.nijenhuis
parallel_flexure_guide_transfer [2021/05/05 14:15]
marijn.nijenhuis
Line 69: Line 69:
 eprops(1).elems    = [1 3];            %Add this set of properties to elements 1 and 3 eprops(1).elems    = [1 3];            %Add this set of properties to elements 1 and 3
 eprops(1).emod     = 210e9;            %E-modulus [Pa] eprops(1).emod     = 210e9;            %E-modulus [Pa]
-eprops(1).smod     = 70e9;             %G-modulus [Pa]+eprops(1).smod     = 70e9;             %Shear modulus [Pa]
 eprops(1).dens     = 7800;             %Density [kg/m^3] eprops(1).dens     = 7800;             %Density [kg/m^3]
 eprops(1).cshape   = 'rect';           %Rectangular cross-section eprops(1).cshape   = 'rect';           %Rectangular cross-section
Line 78: Line 78:
 eprops(1).color    = 'grey';           %Color of elements eprops(1).color    = 'grey';           %Color of elements
 eprops(1).opacity  = 0.7;              %Opacity of elements eprops(1).opacity  = 0.7;              %Opacity of elements
-eprops(1).cw       = true;             %Enable (approximate) torsional stiffening due to constraint warping+eprops(1).warping  = true;             %Enable modeling of warping, e.g. for the effect of constrained warping
  
 %Property set 2 %Property set 2
Line 92: Line 92:
 %% OPTIONAL ARGUMENTS %% OPTIONAL ARGUMENTS
 opt.transfer = {true 0.01};       %Calculation of state-space equations (with relative damping 0.01) opt.transfer = {true 0.01};       %Calculation of state-space equations (with relative damping 0.01)
-opt.filename = 'file';+opt.filename = 'file';            %Names of files that are produced
  
 %% CALL SPACAR_LIGHT %% CALL SPACAR_LIGHT
Line 98: Line 98:
  
 %% Plot transfer function %% Plot transfer function
-figure +%set some convenient defaults for the plot. Not necessary, but they can improve the plots 
-bode(out.statespace,{1,10000}) +bodeopt = bodeoptions; 
-grid minor+bodeopt.Title.String = 'Title for this plot'; 
 +bodeopt.FreqUnits = 'Hz'; %default frequency units 
 +bodeopt.Xlim = [1,4000]; %frequency axis limits 
 +bodeopt.Grid = 'on'; %show a grid 
 + 
 +bodeopt.Title.FontSize = 14; %font size for title 
 +bodeopt.XLabel.FontSize = 12; %font size for xlabels 
 +bodeopt.YLabel.FontSize = 12; %font size for ylabels 
 +bodeopt.TickLabel.FontSize = 12; %font size for the ticks (numbers on axes) 
 +bodeopt.InputLabels.FontSize = 12; 
 +bodeopt.OutputLabels.FontSize = 12; 
 + 
 +bodeopt.PhaseMatching = 'on'; %phase matching: adding multiples of 360 so that: 
 +bodeopt.PhaseMatchingFreq = 1; %--at this frequency 
 +bodeopt.PhaseMatchingValue = 0; %--the phase is close to this value 
 + 
 +h = bodeplot(out.statespace,bodeopt); %make the plot
 </code> </code>
parallel_flexure_guide_transfer.txt · Last modified: 2021/05/05 14:17 by marijn.nijenhuis