Python Forum

Full Version: Help with initial conditions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am very new to this and need help with a pycharm program I am working on. I am making a freefall program using solve_ivp that is working great but I would like to have sets of initial conditions instead of just Y0=100 and V0=0. I wanted to make them into lists and be able to run a for loop that calls on the tuples for each set of the initial conditions and graph all 4 conditions on one.

So far I have Position vs time, time vs velocity and position vs velocities all with initial conditions Y0=100 and V0=0. Any help as to the best way to do this?

Thanks in advance

Chad
Could you probably share your code snippet and explain what you are facing trouble with ? Since you are discussing a physics problem, it might be hard for people to actually relate to what you are trying to ask for. Provide a reproducible example where they can see your issue and it will be easier for people to help