Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80433451
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, Aug 31, 17:08
Size
501 B
Mime Type
text/x-python
Expires
Mon, Sep 2, 17:08 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20365635
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