Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88563120
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
Sat, Oct 19, 12:20
Size
298 B
Mime Type
text/x-python
Expires
Mon, Oct 21, 12:20 (2 d)
Engine
blob
Format
Raw Data
Handle
21747752
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