Professional Documents
Culture Documents
METODE ELEMEN
HINGGA
2021
Pembahasan MAT
FEM
1
2
PART 1
GID INTERFACE- MAT FEM BEAMS
3
4
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
5
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
6
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
7
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
8
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
9
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
10
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
11
GID Interface – MAT-FEM Beams (Bias January Parmadi 2006545572 – M. Jeva Ikramullah 1706035896 )
PART 2
PROGRAM- MAT FEM BEAMS
EULER BERNOULLI
12
File Utama
Function
GID GID
Input file: Output file:
Beam_EulerBernoulliDD *.flavia.msh
*.m _v1_3.m *.flavia.res
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 13
Beam_Euler Bernoulli_v1.3 Input file example: cant_pun_002.m
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 14
Beam_Euler Bernoulli_v1.3
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 15
Beam_Euler Bernoulli_v1.3
Start Loop Element
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 16
Beam_Euler Bernoulli_v1.3
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 17
Beam_Euler Bernoulli_v1.3
Solve StifMat * u = force
using only the free node Dof
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 18
Beam_Euler Bernoulli_v1.3 - Stress_Beam_EulerBernoulliDD_v1.3
parameter input
parameter output
koordinat dan elemen sebagai variabel global
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 19
Beam_Euler Bernoulli_v1.3 - Stress_Beam_EulerBernoulliDD_v1.3
Looping untuk setiap nodal
Indeks untuk setiap kelipatan elemen
Looping untuk setiap dof
Menghitung equation number
Evaluasi Tegangan
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 20
Beam_Euler Bernoulli_v1.3 - Timing
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 21
Beam_Euler Bernoulli_v1.3 - ToGiD_Beam_EulerBernoulliDD_v1.3
Function ini untuk membuat grafik yang merupakan
representasi hasil pada file utama.
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 22
Beam_Euler Bernoulli_v1.3 - ToGiD_Beam_EulerBernoulliDD_v1.3
Command fprintf berfungsi untuk mengubah
hasil menjadi output data text.
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 23
Beam_Euler Bernoulli_v1.3 - ToGiD_Beam_EulerBernoulliDD_v1.3
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 24
Beam_Euler Bernoulli_v1.3 - ToGiD_Beam_EulerBernoulliDD_v1.3
Program – MAT FEM Beams Euler Bernoulli(Syaiful Rachman 2006546303 & Asri Puspita Sari S. 2006545534) 25
PART 3
PROGRAM- MAT FEM BEAMS
TIMOSHENKO
26
Beam_Timoshenko_v1.3
27
Program – MAT FEM Beams Timoshenko (Erriman Manru / 2006545673)
Beam_Timoshenko_v1.3
29
Program – MAT FEM Beams Timoshenko (Erriman Manru / 2006545673)
Beam_Timoshenko_v1.3
11. Menentukan kondisi batas Dirichlet
30
Program – MAT FEM Beams Timoshenko (Erriman Manru / 2006545673)
Beam_Timoshenko_v1.3
31
Program – MAT FEM Beams Timoshenko (Erriman Manru / 2006545673)
Beam_Timoshenko_v1.3 — Stress_Beam_Timoshenko_v1_3.m
32
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — Stress_Beam_Timoshenko_v1_3.m
33
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — Stress_Beam_Timoshenko_v1_3.m
One Gauss point
Bending strain matrix
Shear strain matrix
Stress evaluation
34
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — ToGiD_Beam_Timoshenko_v1_3.m
35
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — ToGiD_Beam_Timoshenko_v1_3.m
36
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — ToGiD_Beam_Timoshenko_v1_3.m
37
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
Beam_Timoshenko_v1.3 — ToGiD_Beam_Timoshenko_v1_3.m
38
Program – MAT FEM Beams Timoshenko (Daniel Alvin Giovanni S. / 2006545591)
PART 4
VALIDATIONS- MAT FEM BEAMS
EULER BERNOULLI
39
Cara Run dan Validasi:
MAT-FEM BEAMS EULER BERNOULLI Untuk contoh kasus beban terpusat
File output
File input
File Validasi
40
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Cara Run dan Validasi:
MAT-FEM BEAMS EULER BERNOULLI
Step 1. Pada Matlab, buka salah satu file tipe .m dari folder validasi Beam_Euler_BernoulliDD_V1.3_Examples
Step 2. Buka semua file pada folder program Beam_Euler_BernoulliDD_V1.3
Step 3. Run file validasi (Contoh: file cant_pun_002.m)
Step 4. Run file program utama (Beam_EulerBernoulliDD_v1_3.m)
Step 5. Pada command Window, akan muncul tampilan seperti dibawah ini:
Step 7. Run file program utama. Pada command Window, akan muncul tampilan seperti
ini ketika berhasil dijalankan
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080) 41
Cara Run dan Validasi:
MAT-FEM BEAMS EULER BERNOULLI
Step 8. Ketika program berhasil di Run, maka akan muncul file dibawah ini pada folder:
Step 10. Klik Contour Fill>Displacement>Y-Displ untuk kontur dan klik Deformation>Displacement untuk deformasi
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080) 42
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
Input File: Contoh untuk 8 elemen (cant_pun_008.m)
P
L
Diketahui sebuah balok cantilever dengan beban
terpusat P = 5 N, panjang L = 10 m dan properti
material sebagai berikut:
43
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
2 ELEMEN 4 ELEMEN
Hasil run matlab: Hasil run matlab:
44
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
8 ELEMEN 16 ELEMEN
Hasil run matlab: Hasil run matlab:
45
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
32 ELEMEN 64 ELEMEN
Hasil run matlab: Hasil run matlab:
46
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
128 ELEMEN 256 ELEMEN
Hasil run matlab: Hasil run matlab:
47
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 1 – Balok Cantilever dengan Beban Terpusat
KONVERGENSI HASIL
Pada folder validasi Beam_Euler_BernoulliDD_v1.3_Example terdapat file Excel sebagai perbandingan hasil run.
0.05%
% error
0.00%
-0.05%
Dibandingkan dengan
Solusi eksak hasil run -0.10%
0 30 60 90 120 150
Element
Kesimpulan: Nilai displacement maksimum w pada file validasi dan hasil run bernilai sama yaitu -1. Hasil ini juga
sama jika dibandingkan dengan solusi eksak.
48
Program – Validations MAT FEM Beams Euler Bernoulli (Dyah Ayu Aurellia Yasmiin / 1706027080)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
Input File: Contoh untuk 4 elemen (Cantilever_4.m)
Q
L
Diketahui sebuah balok cantilever dengan beban
merata Q = -1 N, panjang L = 4 m dan properti
material sebagai berikut:
49
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
1 ELEMEN 2 ELEMEN
Hasil run matlab: Hasil run matlab:
50
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
4 ELEMEN 8 ELEMEN
Hasil run matlab: Hasil run matlab:
51
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
16 ELEMEN 32 ELEMEN
Hasil run matlab: Hasil run matlab:
52
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
64 ELEMEN 128
Hasil run matlab: Hasil run matlab: ELEMEN
53
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
Contoh Soal 2 – Balok Cantilever dengan Beban Merata
KONVERGENSI HASIL
Pada folder validasi Beam_Euler_BernoulliDD_v1.3_Example terdapat file Excel sebagai perbandingan hasil run.
Kesimpulan: Nilai displacement maksimum w pada file validasi dan hasil run bernilai sama yaitu -3150.
54
Program – Validations MAT FEM Beams Euler Bernoulli (Agus Mudo Prasetyo / 2006545414)
PART 5
VALIDATIONS- MAT FEM
BEAMS TIMOSHENKO
55
Validation – MAT Fem Beams Timoshenko
File Validation Discritization
2 Element
4 Element
8 Element
64 Element
128 Element
256 Element
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 56
Validation – MAT Fem Beams Timoshenko
Soal : Beam dimodelkan dengan perletakan jepit dan beban terpusat pada ujung cantilever
Elemen
Input variabel
Restrain
Point Load
Koordinat nodal
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 57
Validation – MAT Fem Beams Timoshenko
Nodal vertical
displacement
Run Program
Script Utama
Open file dengan ekstension .msh untuk mengeluarkan Cara menampilkan kontur grafik pada GiD
grafik GiD Line thickness > Displacement > Y-Displ
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 58
Validation – MAT Fem Beams Timoshenko
2 Element : cant_pun_T002 4 Element : cant_pun_T002
Minimum nodal vertical displacement pada program MATLAB Minimum nodal vertical displacement pada program MATLAB
1 1
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 59
Validation – MAT Fem Beams Timoshenko
8 Element : cant_pun_T002 16 Element : cant_pun_T002
Minimum nodal vertical displacement pada program MATLAB Minimum nodal vertical displacement pada program MATLAB
1 1
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 60
Validation – MAT Fem Beams Timoshenko
32 Element : cant_pun_T002 64 Element : cant_pun_T002
Minimum nodal vertical displacement pada program MATLAB Minimum nodal vertical displacement pada program MATLAB
1 1
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 61
Validation – MAT Fem Beams Timoshenko
128 Element : cant_pun_T002 256 Element : cant_pun_T002
Minimum nodal vertical displacement pada program MATLAB Minimum nodal vertical displacement pada program MATLAB
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 62
Validation – MAT Fem Beams Timoshenko
Input Data
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 63
Validation – MAT Fem Beams Timoshenko
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 64
Validation – MAT Fem Beams Timoshenko
Validations – MAT FEM Beams Timoshenko (Ida Royana Tambunan 2006545912 & Andreas 1806202992) 65
PART 6
GID INTERFACE- MAT FEM
66
GID INTERFACE MAT FEM
• The 2D elasticity hypotheses are fulfilled (plane stress or plane strain
• Plane stress problems:
Prismatic structure where one dimension (thickness) is much smaller than the other two,
and loads are contained in its mean plane: deep beams, squares with loads in its plane,
buttress dams , etc
67
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM
1. Install GiD
68
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM
2. Download MAT-fem.gid
69
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM
70
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM
71
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM
72
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM – INPUT DATA
Displacement
Constraints Input Nodal Input Surface
Start Create Geometry
(Boundary (Point) Load Load
Condition)
Create MATLAB
Finish Create Mesh Input Material
Input File
73
GID INTERFACE MAT FEM – (Vania Callista / 1706035984)
GID INTERFACE MAT FEM 2D
74
GID INTERFACE MAT FEM – (Imam Taufik Rahmadi / 2006545931)
GID INTERFACE MAT FEM 2D
Example:
75
GID INTERFACE MAT FEM – (Imam Taufik Rahmadi / 2006545931)
PART 7
GID INTERFACE- MAT FEM 3D
76
This program is the practical application of the finite element method to structural analysis were the 2D elasticity
hypotheses are fulfill (plane stress or plane strain). Also the 3D elasticity assumptions are considered.
There are a plenty of structures where you can make use of 2D elasticity hypothesis:
• Plane stress problems: Prismatic structure where one dimension (thickness) is much smaller than the other two,
and loads are contained in its mean plane: deep beams, squares with loads in its plane, buttress dams , etc .
• Plane strain problems: Prismatic structure where one dimension (length) is much greater than the other two,
and loads are uniformly distributed along its entire length: Retaining Walls, gravity dams, piping internal
pressure and various problems ground engineering (tunnels, stress analysis under pads, etc.,).
Moreover, some structures, by their nature, do not allow the use of simplified models, so it is considered as a
three-dimensional solid and the 3D elasticity general theory is used. Practical examples of such situations include
concrete dams or other complex structure.
77
GID INTERFACE - MAT FEM 3D
File Stress
Buka software
GiD, kemudian
pilih Data
problem type
Pindahkan file MAT-fem3D
MAT-fem3D.gid
pada folder
Download MAT-
problem types
fem3D.gid pada
http://www.cimne.co
m/mat-fem/2d3d.asp Anda akan masuk ke menu MAT-fem
dengan interface sebagai berikut
78
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Assign Fix Displacement
79
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Assign Point Load
80
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Assign Surface Load
81
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Assign Material
82
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Generate Mesh
83
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Generate Mesh (alternatif)
84
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Set Problem Unit
85
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
File cantilever.gid
Mengubah tampilan
mode [geometri/mesh]
86
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
File cantilever.gid
87
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
Write Matlab Input File
88
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
89
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D
File gravitydam.gid
90
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D – POST PROCESS
91
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D – POST PROCESS
File gravitydam.msh
Sii-stress Siii-stress
92
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
GID INTERFACE - MAT FEM 3D – POST PROCESS
File gravitydam.msh
Reaction Displacement
93
GID Interface – MAT FEM 3D (Susilo Widyatmoko 2006493871 & Sarah Fatihah Nugroho 200654253)
PART 8
PROGRAM- MAT FEM 2D
94
MAT FEM 2D
Ada 9 file, yaitu
1. Timing : durasi running
2. Constt : constitutive matrix
3. QdStif : kekakuan Quadrilateral
4. QdStrs : stress Quadrilateral
5. Stress : looping tegangan di setiap nodal
Download file ini 6. TrStif : kekakuan Triangular
7. TrStrs : tegangan Triangular
8. ToGiD : utk menghasilkan file .flavia.res ke GiD
9. MATfem : PROGRAM UTAMA
Download file ini juga
Berisi input material, koordinat nodal,
konektivitas elemen, dan sebagainya, dari GiD
1. Datos1: Triangular
2. Ejemplo2Lib : Quadrilateral
3. Test1 :Triangular
4. Test2 : Triangular
5. Test3 : Quadrilateral
95
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
96
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
Plane stress = 1
Properti material: E, v, h, ρ
Fix nodes
Gaya pada nodal
Side load
98
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
99
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
100
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
Point Load
101
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
u = K/F
102
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Program Utama
103
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File QdStif
104
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File QdStif
1/3 Sqrt 3
Titik Gauss
Matriks Jacobian
105
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File QdStrs
Output S
106
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File QdStrs
1/3 Sqrt 3
Looping node 1 - 4
107
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File QdStrs
108
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File ToGiD
Triangular / quadrilateral
109
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File ToGiD
110
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File ToGiD
111
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File ToGiD
Print output tegangan utama
Print output tegangan
112
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File TrStif : TrStif_v1_3.m
113
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File TrStrs : TrStrs_v1_3.m
114
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Constt : constt.m
116
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
MAT FEM 2D
File Stress : Stress_v1_3.m
117
Program – MAT FEM 2D (Alfetra Henoch Tandita 1706036021 & Annisa Ayu Wulandari 2006545515)
PART 9
PROGRAM- MAT FEM 3D
118
MAT-FEM 3D_V1.2
File Data
Function .m :
HeStif3D : Kekakuan & Vektor Gaya Hexahedron
HeStrs3D : Tegangan Hexahedron
Main Program
Function .m :
QdFor3D : Force Vector Quadrilateral
Rotation system : Matriks Rotasi
Stress3D : Looping Tegangan di setiap nodal
TeStif3D : Kekakuan & Vektor Gaya Tetrahedron
TeStrs3D : Tegangan Tetrahedron
timing : Durasi Running
ToGiD3D : Menghasilkan file .flavia.res ke GiD
TrFor3D : Force Vector Triangular
119
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
MAT-FEM 3D_V1.2
Informasi Terkait keperluan apa saja
Data yang perlu di INPUT
Material
Nodal
Elements Inputan file nya
Restrain ada di program
Point Load Validation
Surface Load
120
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650)
Program Utama
tic; % Start clock
ttim = 0; % Initialize time counter
eval(file_name); % Read input file
elements = sortrows(elements);
ttim = timing('Time needed to read the input file',ttim); %Reporting time function t = timing(text,time)
ttim = timing('Time needed to set initial values',ttim); %Reporting time function t = timing(text,time)
121
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
Program Utama
% Element cycle
for ielem = 1 : nelem Looping untuk ke seluruh elemen
end
% End element cycle
ttim = timing('Time to assemble the global system',ttim); %Reporting time function t = timing(text,time)
122
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
Program Utama
% Add global side forces to the force vector
coord = []; % Clear coordinates
nloads = size(surfaceload,1); Inputan Data ada di file validation
if (nloads ~= 0)
nsnod = size(surfaceload,2) - 4;
for i = 1 : nloads
lnods = surfaceload(i,1:nsnod); %Elem. connectivity
coord(1:nsnod,:) = coordinates(lnods(1:nsnod),:); %Elem. coordinates
sidfo(1:3) = surfaceload(i,nsnod+1:nsnod+3);
loc_code = surfaceload(i,nsnod+4);
ttim = timing('Time for apply side and point load',ttim); %Reporting time function t = timing(text,time)
123
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650)
Program Utama
% Apply the Dirichlet conditions and adjust the right hand side
u = sparse( nndof, 1 );
for i = 1 : size(fixnodes,1) Boundary Condition
ieqn = (fixnodes(i,1)-1)*3 + fixnodes(i,2); % Find the equation number
u(ieqn) = fixnodes(i,3); % and store the solution in u
fix(i) = ieqn; % and mark the eq. as a fix value
end
force1 = force - StifMat * u; % Adjust the rhs with the known values
% Compute the solution by solving StifMat * u = force for the remaining
% unknown values of u
FreeNodes = setdiff(1:nndof,fix); % Find the free node list and
% solve for it Deformasi u
u(FreeNodes) = StifMat(FreeNodes,FreeNodes) \ force1(FreeNodes);
ttim = timing('Time to solve the stiffness matrix',ttim); %Reporting time function t = timing(text,time)
ttim = timing('Time to solve the nodal stresses',ttim); %Reporting time function t = timing(text,time)
% Graphic representation
ToGiD3D_v1_2(file_name,u,reaction,Strnod); function ToGiD3D_v1_2(file_name,u,reaction,Strnod)
ttim = timing('Time used to write the solution',ttim); %Reporting time function t = timing(text,time)
itim = toc; %Close last tic
fprintf(1,'\nTotal running time %12.6f \n\n',ttim); %Reporting final time function t = timing(text,time)
124
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
function [M,F] = HeStif3D_v1_2(nodes,dmat,denss)
Hexagon Element pospg = [ -0.577350269189626E+00 , 0.577350269189626E+00 ];
pespg = [ 1.0E+00 , 1.0E+00 ];
%% HeStif3D Evaluates the stiffness matrix and the mass force vector for M = zeros(24,24); Matrix zeros [M]
a fy = zeros(1,8);
% hexahedron element
% for i = 1 : 2
% Parameters: for j = 1 : 2
% for k = 1 : 2
% Input, nodes : Contains the 3D coordinates of the element nodes lcffm = fform(pospg(i),pospg(j),pospg(k)); % SF at gauss point
% dmat : Constitutive matrix lcder = deriv(pospg(i),pospg(j),pospg(k)); % SF Local derivatives
% denss : Density xjacm = lcder*nodes; % Jacobian matrix
% ctder = xjacm\lcder; % SF Cartesian derivates
% Output, M the element local stiffness matrix dvol = det(xjacm)*pespg(i)*pespg(j)*pespg(k);
% F the element local force vector
shape function bmat = [];
fform = @(s,t,v)[(1-s)*(1-t)*(1-v)/8,(1+s)*(1-t)*(1-v)/8,... for inode = 1 : 8 Looping dengan inode : dari node 1 8
(1+s)*(1+t)*(1-v)/8,(1-s)*(1+t)*(1-v)/8,... bmat = [ bmat ,[ctder(1,inode), 0 , 0 ;
(1-s)*(1-t)*(1+v)/8,(1+s)*(1-t)*(1+v)/8,... 0 ,ctder(2,inode), 0 ;
(1+s)*(1+t)*(1+v)/8,(1-s)*(1+t)*(1+v)/8]; 0 , 0 ,ctder(3,inode);
Natural derivative ctder(2,inode),ctder(1,inode), 0 ;
ctder(3,inode), 0 ,ctder(1,inode);
deriv = @(s,t,v)[-(1-t)*(1-v)/8, (1-t)*(1-v)/8,... 0 ,ctder(3,inode),ctder(2,inode)]];
(1+t)*(1-v)/8,-(1+t)*(1-v)/8,... end
-(1-t)*(1+v)/8, (1-t)*(1+v)/8,... Local Stiffness matrix
(1+t)*(1+v)/8,-(1+t)*(1+v)/8 ; M = M + (bmat'*dmat*bmat*dvol);
-(1-s)*(1-v)/8,-(1+s)*(1-v)/8,...
(1+s)*(1-v)/8, (1-s)*(1-v)/8,... fy = fy + lcffm*denss*dvol;
-(1-s)*(1+v)/8,-(1+s)*(1+v)/8,...
(1+s)*(1+v)/8, (1-s)*(1+v)/8 ; end
-(1-s)*(1-t)/8,-(1+s)*(1-t)/8,... end
-(1+s)*(1+t)/8,-(1-s)*(1+t)/8,... end
(1-s)*(1-t)/8, (1+s)*(1-t)/8,... Local force vector
(1+s)*(1+t)/8, (1-s)*(1+t)/8 ]; F = [ 0, 0,-fy(1), 0, 0,-fy(2), 0, 0,-fy(3), 0, 0,-fy(4), ...
0, 0,-fy(5), 0, 0,-fy(6), 0, 0,-fy(7), 0, 0,-fy(8)];
125
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
function F = QdFor3D_v1_2(nodes,force,loc_code)
%% QdFor3D Evaluates the global force vector for a quadrilateral face fx = zeros(1,4);
% fy = zeros(1,4); Matrix kosong
% Parameters: fz = zeros(1,4);
%
% Input, nodes : Contains the 3D coordinates of the element nodes for i = 1 : 2
% force : Side force vector for j = 1 : 2
% loc_code : Local(1) or Global(2) force code lcffm = fform(pospg(i),pospg(j)); % SF at gauss point
% lcder = deriv(pospg(i),pospg(j)); % SF Local derivatives
% Output, F the element local force vector xjacm = lcder*ctxy(1:4,1:2); % Jacobian matrix
darea = det(xjacm)*pespg(i)*pespg(j);
fform = @(s,t)[(1-s-t+s*t)/4,(1+s-t-s*t)/4,(1+s+t+s*t)/4,(1-s+t-s*t)/4];
deriv = @(s,t)[(-1+t)/4,( 1-t)/4,( 1+t)/4,(-1-t)/4; fx = fx + lcffm*darea*force(1);
(-1+s)/4,(-1-s)/4,( 1+s)/4,( 1-s)/4]; fy = fy + lcffm*darea*force(2); Force arah x y z
fz = fz + lcffm*darea*force(3);
pospg = [ -0.577350269189626E+00 , 0.577350269189626E+00 ]; end
pespg = [ 1.0E+00 , 1.0E+00 ]; end
fy = zeros(1,8); Matrix kosong The elemen local force vector
F = [fx(1),fy(1),fz(1),fx(2),fy(2),fz(2),...
Te = Rotation_system_v1_2(nodes); fx(3),fy(3),fz(3),fx(4),fy(4),fz(4)];
ctxy = nodes*Te'; % Rotate coordinates to element mid plane
function Te = Rotation_system_v1_2(cxyz)
if (loc_code == 1)
force = Te'*force';
end
126
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 & Salfa Zarfatina 1706035845)
function S = Stress3D_v1_2(dmat,u)
%% Stress3D Evaluates the stresses at the Gauss points and smooth the % Find the equation number list for the i-th element
% values to the nodes eqnum = []; % Clear the list
% for i =1 : nnode % Node cycle
% Parameters: eqnum = [eqnum,lnods(i)*3-2,lnods(i)*3-1,lnods(i)*3]; % Build eq.
% end % number list
% Input, dmat : Constitutive matrix
% u : Nodal displacements displ = u(eqnum);
%
% Output, S the nodal stress matrix (nnode, nstrs) % Evaluate the elemental stress vector
if (nnode == 4)
global coordinates; ElemStr = TeStrs3D_v1_2(coord,dmat,displ);
global elements; % 4 Nds tetrahedron
for j = 1 : nstrs
nelem = size(elements,1); % Number of elements nodstr(lnods,j) = nodstr(lnods,j) + ElemStr(j);
nnode = size(elements,2); % Number of nodes per element end
npnod = size(coordinates,1); % Number of nodes nodstr(lnods,nstrs+1) = nodstr(lnods,nstrs+1) + 1;
nstrs = 6; else
ElemStr = HeStrs3D_v1_2(coord,dmat,displ);
nodstr = zeros(npnod,nstrs+1); % 8 Nds hexahedron
for j = 1 : nstrs
% Element cycle for k = 1 : nnode
for ielem = 1 : nelem Looping untuk ke seluruh elemen nodstr(lnods(k),j) = nodstr(lnods(k),j) + ElemStr(k,j);
end
% Recover element properties end
lnods = elements(ielem,:); % Elem. connectivity nodstr(lnods,nstrs+1) = nodstr(lnods,nstrs+1) + 1;
coord(1:nnode,:) = coordinates(lnods(1:nnode),:); % Elem. coordinates end
deriv = @(s,t,v)[-1, 1, 0, 0;
-1, 0, 1, 0;
-1, 0, 0, 1];
bmat = [];
for inode = 1 : 4 Looping dengan inode : dari node 1 4
bmat = [ bmat ,[ctder(1,inode), 0 , 0 ;
0 ,ctder(2,inode), 0 ;
0 , 0 ,ctder(3,inode);
ctder(2,inode),ctder(1,inode), 0 ;
ctder(3,inode), 0 ,ctder(1,inode);
0 ,ctder(3,inode),ctder(2,inode)]];
end
128
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
function ToGiD3D_v1_2(file_name,u,reaction,Strnod)
% Mesh File Plotting Bentuk Mesh
fid = fopen(msh_file,'w');
function ToGiD3D_v1_2(file_name,u,reaction,Strnod) fprintf(fid,'### \n');
fprintf(fid,'# MAT-fem3D v1.2 \n');
%% ToGiD3D Writes the postprocess files fprintf(fid,'# \n');
% fprintf(fid,'MESH dimension %3.0f Elemtype %s Nnode %2.0f \n \
% Parameters: n',3,eletyp,nnode);
% fprintf(fid,'coordinates \n');
% Input, file_name : GiD File name for i = 1 : npnod
% u : Nodal displacements fprintf(fid,'%6.0f %12.5d %12.5d %12.5d \n',i,coordinates(i,:));
% reaction : Reactions on fixed nodes end
% Strnod : Nodal Stresses fprintf(fid,'end coordinates \n \n');
% fprintf(fid,'elements \n');
% Output, none if (nnode == 4)
for i = 1 : nelem
global coordinates; fprintf(fid,'%6.0f %6.0f %6.0f %6.0f %6.0f 1 \n',i,elements(i,:));
global elements; end
else
nelem = size(elements,1); % Number of elements for i = 1 : nelem
nnode = size(elements,2); % Number of nodes per element fprintf(fid,'%6.0f %6.0f %6.0f %6.0f %6.0f %6.0f %6.0f %6.0f %6.0f
npnod = size(coordinates,1); % Number of nodes 1 \n',i,elements(i,:));
end
if (nnode == 4) end
eletyp = 'Tetrahedra'; fprintf(fid,'end elements \n \n');
else Type strd Node, Tetra or Hexa
eletyp = 'Hexahedra'; hedra
status = fclose(fid);
end
% Results File Hasil file yang keluar
msh_file = strcat(file_name,'.flavia.msh'); fid = fopen(res_file,'w');
res_file = strcat(file_name,'.flavia.res'); fprintf(fid,'Gid Post Results File 1.0 \n');
fprintf(fid,'### \n');
fprintf(fid,'# MAT-fem3D v1.2 \n');
fprintf(fid,'# \n');
129
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
function ToGiD3D_v1_2(file_name,u,reaction,Strnod)
130
Program – MAT FEM 3D_v1.2 (Nur Hafidz Hidayat 2009493650 )
MAT FEM 3D
File Timing
131
Program – MAT FEM 3D ( Salfa Zarfatina 1706035845)
MAT FEM 3D
File TeStif3D_v1_2
Natural derivative
Shape function di titik gauss
Volume differential
132
Program – MAT FEM 3D (Salfa Zarfatina 1706035845)
MAT FEM 3D
File TeStif3D_v1_2
133
Program – MAT FEM 3D ( Salfa Zarfatina 1706035845)
MAT FEM 3D
File HeStrs3D_v1_2
Natural derivative
134
Program – MAT FEM 3D ( Salfa Zarfatina 1706035845)
MAT FEM 3D
File HeStrs3D_v1_2
Gauss point coordinate values
Gauss point coordinate weights
Matriks Kosong strsg dan extrap
Area differential
Force arah x, y, z
Elemen local force vector
136
Program – MAT FEM 3D ( Salfa Zarfatina 1706035845)
MAT FEM 3D
File Rotation_system_v1_2
Elemen
Vektor (vze)
Vektor (vye)
Panjang Vektor (vye)
Unit vector normal to element surface (vye)
Rotation Matrix
138
Program – MAT FEM 3D (Salfa Zarfatina 1706035845)
PART 10
VALIDATION- MAT FEM 2D
139
MAT FEM 2D
140
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
141
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
142
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
143
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
144
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
145
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
146
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
147
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
MAT FEM 2D
148
Validasi– MAT FEM 2D (Vivin Novi Adryana- 2006546373)
PART 11
VALIDATION- MAT FEM 3D
149
MAT FEM 3D
150
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)
MAT FEM 3D
151
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)
Cara Run:
MAT-FEM 3D
Step 1. Pada Matlab, buka salah satu file Cantilever.m atau Gravity_Dam.m dari folder validasi MAT-fem3D_v1.2_Examples
Step 2. Run file MATfem3D_v1_2 pada folder MAT-fem3D_v1.2
Step 3. Pada command Window, akan muncul tampilan seperti dibawah ini:
Step 5. Ketika program berhasil di Run, maka akan muncul file dibawah ini pada folder:
Restrain
Material Properties
Node
Surface Load
154
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)
MAT FEM 3D
Contoh Soal 1 – Balok Cantilever
Deformasi Arah Z
global Hasil GiD
Deformasi Arah
Z global Hasil
MatLab
155
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)
MAT FEM 3D
Contoh Soal 2 – Gravity Dam Element
Restrain
Material Properties
Node
Surface Load
156
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)
MAT FEM 3D
Contoh Soal 1 – Balok Cantilever
Deformasi Arah Z
global Hasil GiD
Deformasi Arah
Z global Hasil
MatLab
157
Validation – MAT FEM 3D (Imam Nakhrowi 2006545925)