@@ -63,7 +63,8 @@ my_constants.ppc_z1 = 3
6363##### plasma parameters #########
6464#################################
6565
66- my_constants.n_atom = {{background_density}}e24 # number of electrons per m^3
66+ my_constants.n_upstream_atom = {{upstream_density}}e24 # number of electrons per m^3
67+ my_constants.n_downstream_atom = {{downstream_density}}e24 # number of electrons per m^3
6768my_constants.ramp_length = 0.4e-2
6869my_constants.stage_length = 3.3e-2
6970my_constants.dopant_length = 0.4e-2
@@ -83,7 +84,7 @@ electrons1.xmin = 0
8384electrons1.xmax = 0.9*x_max
8485electrons1.zmin = 0
8586electrons1.zmax = stage_length
86- electrons1.density_function(x,y,z) = "(1 + 4*dopant_fraction*(z<dopant_length))*n_atom* ( (z<ramp_length)*sqrt(z/ramp_length) + (z>=ramp_length)*(z<stage_length-ramp_length)*1 + (z >=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_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 )"
8788electrons1.profile = parse_density_function
8889electrons1.momentum_distribution_type = constant
8990electrons1.do_continuous_injection=1
@@ -96,7 +97,7 @@ hydrogen1.xmin = 0
9697hydrogen1.xmax = 0.9*x_max
9798hydrogen1.zmin = 0
9899hydrogen1.zmax = stage_length
99- hydrogen1.density_function(x,y,z) = "(1 - dopant_fraction*(z<dopant_length))*n_atom* ( (z<ramp_length)*sqrt(z/ramp_length) + (z>=ramp_length)*(z<stage_length-ramp_length)*1 + (z >=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_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 )"
100101hydrogen1.profile = parse_density_function
101102hydrogen1.momentum_distribution_type = constant
102103hydrogen1.do_continuous_injection=1
@@ -109,7 +110,7 @@ nitrogen1.xmin = 0
109110nitrogen1.xmax = 0.9*x_max
110111nitrogen1.zmin = 0
111112nitrogen1.zmax = dopant_length
112- nitrogen1.density_function(x,y,z) = "(z<dopant_length)*dopant_fraction*n_atom* ( (z<ramp_length)*sqrt(z/ramp_length) + (z>=ramp_length)*(z<stage_length-ramp_length)*1 + (z >=stage_length-ramp_length)*(z<stage_length)*sqrt((stage_length-z)/ramp_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 )"
113114nitrogen1.profile = parse_density_function
114115nitrogen1.momentum_distribution_type = constant
115116nitrogen1.do_field_ionization = 1
0 commit comments