-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into compathelper/new_version/2022-04-09-00-17-…
…28-701-01708008276
- Loading branch information
Showing
29 changed files
with
1,075 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
inputs: | ||
lookback: | ||
default: 3 | ||
permissions: | ||
contents: write | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# supercontinuum from simple GNLSE parameters | ||
# Fig.3 of Dudley et. al, RMP 78 1135 (2006) | ||
|
||
using Luna | ||
|
||
βs = [0.0, 0.0, -1.1830e-26, 8.1038e-41, -9.5205e-56, 2.0737e-70, -5.3943e-85, 1.3486e-99, -2.5495e-114, 3.0524e-129, -1.7140e-144] | ||
γ = 0.11 | ||
flength = 15e-2 | ||
fr = 0.18 | ||
τfwhm = 50e-15 | ||
λ0 = 835e-9 | ||
energy = 568e-12 | ||
|
||
grid = Grid.RealGrid(flength, λ0, (400e-9, 1400e-9), 10e-12) | ||
|
||
m = SimpleFibre.SimpleMode(PhysData.wlfreq(λ0), βs) | ||
aeff = z -> 1.0 | ||
densityfun = z -> 1.0 | ||
|
||
linop, βfun!, β1, αfun = LinearOps.make_const_linop(grid, m, λ0) | ||
|
||
k0 = 2π/λ0 | ||
n2 = γ/k0*aeff(0.0) | ||
χ3 = 4/3 * n2 * (PhysData.ε_0*PhysData.c) | ||
responses = (Nonlinear.Kerr_field((1 - fr)*χ3), | ||
Nonlinear.RamanPolarField(grid.to, Raman.raman_response(grid.to, :SiO2, fr*χ3*PhysData.ε_0))) | ||
|
||
inputs = (Fields.SechField(λ0=λ0, τfwhm=τfwhm, energy=energy), Fields.ShotNoise()) | ||
norm! = NonlinearRHS.norm_mode_average_gnlse(grid, aeff) | ||
Eω, transform, FT = Luna.setup(grid, densityfun, responses, inputs, βfun!, aeff, norm! = norm!) | ||
|
||
output = Output.MemoryOutput(0, grid.zmax, 201) | ||
Luna.run(Eω, grid, linop, transform, FT, output) | ||
|
||
## | ||
Plotting.pygui(true) | ||
#Plotting.stats(output) | ||
#Plotting.prop_2D(output, :λ, dBmin=-40.0, λrange=(400e-9, 1300e-9), trange=(-1e-12, 5e-12)) | ||
#Plotting.time_1D(output, range(0.0, 1.0, length=5).*flength, trange=(-1e-12, 5e-12)) | ||
Plotting.spec_1D(output, range(0.0, 1.0, length=5).*flength, λrange=(400e-9, 1300e-9)) |
40 changes: 40 additions & 0 deletions
40
examples/low_level_interface/gnlse/simplescg_modeAvg_env.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# supercontinuum from simple GNLSE parameters | ||
# Fig.3 of Dudley et. al, RMP 78 1135 (2006) | ||
|
||
using Luna | ||
|
||
βs = [0.0, 0.0, -1.1830e-26, 8.1038e-41, -9.5205e-56, 2.0737e-70, -5.3943e-85, 1.3486e-99, -2.5495e-114, 3.0524e-129, -1.7140e-144] | ||
γ = 0.11 | ||
flength = 15e-2 | ||
fr = 0.18 | ||
τfwhm = 50e-15 | ||
λ0 = 835e-9 | ||
energy = 568e-12 | ||
|
||
grid = Grid.EnvGrid(flength, λ0, (400e-9, 1400e-9), 10e-12) | ||
|
||
m = SimpleFibre.SimpleMode(PhysData.wlfreq(λ0), βs) | ||
aeff = z -> 1.0 | ||
densityfun = z -> 1.0 | ||
|
||
linop, βfun!, β1, αfun = LinearOps.make_const_linop(grid, m, λ0) | ||
|
||
k0 = 2π/λ0 | ||
n2 = γ/k0*aeff(0.0) | ||
χ3 = 4/3 * n2 * (PhysData.ε_0*PhysData.c) | ||
responses = (Nonlinear.Kerr_env((1 - fr)*χ3), | ||
Nonlinear.RamanPolarEnv(grid.to, Raman.raman_response(grid.to, :SiO2, fr*χ3*PhysData.ε_0))) | ||
|
||
inputs = (Fields.SechField(λ0=λ0, τfwhm=τfwhm, energy=energy), Fields.ShotNoise()) | ||
norm! = NonlinearRHS.norm_mode_average_gnlse(grid, aeff) | ||
Eω, transform, FT = Luna.setup(grid, densityfun, responses, inputs, βfun!, aeff, norm! = norm!) | ||
|
||
output = Output.MemoryOutput(0, grid.zmax, 201) | ||
Luna.run(Eω, grid, linop, transform, FT, output) | ||
|
||
## | ||
Plotting.pygui(true) | ||
#Plotting.stats(output) | ||
Plotting.prop_2D(output, :λ, dBmin=-40.0, λrange=(400e-9, 1300e-9), trange=(-1e-12, 5e-12)) | ||
#Plotting.time_1D(output, [0.0, 2.5, 5.0], trange=(-5e-12, 5e-12)) | ||
Plotting.spec_1D(output, range(0.0, 1.0, length=5).*flength, λrange=(400e-9, 1300e-9)) |
39 changes: 39 additions & 0 deletions
39
examples/low_level_interface/stepindex/step_modeAvg_env.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# propagation in step index fibre | ||
|
||
using Luna | ||
|
||
# single mode fibre at 1030 nm | ||
a = 5e-6 | ||
NA = 0.08 | ||
flength = 2.0 | ||
fr = 0.18 | ||
τfwhm = 1e-12 | ||
λ0 = 1030e-9 | ||
energy = 10e-9 | ||
|
||
grid = Grid.EnvGrid(flength, λ0, (980e-9, 1200e-9), 10e-12) | ||
|
||
m = StepIndexFibre.StepIndexMode(a, NA, accellims=(900e-9, 1200e-9, 100)) | ||
aeff = let aeffc=Modes.Aeff(m, z=0.0) | ||
z -> aeffc | ||
end | ||
densityfun = z -> 1.0 | ||
|
||
linop, βfun!, β1, αfun = LinearOps.make_const_linop(grid, m, λ0) | ||
|
||
responses = (Nonlinear.Kerr_env((1 - fr)*PhysData.χ3(:SiO2)), | ||
Nonlinear.RamanPolarEnv(grid.to, Raman.raman_response(grid.to, :SiO2, fr*PhysData.ε_0*PhysData.χ3(:SiO2)))) | ||
|
||
inputs = Fields.GaussField(λ0=λ0, τfwhm=τfwhm, energy=energy) | ||
Eω, transform, FT = Luna.setup(grid, densityfun, responses, inputs, βfun!, aeff) | ||
|
||
statsfun = Stats.default(grid, Eω, m, linop, transform) | ||
output = Output.MemoryOutput(0, grid.zmax, 201, statsfun) | ||
Luna.run(Eω, grid, linop, transform, FT, output) | ||
|
||
## | ||
Plotting.pygui(true) | ||
#Plotting.stats(output) | ||
Plotting.prop_2D(output, :λ, dBmin=-40.0, λrange=(980e-9, 1200e-9), trange=(-2e-12, 2e-12)) | ||
#Plotting.time_1D(output, [0.0, 2.5, 5.0], trange=(-5e-12, 5e-12)) | ||
Plotting.spec_1D(output, [0.0, 2.5, 5.0], λrange=(980e-9, 1080e-9)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# supercontinuum in strand of silica in air | ||
|
||
using Luna | ||
|
||
# single mode fibre at 1030 nm | ||
a = 1.25e-6 | ||
flength = 15e-2 | ||
fr = 0.18 | ||
τfwhm = 50e-15 | ||
λ0 = 835e-9 | ||
energy = 568e-12 | ||
|
||
grid = Grid.RealGrid(flength, λ0, (400e-9, 1400e-9), 10e-12) | ||
|
||
m = StepIndexFibre.StepIndexMode(a, accellims=(400e-9, 1400e-9, 100)) | ||
aeff = let aeffc=Modes.Aeff(m, z=0.0) | ||
z -> aeffc | ||
end | ||
densityfun = z -> 1.0 | ||
|
||
linop, βfun!, β1, αfun = LinearOps.make_const_linop(grid, m, λ0) | ||
|
||
responses = (Nonlinear.Kerr_field((1 - fr)*PhysData.χ3(:SiO2)), | ||
Nonlinear.RamanPolarField(grid.to, Raman.raman_response(grid.to, :SiO2, fr*PhysData.ε_0*PhysData.χ3(:SiO2)))) | ||
|
||
inputs = Fields.GaussField(λ0=λ0, τfwhm=τfwhm, energy=energy) | ||
Eω, transform, FT = Luna.setup(grid, densityfun, responses, inputs, βfun!, aeff) | ||
|
||
statsfun = Stats.default(grid, Eω, m, linop, transform) | ||
output = Output.MemoryOutput(0, grid.zmax, 201, statsfun) | ||
Luna.run(Eω, grid, linop, transform, FT, output) | ||
|
||
## | ||
Plotting.pygui(true) | ||
#Plotting.stats(output) | ||
#Plotting.prop_2D(output) | ||
#Plotting.time_1D(output, [0.0, 2.5, 5.0], trange=(-5e-12, 5e-12)) | ||
Plotting.spec_1D(output, range(0.0, 1.0, length=5).*flength, λrange=(400e-9, 1300e-9)) |
38 changes: 38 additions & 0 deletions
38
examples/low_level_interface/stepindex/stepscg_modeAvg_env.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# supercontinuum in strand of silica in air | ||
|
||
using Luna | ||
|
||
# single mode fibre at 1030 nm | ||
a = 1.25e-6 | ||
flength = 15e-2 | ||
fr = 0.18 | ||
τfwhm = 50e-15 | ||
λ0 = 835e-9 | ||
energy = 568e-12 | ||
|
||
grid = Grid.EnvGrid(flength, λ0, (400e-9, 1400e-9), 10e-12) | ||
|
||
m = StepIndexFibre.StepIndexMode(a, accellims=(400e-9, 1400e-9, 100)) | ||
aeff = let aeffc = Modes.Aeff(m, z=0) | ||
z -> aeffc | ||
end | ||
densityfun = z -> 1.0 | ||
|
||
linop, βfun!, β1, αfun = LinearOps.make_const_linop(grid, m, λ0) | ||
|
||
responses = (Nonlinear.Kerr_env((1 - fr)*PhysData.χ3(:SiO2)), | ||
Nonlinear.RamanPolarEnv(grid.to, Raman.raman_response(grid.to, :SiO2, fr*PhysData.ε_0*PhysData.χ3(:SiO2)))) | ||
|
||
inputs = (Fields.SechField(λ0=λ0, τfwhm=τfwhm, energy=energy), Fields.ShotNoise()) | ||
Eω, transform, FT = Luna.setup(grid, densityfun, responses, inputs, βfun!, aeff) | ||
|
||
|
||
output = Output.MemoryOutput(0, grid.zmax, 201) | ||
Luna.run(Eω, grid, linop, transform, FT, output) | ||
|
||
## | ||
Plotting.pygui(true) | ||
#Plotting.stats(output) | ||
Plotting.prop_2D(output, :λ, dBmin=-40.0, λrange=(400e-9, 1300e-9), trange=(-1e-12, 5e-12)) | ||
#Plotting.time_1D(output, [0.0, 2.5, 5.0], trange=(-5e-12, 5e-12)) | ||
Plotting.spec_1D(output, range(0.0, 1.0, length=5).*flength, λrange=(400e-9, 1300e-9)) |
Oops, something went wrong.