Note
Go to the end to download the full example code.
Effect of core randomization#
from FiberFusing.configuration.line import FusedProfile_02x02 as FusedProfile
from PyOptik import MaterialBank
material = MaterialBank.fused_silica
wavelength = 15.5e-6
structure = FusedProfile(
fiber_radius=62.5e-6,
fusion_degree=0.1,
index=material.compute_refractive_index(wavelength),
)
/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages/PyOptik/material/base_class.py:60: UserWarning: Wavelength range goes from 15.5 µm to 15.5 µm which is outside the allowable range of 209.99999999999997 nm to 6.7 µm µm. [Material: fused_silica]
warnings.warn(
factor = 0
structure.randomize_core_position(random_factor=factor)
structure.plot(show_centers=True, show_cores=True)

<Axes: title={'center': 'Fiber structure'}, xlabel='x-distance [m]', ylabel='y-distance [m]'>
factor = 10e-6
structure.randomize_core_position(random_factor=factor)
structure.plot(show_centers=True, show_cores=True)

<Axes: title={'center': 'Fiber structure'}, xlabel='x-distance [m]', ylabel='y-distance [m]'>
factor = 10e-6
structure.randomize_core_position(random_factor=factor)
structure.plot(show_centers=True, show_cores=True)

<Axes: title={'center': 'Fiber structure'}, xlabel='x-distance [m]', ylabel='y-distance [m]'>
Total running time of the script: (0 minutes 2.998 seconds)