-
Notifications
You must be signed in to change notification settings - Fork 0
/
teste_ORTH4.py
69 lines (43 loc) · 926 Bytes
/
teste_ORTH4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- coding: utf-8 -*-
"""
Nome
@author: cesar
@date: Sat Mar 12 01:11:43 2022
Descrição
"""
import pyFEM
from pyFEM.materiais import Material
from pyFEM.elementos import Node, ORTH4
from pyFEM.solver import ManualSolver
a = .10
b = .15
# 2---1
# | |
# 3---0
nos = [Node(0, [a, 0]),
Node(1, [a, b]),
Node(2, [0, b]),
Node(3, [0, 0])]
mat = Material(2e+7, .3, .1)
elem = ORTH4(0, mat, nos)
nos[2].apoio = [True, True]
nos[3].apoio = [True, True]
nos[1].forcas = [0, -100]
solv = ManualSolver(nos, [elem])
solv.calcular()
solv.exportar("testeA")
# 3---2
# | |
# 0---1
nos = [Node(0, [0, 0]),
Node(1, [a, 0]),
Node(2, [a, b]),
Node(3, [0, b])]
mat = Material(2e+7, .3, .1)
elem = ORTH4(0, mat, nos)
nos[0].apoio = [True, True]
nos[3].apoio = [True, True]
nos[2].forcas = [0, -100]
solv = ManualSolver(nos, [elem])
solv.calcular()
solv.exportar("testeB")