next up previous
Next: singlet Up: Reference guide: Previous: polygon

sine

NAME

sine


SYNOPSIS

          sine [-optional link arguments]
             -x x0 -y y0 -d direction -p plength -l nump -a amplitude -h phase_shift


DESCRIPTION

sine creates a sinousoidal curve of immersed boundary points. sine uses two lines or arguments. The first line contains the optional link arguments. The second line contains the sine definitions. Using these definitions, sine defines the sinusoidal curve with the following formulas. Let $\hat x_j$ be discrete points equally spaced in the interval [0,np] and let

\begin{displaymath}
\hat y_j = a \sin (2\pi \hat x_j/p + \phi). \end{displaymath}

Here a is the amplitude, p is the period length, $\phi$ is the phase shift and n is the number of periods. The immersed boundary points are found by a translation and rotation of $(\hat x_j, \hat y_j)$

\begin{displaymath}
x_j = x0 + \cos(\theta)\hat x_j + \sin(\theta)\hat y_j,\end{displaymath}

\begin{displaymath}
y_j = y0 - \sin(\theta)\hat x_j + \cos(\theta)\hat y_j.\end{displaymath}

sine allows for optional link arguments by interpreting the following options.


SEE ALSO

tube, itube, polygon-ray

next up previous
Next: singlet Up: Reference guide: Previous: polygon
David Eyre
6/19/1998