summaryrefslogtreecommitdiff
path: root/3588/CH9/EX9.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3588/CH9/EX9.1
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3588/CH9/EX9.1')
-rw-r--r--3588/CH9/EX9.1/EX9_1.savbin0 -> 27528 bytes
-rw-r--r--3588/CH9/EX9.1/EX9_1.sce38
2 files changed, 38 insertions, 0 deletions
diff --git a/3588/CH9/EX9.1/EX9_1.sav b/3588/CH9/EX9.1/EX9_1.sav
new file mode 100644
index 000000000..3c1a674e6
--- /dev/null
+++ b/3588/CH9/EX9.1/EX9_1.sav
Binary files differ
diff --git a/3588/CH9/EX9.1/EX9_1.sce b/3588/CH9/EX9.1/EX9_1.sce
new file mode 100644
index 000000000..88c37414f
--- /dev/null
+++ b/3588/CH9/EX9.1/EX9_1.sce
@@ -0,0 +1,38 @@
+//Clearing console
+clc
+clear
+
+//Intializing Variables
+t = 0.2
+p1x = 0
+p1y = -100
+p2x = 150
+p2y = 0
+
+//nodal force vector arising from the distributed loads in element 1
+k11 = integrate('1-x','x',0,1)
+k12 = integrate('x','x',0,1)
+
+f1 = t*[k11 0;k12 0;0 0;0 k11;0 k12;0 0]*[p1x;p1y]
+
+//nodal force vector arising from the distributed loads in element 2
+k21 = integrate('(2-y)*y/2','y',0,2)
+k22 = integrate('y*y/2','y',0,2)
+k23 = integrate('(2-y)/2','y',0,2)
+k24 = integrate('y/2','y',0,2)
+
+f2 = t*[0 0;k21 0;k22 0;0 k23;0 k24;0 0]*[p2x;p2y]
+
+//nodal force vector arising from the distributed loads
+f = f1+f2
+
+printf('\nResults\n')
+printf('\nNodal force vector arising from the distributed loads for the element f(p) in (lb)')
+printf('\nf1x =%flb',f(1))
+printf('\nf2x =%flb',f(2))
+printf('\nf3x =%flb',f(3))
+printf('\nf1y =%flb',f(4))
+printf('\nf2y =%flb',f(5))
+printf('\nf3y =%flb',f(6))
+
+