Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77842360
boundary_condition.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
Fri, Aug 16, 17:58
Size
298 B
Mime Type
text/x-python
Expires
Sun, Aug 18, 17:58 (2 d)
Engine
blob
Format
Raw Data
Handle
19877130
Attached To
rAKA akantu
boundary_condition.py
View Options
#!/usr/bin/env python3
import
math
class
SinBoundary
:
def
__init__
(
self
,
amplitude
,
phase
):
self
.
amplitude
=
amplitude
self
.
phase
=
phase
def
compute
(
self
,
disp
,
coord
,
flags
):
disp
[
1
]
=
-
self
.
amplitude
*
math
.
sin
(
self
.
phase
*
coord
[
1
])
flags
[
1
]
=
True
Event Timeline
Log In to Comment