From 7cf134896af33a50ad9fcdc37a5719ca5e282e78 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Fri, 27 Apr 2018 13:21:10 +0200 Subject: [PATCH] change run position and debug some typos --- Design_Nass.m | 11 +++++------ Formule_Nass.m | 8 ++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Design_Nass.m b/Design_Nass.m index 8803790..2f10c8d 100644 --- a/Design_Nass.m +++ b/Design_Nass.m @@ -1,5 +1,3 @@ -run Formule_Nass.m - %% Nass height Nass.h = 90 ; %mm @@ -7,7 +5,7 @@ Nass.h = 90 ; %mm BP = struct(); BP.rad.int = 105 ; %mm BP.rad.ext = 152.5 ; %mm -BP.thickness = 20 % mm +BP.thickness = 20; % mm BP.leg.rad = 140 ; %mm BP.leg.ang = 2.5 ; %deg BP.density = 1000 ; %kg/m^3 @@ -17,7 +15,7 @@ BP.color = [0.5 0.5 0.5] ; %rgb TP = struct(); TP.rad.int = 0 ;%mm TP.rad.ext = 150 ; %mm -TP.thickness = 20 % mm +TP.thickness = 20; % mm TP.leg.rad = 140 ; %mm TP.leg.ang = 5 ; %deg TP.density = 1000 ; %kg/m^3 @@ -30,6 +28,7 @@ Leg.rad.top = 10 ; %mm Leg.sphere.bottom = 20 ; % mm Leg.sphere.top = 10 ; % mm Leg.density = 1000 ; %kg/m^3 +Leg.lenght = 0.8*Nass.h; % mm (approximate) Leg.m = Leg.density*2*pi*((Leg.rad.bottom)^2)*(Leg.lenght); %kg Leg.color.bottom = [0.5 0.5 0.5] ; %rgb Leg.color.top = [0.5 0.5 0.5] ; %rgb @@ -43,12 +42,12 @@ SP = struct(); SP.thickness.bottom = 1 ; %mm SP.thickness.top = 1 ; %mm SP.rad.bottom = Leg.rad.bottom ; %mm -SP.rad.top = Leg.rad.ttop ; %mm +SP.rad.top = Leg.rad.top ; %mm SP.height.bottom = 5 ; %mm SP.height.top = 5 ; %mm SP.density.bottom = 1000 ; %kg/m^3 SP.density.top = 1000 ; %kg/m^3 -SP.m = SP.density*2*pi*((SP.rad.bottom)^2)*(SP.height.bottom); %kg +SP.m = SP.density.bottom*2*pi*((SP.rad.bottom)^2)*(SP.height.bottom); %kg SP.color.bottom = [0.5 0.5 0.5] ; %rgb SP.color.top = [0.5 0.5 0.5] ; %rgb SP.k.ax = 5e7 ; % N*m/deg diff --git a/Formule_Nass.m b/Formule_Nass.m index 1269c48..593cbc2 100644 --- a/Formule_Nass.m +++ b/Formule_Nass.m @@ -1,3 +1,11 @@ +%% +clear; +clc; + +%% +run Design_Nass.m + +%% deg2rad = pi/180; x_axis = [1 0 0]; y_axis = [0 1 0];