Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79453488
fracture3.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 26, 11:55
Size
1 KB
Mime Type
text/x-python
Expires
Wed, Aug 28, 11:55 (2 d)
Engine
blob
Format
Raw Data
Handle
20190148
Attached To
R6746 RationalROMPy
fracture3.py
View Options
from
rrompy.hfengines.linear_problem.tridimensional
import
\
MembraneFractureEngine3
as
MFE
from
fracture3_warping
import
fracture3_warping
verb
=
100
mu0
=
[
45.
**
.
5
,
.
7
,
.
075
]
H
=
1.
L
=
.
75
delta
=
.
05
n
=
50
solver
=
MFE
(
mu0
=
mu0
,
H
=
H
,
L
=
L
,
delta
=
delta
,
n
=
n
,
verbosity
=
verb
)
u0
=
solver
.
liftDirichletData
()
uh
=
solver
.
solve
(
mu0
)[
0
]
#solver.plotmesh(figsize = (7.5, 4.5))
#solver.plot(u0, what = 'REAL', figsize = (8, 5))
print
(
solver
.
norm
(
uh
))
#solver.plot(uh, what = 'REAL', figsize = (8, 5))
#solver.plot(solver.residual(mu0, uh)[0], name = 'res',
# what = 'REAL', figsize = (8, 5))
#solver.outParaviewTimeDomain(uh, mu0[0], filename = 'out', folder = True,
# forceNewFile = False)
warps
=
fracture3_warping
(
solver
.
V
.
mesh
(),
L
,
mu0
[
1
],
delta
,
mu0
[
2
])
#solver.plotmesh(warps, figsize = (7.5, 4.5))
#solver.plot(u0, warps, what = 'REAL', figsize = (8, 5))
solver
.
plot
(
uh
,
warps
,
what
=
'REAL'
,
figsize
=
(
8
,
5
))
#solver.plot(solver.residual(mu0, uh)[0], warps, name = 'res',
# what = 'REAL', figsize = (8, 5))
#solver.outParaviewTimeDomain(uh, mu0[0], warps, filename = 'outW',
# folder = True, forceNewFile = False)
Event Timeline
Log In to Comment