Python Forum
Help with initial conditions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with initial conditions
#1
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
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing the initial worksheet name in an MS Excel file azizrasul 3 945 Oct-02-2022, 07:56 PM
Last Post: azizrasul
  How to move multiple columns to initial position SriRajesh 4 1,413 Jul-02-2022, 10:34 AM
Last Post: deanhystad
  Variables being overridden to initial values. p2bc 6 2,618 Oct-10-2020, 09:03 PM
Last Post: p2bc
  Differential equations with initial condition in Python (change a working code) Euler2 1 1,825 May-29-2020, 04:06 PM
Last Post: Euler2

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020