SimMoLFil-master
所属分类:其他
开发工具:matlab
文件大小:52KB
下载次数:1
上传日期:2023-08-23 16:59:24
上 传 者:
井号
说明: 用于光纤激光器的仿真程序,包括各个部分组件,GNLSE方程求解。。。。。
(Used for fiber laser simulation program)
文件列表:
Examples (0, 2020-10-06)
Examples\mainP1.m (7452, 2020-10-06)
LICENSE (1067, 2020-10-06)
SimMolFil (0, 2020-10-06)
SimMolFil\+component (0, 2020-10-06)
SimMolFil\+component\ActiveFiber.m (3215, 2020-10-06)
SimMolFil\+component\Coupler.m (809, 2020-10-06)
SimMolFil\+component\Fiber.m (2856, 2020-10-06)
SimMolFil\+component\Filter.m (1209, 2020-10-06)
SimMolFil\+simulation (0, 2020-10-06)
SimMolFil\+simulation\+builder (0, 2020-10-06)
SimMolFil\+simulation\+builder\Builder.m (810, 2020-10-06)
SimMolFil\+simulation\+builder\Evaluation.m (8221, 2020-10-06)
SimMolFil\+simulation\Configuration.m (1851, 2020-10-06)
SimMolFil\+simulation\Const.m (233, 2020-10-06)
SimMolFil\+simulation\Constants.m (264, 2020-10-06)
SimMolFil\+simulation\Coupler.m (426, 2020-10-06)
SimMolFil\+simulation\Feedback.m (202, 2020-10-06)
SimMolFil\+simulation\Fiber.m (386, 2020-10-06)
SimMolFil\+simulation\Filter.m (243, 2020-10-06)
SimMolFil\+simulation\Input.m (298, 2020-10-06)
SimMolFil\+simulation\Join.m (247, 2020-10-06)
SimMolFil\+simulation\Model.m (7250, 2020-10-06)
SimMolFil\+simulation\Operation.m (4421, 2020-10-06)
SimMolFil\+simulation\Recurrence.m (711, 2020-10-06)
SimMolFil\+simulation\Show.m (438, 2020-10-06)
SimMolFil\Amplifier (0, 2020-10-06)
SimMolFil\Amplifier\AmpSimp (0, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\AmpSimpNoise.m (1733, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\AmpSimpNonoise.m (638, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\filter_lorentz_tf.m (673, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\gain_saturated2.m (577, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\gain_saturated3.m (496, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\testcodes (0, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\testcodes\test_Pin_Pout.m (493, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\testcodes\test_fzero.m (250, 2020-10-06)
SimMolFil\Amplifier\AmpSimp\testcodes\test_gain_saturated.m (374, 2020-10-06)
... ...
# SimMoLFil
A **Mode-Locked Fiber Laser (MoLFil)** simulator.
## General info
This project simulates pulses generation and evolution in mode-locke fiber lasers.
The pulse evolution in fiber is calcuated by solving GNLSE using Interaction Picture Method Algorithm [[1](https://ieeexplore.ieee.org/abstract/document/6153336)].
The [original codes](https://github.com/SeveNOlogy7/SimMoLFil/tree/e5cd7787960a503ebab0ab7e6fc6a859b3413667) of this project were written for this paper [[2](https://www.osapublishing.org/oe/abstract.cfm?uri=oe-25-4-4414)], which contains only a minimum amount of the whole codes used.
The project is currently under development.
## Technologies
The project is created with:
* MATLAB version: 2018b
## Examples
mainP1.m: run a simulation and produce results of Point 1 of Figure 2 in [[2](https://www.osapublishing.org/oe/abstract.cfm?uri=oe-25-4-4414)].
## Works in progress
A simple data flow graph (DFG) presentation of Mode-Locked Fiber Laser Models to seperate
layout and connection of optical components from their implementation.
A DFG presentation can be built into some evaluatable object by a Builder.
Imaging you can simply write somthing like
```MATLAB
model = defind some model use DFG
evaluaion = model.build(Some Builder)
evaluaion(Some simulation settings)
```
In this way, it is easy to evaluate a same model with
* different simulation settings (more points, fine step, etc.),
* different algorithms to simulate some specific kind of optical components (better gain model, multimode pulse simulation, etc.),
* and even tools written in other language.
All these can be done by adding a new Builder class to generate the evaluatable.
Also, it turns out to be clear that, the idea of DFG presentation is not only suitable for Mode-locked fiber laser models, but also for Cascaded Fiber Supercontinuum Generation models.
### Examples of current DFG design
Following are codes that generate a Cascaded Fiber Supercontinuum model.
```MATLAB
% Define a fiber component
fiber = component.Fiber();
% Create some "Node"s that performs Fiber operation
% SMF stands for single mode fiber
SMF1 = simulation.Fiber("SMF1", fiber);
SMF2 = simulation.Fiber("SMF2", fiber);
SMF3 = simulation.Fiber("SMF3", fiber);
% Create a input Node
In = simulation.Input("In");
% Now simply put the Nodes together
% Think it like:
% Out = In -> SMF1 -> SMF2 -> SMF3
% It is injecting a input (like a powerful laser pulse) through three cascaded fiber sections
% No "->" operator in Matlab, so it end up like this
Out = In + SMF1 + SMF2 + SMF3;
% Generate some human-readable statement presentation of the model
statements = Out.statements()
```
The statements will contain a multiline string:
```MATLAB
t0 = In.Input()
t1 = SMF1.Fiber[fiber=component.Fiber](t0)
t2 = SMF2.Fiber[fiber=component.Fiber](t1)
t3 = SMF3.Fiber[fiber=component.Fiber](t2)
```
These staments show what any builders of the DFG model should implement to make the DFG an evaluable.
### Codes Arrangement
* **simulation package** contains codes that help reuse a few MATLAB syntax to present a MoLFil Model in DFG
and simply build the MoLFil Model to
* Human readable statements
* Evaluation object, given a specific Builder implementation
* **component package** contains optical components packed in classes.
And some helper methods to calculate parameters for those components.
### Todos
- [x] DFG generation
- [x] DFG build process
- [x] A pure MATLAB Builder implementation using existing codes in SimMLFL
- [x] DFG Evaluation Class
- [x] flow control operations
- [ ] Fill component package with concrete classes
- [x] components need for F8L
- [ ] more components
- [ ] Docs
- [ ] Examples
近期下载者:
相关文件:
收藏者: