mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 10:38:10 +00:00
fix to Raman solver
This commit is contained in:
@@ -34,8 +34,7 @@ class SimParams():
|
|||||||
self.raman_params = RamanParams(params=params['raman_parameters'])
|
self.raman_params = RamanParams(params=params['raman_parameters'])
|
||||||
self.nli_params = NLIParams(params=params['nli_parameters'])
|
self.nli_params = NLIParams(params=params['nli_parameters'])
|
||||||
|
|
||||||
class RamanSolver:
|
class RamanSolver:
|
||||||
|
|
||||||
def __init__(self, fiber_information=None):
|
def __init__(self, fiber_information=None):
|
||||||
""" Initialize the fiber object with its physical parameters
|
""" Initialize the fiber object with its physical parameters
|
||||||
:param length: fiber length in m.
|
:param length: fiber length in m.
|
||||||
@@ -211,7 +210,7 @@ class SimParams():
|
|||||||
|
|
||||||
power_ase[f_ind, :] = bc_evolution + ase_evolution
|
power_ase[f_ind, :] = bc_evolution + ase_evolution
|
||||||
|
|
||||||
spontaneous_raman_scattering.x = power_ase
|
spontaneous_raman_scattering.x = 2 * power_ase
|
||||||
spontaneous_raman_scattering.success = True
|
spontaneous_raman_scattering.success = True
|
||||||
spontaneous_raman_scattering.message = "Spontaneous Raman Scattering evaluated successfully"
|
spontaneous_raman_scattering.message = "Spontaneous Raman Scattering evaluated successfully"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user