(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 4.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 4982, 132]*) (*NotebookOutlinePosition[ 6061, 166]*) (* CellTagsIndexPosition[ 6017, 162]*) (*WindowFrame->Normal*) Notebook[{ Cell["\<\ Internal force & tangent stiffness of 2-node, linearly elastic, CR \ space bar element moving in 3D \ \>", "Text", CellFrame->True, CellMargins->{{11, 9}, {Inherited, Inherited}}, CellLabelMargins->{{7, Inherited}, {Inherited, Inherited}}, ImageRegion->{{-0, 1}, {0, 1}}, FontFamily->"Times New Roman", FontSize->14, Background->RGBColor[1, 0.719951, 0.200015]], Cell["\<\ Internal force vector p = partial of element internal energy wrt \ node displacements\ \>", "Text", CellFrame->True, CellMargins->{{11, 9}, {Inherited, Inherited}}, CellLabelMargins->{{7, Inherited}, {Inherited, Inherited}}, ImageRegion->{{-0, 1}, {0, 1}}, FontSize->14, Background->RGBColor[1, 1, 0]], Cell[TextData[{ "CRSpaceBar2InternalForce[ncoor0_,Em_,A0_,ue_,N0_,sm_,numer_]:=\n \ Module[{X1,Y1,Z1,X2,Y2,Z2,LX,LY,LZ,LL0,L0,x1,y1,z1,x2,y2,z2,\n \ Lx,Ly,Lz,LL,L,Lavg,d,EA,e,dedL,d2edL2,ND,h,p},\n \ {{X1,Y1,Z1},{X2,Y2,Z2}}=ncoor0; {{uX1,uY1,uZ1},{uX2,uY2,uZ2}}=ue; \n \ {LX,LY,LZ}={X2-X1,Y2-Y1,Z2-Z1}; LL0=LX^2+LY^2+LZ^2; L0=Sqrt[LL0];\n \ {{x1,y1,z1},{x2,y2,z2}}=ncoor0+ue; \n {Lx,Ly,Lz}={x2-x1,y2-y1,z2-z1}; \ LL=Lx^2+Ly^2+Lz^2; L=Sqrt[LL];\n d=L-L0; Lavg=(L+L0)/2; e=Null;\n If \ [sm==\"eE\", e=d/L0; dedL=1/L0; d2edL2=0];\n If [sm==\"eG\", \ e=d*Lavg/L0^2; dedL=L/L0^2; d2edL2=1/L0^2];\n If [sm==\"eH\", \ e=Log[L/L0]; dedL=1/L; d2edL2=-1/L^2]; \n If [sm==\"eM\", e=d/Lavg; \ dedL=L0/Lavg^2; d2edL2=L0/Lavg^3]; \n If \ [e==Null,Print[\"CRSpaceBar2Force: Illegal sm arg\"]; Return[Null]];\n \ ND=N0+Em*A0*e;", StyleBox[" ", FontColor->RGBColor[1, 0, 0]], " h={-Lx,-Ly,-Lz,Lx,Ly,Lz}/L; \n p=ND*L0*dedL*h; If [numer,p=N[p]]; \n \ Return[p]]; \n", StyleBox["\n", FontColor->RGBColor[0, 0, 1]], StyleBox["ClearAll[\[Epsilon]]; ncoor0=N[{{0,0,0},{11,10,2}}]; \nEm=5000; \ A0=3; N0=10; numer=True;\nFor [i\[Epsilon]=1, i\[Epsilon]<=4, i\[Epsilon]++, \ \[Epsilon]={0,0.0001,0.01,0.1}[[i\[Epsilon]]];", FontColor->RGBColor[0, 0, 1]], StyleBox["\n ue=N[{{2,3,-4},{-4,-5,8}}*(1+\[Epsilon])^2];", FontColor->RGBColor[0, 0, 1]], StyleBox["\n For [ism=1,ism<=4,ism++, \ sm={\"eE\",\"eG\",\"eH\",\"eM\"}[[ism]];\n \ p=CRSpaceBar2InternalForce[ncoor0,Em,A0,ue,N0,sm,numer];\n Print[\"sm: \ \",sm,\", \[Epsilon]=\",\[Epsilon],\", p=\",p];\n ]];", FontColor->RGBColor[0, 0, 1]] }], "Input", CellFrame->True, CellMargins->{{11, 9}, {Inherited, Inherited}}, CellLabelMargins->{{7, Inherited}, {Inherited, Inherited}}, ImageRegion->{{-0, 1}, {0, 1}}, FontSize->14, Background->RGBColor[0, 1, 0]], Cell["\<\ Tangent stiffness matrix : partial of internal force vector wrt \ node displacements\ \>", "Text", CellFrame->True, CellMargins->{{11, 9}, {Inherited, Inherited}}, CellLabelMargins->{{7, Inherited}, {Inherited, Inherited}}, ImageRegion->{{-0, 1}, {0, 1}}, FontSize->14, Background->RGBColor[1, 1, 0]], Cell["(* To be done as part of Exercises 14.3 and 14.4 *)", "Input", CellFrame->True, CellMargins->{{11, 9}, {Inherited, Inherited}}, CellLabelMargins->{{7, Inherited}, {Inherited, Inherited}}, ImageRegion->{{-0, 1}, {0, 1}}, FontSize->14, Background->RGBColor[0, 1, 0]] }, FrontEndVersion->"4.2 for Macintosh", ScreenRectangle->{{0, 1920}, {0, 1180}}, AutoGeneratedPackage->None, WindowToolbars->{}, CellGrouping->Manual, WindowSize->{821, 1043}, WindowMargins->{{-18, Automatic}, {Automatic, 18}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, MacintoshSystemPageSetup->"\<\ 00<0001804P000000]P2:?oQon82n@960dL5:0?l0080001804P000000]P2:001 0000I00000400`<300000BL?00400@00000000000000060801T1T00000000000 00000000000000000000000000000000\>" ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[1754, 51, 386, 10, 49, "Text"], Cell[2143, 63, 323, 9, 48, "Text"], Cell[2469, 74, 1898, 37, 428, "Input"], Cell[4370, 113, 323, 9, 48, "Text"], Cell[4696, 124, 282, 6, 44, "Input"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)