File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 structure_type = StructureType .CIRCULAR ,
2020 number_of_fibers = 5 ,
2121 fusion_degree = 0.4 ,
22- fiber_radius = 62.5e-6
22+ fiber_radius = 62.5e-6 ,
2323)
2424
25- profile .refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
25+ profile .refractive_index = (
26+ 1.4444 # Refractive index of silica at the specified wavelength
27+ )
2628
2729
2830# Load fibers (e.g., SMF-28) positioned at the cores of the profile structure
2931fiber_loader = FiberLoader ()
3032fibers = [
31- fiber_loader .load_fiber ('SMF28' , clad_refractive_index = profile .refractive_index , position = core_position )
33+ fiber_loader .load_fiber (
34+ "SMF28" , clad_refractive_index = profile .refractive_index , position = core_position
35+ )
3236 for core_position in profile .cores
3337]
3438
3539# Set up the geometry with the defined background, profile structure, and resolution
3640geometry = Geometry (
3741 x_bounds = DomainAlignment .CENTERING ,
3842 y_bounds = DomainAlignment .CENTERING ,
39- resolution = 250
43+ resolution = 250 ,
4044)
4145
4246# Add the fibers to the geometry
4549geometry .initialize ()
4650
4751# Plot the resulting geometry
48- geometry .plot (show_mesh = True )
52+ geometry .plot ()
You can’t perform that action at this time.
0 commit comments