Code covered by the BSD License
-
[Column]=makecol(data,formatn...
Used with titleblock, from the shape routines.
-
[D, Slope]=displace(x,Moment,...
DISPLACE Displacement of a beam.
-
[NewState]=straintr(StrainSta...
STRAINTR Stress rotation.
-
[PriStrains, IPShearMax, Shea...
PRISTRAIN Principal strains.
-
[PrinciplePlanes]=ppstrain(St...
PPSTRAIN The principle planes of a strain state.
-
[PrinciplePlanes]=ppstress(St...
PPSTRESS The principle planes of a stress state.
-
[PrincipleStresses, IPShearMa...
PRISTRESS Principal stresses.
-
[StrainState]=rosette(epsilon...
ROSETTE Converts strain gauge readings to strain state.
-
[]=expandaxis(perleft, perrig...
EXPANDAXIS Extends the current axis in any or all directions.
-
[]=mohrs(StressState, option,...
MOHRS Draws a Mohr's circle.
-
[]=mohrs2(StrainState, option...
MOHRS2 Draws a Mohr's circle.
-
[]=plotSMD(x,shear,moment,dis...
PLOTSMD Plots a Shear Moment and optional Displacement diagram.
-
[]=plotSMSD(x,shear,moment,sl...
PLOTSMSD Plots a Shear, Moment, Slope and Displacement diagram.
-
[]=showvect(vectors)
SHOWVECT Draws a simple diagram showing the input vectors.
-
[]=showx(x,colour)
SHOWX Draws a line across the current axis.
-
[]=showx(y,colour)
SHOWY Draws a line across the current axis.
-
[]=titleblock=titleblock(colu...
TITLEBLOCK Adds two columns of text within the axis border.
-
[angles]=findangle (a,b,c);
FINDANGLE Finds unknown angles of a triangle.
-
[area]=diagramintegral(x,y)
DIAGRAMINTEGRAL Integral of the given numerical data.
-
[degrees]=RD(radians)
RD Changes a matrix of radian measure to a matrix of degree measure.
-
[force, placement]=distload(h...
DISTLOAD Converts a linearly distributed load to a point force.
-
[force,moment]=reaction(vecto...
REACTION Finds the reaction force and moment needed to balance a force.
-
[forces]=fixedfixed(x,s,m,a,L...
FIXEDFIXED Redundant support moments and forces.
-
[forces]=fixedpin(x,s,m,a,End...
FIXEDPIN Redundant support moments and forces.
-
[forces]=pinpin(x,s,m,a,EndSu...
PINPIN Redundant support forces.
-
[hypotenuse]=hyp(x,y)
HYP Finds the hypotenous of a right triangle.
-
[leglength]=leg(knownleg,hypo...
LEG Finds the leg length of a right triangle.
-
[magnitude]=mag(inVector, dir...
MAG Returns the magnitude of a vector.
-
[matrix]=makepins(a,L,support...
MAKEPINS subroutine for redundancy routine.
-
[moment]=summoment(vectors, c...
SUMMOMENT Solves for the moment caused by a set of forces.
-
[num]=cols(m)
COLS Counts the number of columns in a matrix.
-
[num]=rows(m)
ROWS Counts the number of rows in a matrix.
-
[outVector]=opp(inVector)
OPP Returns the equal but opposite vector
-
[outvalue]=interpolate(x,y,in...
INTERPOLATE Linear interpolation for a given value.
-
[pntload]=dist2x(mags, place,...
DIST2X Converts a distributed load to a point force acting in the X.
-
[pntload]=dist2y(mags, place,...
DIST2Y Converts a distributed load to a point force acting in the Y.
-
[radians]=DR(degrees)
DR Changes a matrix of degree measure to a matrix of radian measure.
-
[reactions]=threevector(known...
THREEVECTOR Solves for three force vectors of known direction only.
-
[reactions]=twovec(knowns, un...
TWOVECTOR Solves for two force vectors of known direction only.
-
[result]=channel(b,h,bt,lt,or...
CHANNEL U-shape shape routine.
-
[result]=circle(r,req)
CIRCLE Circle shape routine.
-
[result]=comp(part,req)
COMP Composite shape routine.
-
[result]=halfcircle(r,orient,...
HALFCIRCLE Semicircle shape routine.
-
[result]=hortrap(b,h,a,p,req)
HORTRAP Horizontal trapezoid shape routine.
-
[result]=hortria(b,h,p,req)
HORTRIA Horizontal triangle shape routine.
-
[result]=ibeam(b,h,bt,wt,orie...
IBEAM I-beam shape routine.
-
[result]=lbeam(hl,vl,ht,vt,or...
LBEAM L-beam shape routine.
-
[result]=obeam(od,id,req)
OBEAM Circular tube shape routine.
-
[result]=quartercirc(r,orient...
QUARTERCIRCLE Quarter circle shape routine.
-
[result]=rectangle(b,h,req)
RECTANGLE Rectangular shape routine.
-
[result]=rectangle(b,h,req)
RECTANGLE Rectangular shape routine.
-
[result]=rectube(ob,oh,ib,ih,...
RECTUBE Rectangular tube shape routine.
-
[result]=tbeam(b,h,bt,wt,orie...
TBEAM T-beam shape routine.
-
[result]=vertrap(b,h,a,p,req)
VERTRAP Horizontal trapezoid shape routine.
-
[result]=vertria(b,h,p,req)
VERTRIA Horizontal triangle shape routine.
-
[resultant,couple]=sumforce(v...
SUMFORCE Sums a set of vectors into one force vector and a couple.
-
[resultant]=onevector(knowns)
ONEVECTOR Vector that is the negative of sum of forces acting at a point.
-
[sn,tnt]=stresstr(StressState...
STRESSTR Stress rotation.
-
[value]=ispos(x)
ISPOS True for positive numbers.
-
[value]=matprop (name,constan...
MATPROP Material properties look up.
-
[vector]=deg2xy(inputs)
DEG2XY Converts vectors in degree angles to standard form.
-
[vector]=rad2xy(inputs)
RAD2XY Converts vectors in radian angles to standard form.
-
[vector]=rise2xy(inputs)
RISE2XY Converts vectors in rise-run format to standard form.
-
[vector]=xy2deg(inputs)
XY2DEG Converts vectors in standard form to degree angle form.
-
[vector]=xy2rad(inputs)
XY2RAD Converts vectors in standard form to radian angle form.
-
[x,y]=showcirc (radius,coords...
SHOWCIRC Draws a circle on the current axis.
-
[x,y]=showrect (x,y,coords,co...
SHOWRECT Draws a rectangle on the current axis.
-
[xmag,ymag,xcor,ycor]=breakup...
BREAKUP Breaks a standard form force vector into its component parts.
-
[y]=diagram (x,option,mag,pla...
DIAGRAM Creates vectors for use in plotting of diagrams.
-
move (inVector, coords)
MOVE Changes the coordintes of a vector.
-
rain2ess(StrainState,E,poison...
STRAIN2STRESS Converts strain to stress.
-
stress2strain(StressState,E,p...
STRESS2STRAIN Converts stress to strain.
-
CH0201.m
-
CH0301.m
-
CH0401.m
-
CH0601.m
-
CH0602.m
-
CH0603.m
-
CH0604.m
-
CH0605.m
-
CH0606.m
-
CH1001.m
-
CH1002.m
-
CH1101.m
-
CH1102.m
-
CH1103.m
-
CH1104.m
-
CH1201.m
-
CH1202.m
-
CH1203.m
-
CH1301.m
-
CH1302.m
-
CH1501.m
-
CH2001.m
-
CH2002.m
-
CH2003.m
-
CH2004.m
-
CH2005.m
-
CH2006.m
-
CH2007.m
-
CH2008.m
-
CH2009.m
-
CH2010.m
-
CH2011.m
-
CH2012.m
-
CH2013.m
-
CH2014.m
-
CH2015.m
-
CH2016.m
-
CH2017.m
-
CH2101.m
-
CH2102.m
-
CH2103.m
-
CH2104.m
-
CH2201.m
-
CH2202.m
-
CH2203.m
-
CH2301.m
-
CH2302.m
-
CH2401.m
-
CH2501.m
-
CH2502.m
-
CH2601.m
-
CH2602.m
-
CH2701.m
-
CH2801.m
-
CH2802.m
-
CH2803.m
-
CH2901.m
-
CH2902.m
-
CH2903.m
-
CH2904.m
-
CH2905.m
-
CH2906.m
-
CH2907.m
-
CH2908.m
-
CH2909.m
-
CH2910.m
-
CH2911.m
-
CH2912.m
-
CH3001.m
-
CH3002.m
-
CH3101.m
-
CH3201.m
-
CH3202.m
-
CH3301.m
-
CH3302.m
-
CH3401.m
-
CH3402.m
-
CH3403.m
-
Contents.m
-
Contents.m
-
RunAllCode.m
-
define.m
-
View all files
|
|
| CH2904.m |
Angle=DR(0.2);
Slack=[0.001 0.0015 0]; %meters
PicturedLength=[0.5 0.45 0.7]; %meters
Length=PicturedLength+Slack;%meters %NEEDED
WirePlacement=[0.2 0.5 0.8]; %meters
Horizontal=WirePlacement-cos(Angle)*WirePlacement;
Vertical=PicturedLength+sin(Angle)*PicturedLength;
NewLength=hyp(Horizontal,Vertical);
DeltaL=NewLength-Length; %meters %NEEDED
Radii=[0.01 0.01 0.009]/2;
Area=circle(Radii,'area');%meters^2 %NEEDED
E=[210 200 205]*1e9;%Pascals %NEEDED
Forces=DeltaL.*E.*Area./Length
|
|
Contact us