Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120512711
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, Jul 4, 22:17
Size
501 B
Mime Type
text/x-python
Expires
Sun, Jul 6, 22:17 (2 d)
Engine
blob
Format
Raw Data
Handle
27200050
Attached To
rAKA akantu
boundary_condition.py
View Options
#!/usr/bin/env python3
__copyright__
=
(
"Copyright (©) 2020-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)"
"Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)"
)
__license__
=
"LGPLv3"
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