Page MenuHomec4science

boundary_condition.py
No OneTemporary

File Metadata

Created
Sat, Jun 1, 02:27

boundary_condition.py

#!/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