Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68418394
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
Thu, Jun 27, 07:37
Size
435 B
Mime Type
text/x-python
Expires
Sat, Jun 29, 07:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18543397
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
],
name
=
'res'
)
Event Timeline
Log In to Comment