Skip to content

add a :t- property to Lagrangian particles? #2503

Discussion options

You must be logged in to vote

The particles are StructArray:

particles = StructArray{Particle}((x, y, z))

so you should be able to add particles at any time. You can run a model for some time:

simulation.stop_time = 1
run!(simulation)

and then continue:

# add particles
simulation.stop_time += 1
run!(simulation)

You can also use Callback to add particles, I think.

I'm not immediately familiar with the syntax to do this because I don't use Lagrangian particles --- it'd be great if you post what you figure out to this discussion!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@glwagner
Comment options

Answer selected by ammtD
Comment options

You must be logged in to vote
3 replies
@glwagner
Comment options

@ammtD
Comment options

@glwagner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants