-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add new reactions between desired particles at capacitive discharge 2d Example #5449
Comments
Can I simulate negative H plasma ion source by warpx ? |
Is there any way that I send my code ro you to see , why I faced error ? |
Thanks for your interest in WarpX. I will answer your first question (how can I add new particles and new reactions). For the two other questions: could you open a separate Github issue (https://github.com/ECP-WarpX/WarpX/issues), so that we have one issue per independent question? (It makes it easier to track and answer.) Regarding the new reaction: which type of reaction would you like to add? |
Hi. Thanks for your answer. |
Hi, import numpy as np constants = picmi.constants ########################## Physics Parameters########################## D_CA = 0.067 # m ########################## Numerics Parameters########################## max_steps = 50 nx, ny = 128, 8 ########################## Cross-Section Directory########################## cross_sec_dir = "warpx-data/MCC_cross_sections/H/" files = { ############################# Specialized Poisson Solver############################# class PoissonSolverPseudo1D(picmi.ElectrostaticSolver):
########################## Physics Components########################## v_rms_elec = np.sqrt(constants.kb * T_ELEC / constants.m_e) Uniform plasma distributionsuniform_plasma_elec = picmi.UniformDistribution( uniform_plasma_hminus = picmi.UniformDistribution( Species definitionselectrons = picmi.Species( h_minus = picmi.Species( MCC collisionsmcc_electrons = picmi.MCCCollisions( mcc_h_minus = picmi.MCCCollisions( Magnetic fielduniform_magnetic_field = picmi.AnalyticInitialField( ########################## Numerics Components########################## grid = picmi.Cartesian2DGrid( solver = PoissonSolverPseudo1D(grid=grid) ########################## Diagnostics########################## particle_diag = picmi.ParticleDiagnostic( field_diag = picmi.FieldDiagnostic( ########################## Simulation Setup########################## sim = picmi.Simulation( sim.add_species( sim.add_species( sim.add_applied_field(uniform_magnetic_field) ########################## Simulation Run########################## sim.step(max_steps) Confirm that the external solver was runassert hasattr(solver, "phi") |
and i will provide you the error: ERROR : Energy grid not evenly spaced.!!! |
Based on the error, I don't understand which of the energy spaces must be uniform. The energies in the first column of my cross-section files have uniform space! Or maybe it's a misunderstanding of the energies used in the MCC part of the code. Could you please clarify it for me? I hope you answer me as soon as possible. Thank you. |
Hello,
I need to know how can I add new particles and new reactions witch are not in the excitation, ionization, and elastic collisions category to the 2d capacitive discharge example?
it is important for me.
Thank you.
The text was updated successfully, but these errors were encountered: