@@ -67,6 +67,7 @@ my_constants.n_upstream_atom = {{upstream_density}}e24 # number of electrons per
6767my_constants.n_downstream_atom = {{downstream_density}}e24 # number of electrons per m^3
6868my_constants.ramp_length = 0.4e-2
6969my_constants.stage_length = 3.3e-2
70+ my_constants.plateau_length = stage_length - 2*ramp_length
7071my_constants.dopant_length = 0.4e-2
7172my_constants.dopant_fraction = {{dopant_concentration}}e-2
7273
@@ -84,7 +85,7 @@ electrons1.xmin = 0
8485electrons1.xmax = 0.9*x_max
8586electrons1.zmin = 0
8687electrons1.zmax = stage_length
87- electrons1.density_function(x,y,z) = "(1 + 4*dopant_fraction*(z<dopant_length))*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + n_downstream_atom*(z-ramp_length)/stage_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
88+ electrons1.density_function(x,y,z) = "(1 + 4*dopant_fraction*(z<dopant_length))*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + ( n_downstream_atom-n_upstream_atom) *(z-ramp_length)/plateau_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
8889electrons1.profile = parse_density_function
8990electrons1.momentum_distribution_type = constant
9091electrons1.do_continuous_injection=1
@@ -97,7 +98,7 @@ hydrogen1.xmin = 0
9798hydrogen1.xmax = 0.9*x_max
9899hydrogen1.zmin = 0
99100hydrogen1.zmax = stage_length
100- hydrogen1.density_function(x,y,z) = "(1 - dopant_fraction*(z<dopant_length))*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + n_downstream_atom*(z-ramp_length)/stage_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
101+ hydrogen1.density_function(x,y,z) = "(1 - dopant_fraction*(z<dopant_length))*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + ( n_downstream_atom-n_upstream_atom) *(z-ramp_length)/plateau_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
101102hydrogen1.profile = parse_density_function
102103hydrogen1.momentum_distribution_type = constant
103104hydrogen1.do_continuous_injection=1
@@ -110,7 +111,7 @@ nitrogen1.xmin = 0
110111nitrogen1.xmax = 0.9*x_max
111112nitrogen1.zmin = 0
112113nitrogen1.zmax = dopant_length
113- nitrogen1.density_function(x,y,z) = "(z<dopant_length)*dopant_fraction*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + n_downstream_atom*(z-ramp_length)/stage_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
114+ nitrogen1.density_function(x,y,z) = "(z<dopant_length)*dopant_fraction*( (z<ramp_length)*sqrt(z/ramp_length)*n_upstream_atom + (z>=ramp_length)*(z<stage_length-ramp_length)*(n_upstream_atom + ( n_downstream_atom-n_upstream_atom) *(z-ramp_length)/plateau_length ) + (z>=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_length)*n_downstream_atom)"
114115nitrogen1.profile = parse_density_function
115116nitrogen1.momentum_distribution_type = constant
116117nitrogen1.do_field_ionization = 1
0 commit comments