twpasolver.analysis.problem module#

One CME problem builder for both gain models and phase matching.

twpasolver.analysis.problem.build_problem(modes: ModeSet, tones: Mapping[str, Any], lin: LinearData, interp: ParameterInterpolator, segments: list, unit_multiplier: float) → CMEProblem[source]#

CME inputs for the mode frequencies set by the independent tones.

tones maps every independent mode to its frequency in the analysis unit (scalars or arrays of one length); mode parameters are interpolated at |f| from interp and relations follow from the RWA terms of modes.