示例#1
0
    def setUpClass(cls):
        Yb_number_density = 3e25
        core_r = 5e-6
        background_loss = 0
        length = 3
        pump_cladding_r = 50e-6
        core_to_cladding_ratio = core_r / pump_cladding_r
        core_NA = 0.12
        npoints = 20
        tolerance = 1e-5
        cls.input_signal_power = 0.4
        cls.input_pump_power = 47.2

        fiber = YbDopedDoubleCladFiber(length, core_r, Yb_number_density,
                                       background_loss, core_NA,
                                       core_to_cladding_ratio)
        simulation = SteadyStateSimulation()
        simulation.fiber = fiber
        simulation.add_cw_signal(wl=1030e-9,
                                 power=cls.input_signal_power,
                                 mode_shape_parameters={
                                     'functional_form': 'gaussian',
                                     'mode_diameter': 2 * 4.8e-6
                                 })
        simulation.add_backward_pump(wl=914e-9, power=cls.input_pump_power)
        simulation.set_number_of_nodes(npoints)
        cls.result = simulation.run(tol=tolerance)
    def setUpClass(cls):
        yb_number_density = 3e25
        core_r = 5e-6
        background_loss = 0
        length = 3
        pump_cladding_r = 50e-6
        core_to_cladding_ratio = core_r / pump_cladding_r
        core_na = 0.12
        npoints = 20
        tolerance = 1e-5
        cls.input_signal_power = 0.4
        cls.input_pump_power = 47.2

        fiber = YbDopedDoubleCladFiber(length, core_r, yb_number_density,
                                       background_loss, core_na,
                                       core_to_cladding_ratio)
        simulation = SteadyStateSimulation(fiber)
        simulation.add_forward_signal(wl=1030e-9,
                                      input_power=cls.input_signal_power,
                                      mode=GaussianMode(
                                          mfd=2 * 4.8e-6,
                                          core_radius=fiber.core_radius))
        simulation.add_backward_pump(wl=914e-9,
                                     input_power=cls.input_pump_power)
        simulation.set_number_of_nodes(npoints)
        cls.result = simulation.run(tol=tolerance)