File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 structure_type = StructureType .CIRCULAR ,
1919 number_of_fibers = 3 ,
2020 fusion_degree = 0.4 ,
21- fiber_radius = 62.5e-6
21+ fiber_radius = 62.5e-6 ,
2222)
2323
24- profile .refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
24+ profile .refractive_index = (
25+ 1.4444 # Refractive index of silica at the specified wavelength
26+ )
2527
2628
2729# Load fibers (e.g., SMF-28) positioned at the cores of the profile structure
2830fiber_loader = FiberLoader ()
2931fibers = [
30- fiber_loader .load_fiber ('SMF28' , clad_refractive_index = profile .refractive_index , position = core_position )
32+ fiber_loader .load_fiber (
33+ "SMF28" , clad_refractive_index = profile .refractive_index , position = core_position
34+ )
3135 for core_position in profile .cores
3236]
3337
3438# Set up the geometry with the defined background, profile structure, and resolution
3539geometry = Geometry (
3640 x_bounds = DomainAlignment .CENTERING ,
3741 y_bounds = DomainAlignment .CENTERING ,
38- resolution = 350
42+ resolution = 350 ,
3943)
4044
4145# Add the fibers to the geometry
4448geometry .initialize ()
4549
4650# Plot the resulting geometry
47- geometry .plot (show_patch = True )
51+ geometry .plot ()
You can’t perform that action at this time.
0 commit comments