Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64835318
square.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
Wed, May 29, 19:42
Size
428 B
Mime Type
text/x-python
Expires
Fri, May 31, 19:42 (2 d)
Engine
blob
Format
Raw Data
Handle
17965270
Attached To
R6746 RationalROMPy
square.py
View Options
import
numpy
as
np
from
rrompy.hfengines.linear_problem.bidimensional
import
\
HelmholtzSquareDomainProblemEngine
as
HSDPE
verb
=
100
mu0
=
[
4
**
.
5
,
1.5
**
.
5
]
solver
=
HSDPE
(
kappa
=
2.5
,
theta
=
np
.
pi
/
3
,
mu0
=
mu0
,
n
=
50
,
verbosity
=
verb
)
uh
=
solver
.
solve
(
mu0
)[
0
]
solver
.
plotmesh
()
print
(
solver
.
norm
(
uh
))
solver
.
plot
(
uh
)
solver
.
plot
(
solver
.
residual
(
mu0
,
uh
)[
0
],
'res'
)
Event Timeline
Log In to Comment