hey everybody,

i’d like to calculate the losses (via EME & FDTD) in s-bend waveguides of different types for different bend radii.

the problem is iam having trouble to define the structures.

for example i’d like to define a sine- or cosine-shaped s-bend. the s-bend example in lumerical is based on bezier curves so that’s not useful.

i tried to use the “custom structure” based on a formula but that didnt work.

the formula for cosine-shaped s-bend is: y(x) = H/2 * [1- cos(x*pi/L)]
the formula for sine-shaped s-bend is: y(x) = x*H/L - H/(2

*pi) * sin(x*2*pi/L)

x is the propagation axis

H refers to the height of the bend

L refers to the length of the bend

anybody got any idea?