Skip to content
Discussion options

You must be logged in to vote

Hi @zhongerting. To implement a de-excitation function in Python, I would think you would want to move particles from an "excited_species" container to a "ground_state" container. Here is an example Python function that I've used in the past to move particles between species containers:

    def _move_ions(self):
        """Function to move particles from thermal ion to fast ion containers."""

        if cp is not None:
            xp = cp
        else:
            xp = np

        if not hasattr(self, 'pc'):
            # get thermal ion container
            multi_pc = twxrun.sim_ext.warpx.multi_particle_container()
            self.pc = multi_pc.get_particle_container_from_name(self.io…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zhongerting
Comment options

@roelof-groenewald
Comment options

Answer selected by ax3l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants