I was up until 1AM last night working on this. It is a simulation that allows you to increase the mass of the load on a pneumatic cylinder. In the directory with the program, a CSV file will be created.
Here are some constants:
Gravity = 9.8m/s/s
Starting Pressure (P1)= 1MPa
Radius of cylinder = 0.25m
I wish to eventually simulate a compressor, tank, and the air lines. And I have to figure out how to make the cylinder go back down. To do that, I will have to calculate how fast the air can be vented into the atmosphere. Once I am happy with the physics, I will use 3dsmax to make a 2D representation, and just have pre-rendered gfx. Of course, I could use openGL but I don't care about gfx right now.
EDIT: Oh, and the label for pressure near the progress bar is wrong. It should read 100kPa (IIRC, I'm taking a break from programming for a few hours).
Here are some constants:
Gravity = 9.8m/s/s
Starting Pressure (P1)= 1MPa
Radius of cylinder = 0.25m
I wish to eventually simulate a compressor, tank, and the air lines. And I have to figure out how to make the cylinder go back down. To do that, I will have to calculate how fast the air can be vented into the atmosphere. Once I am happy with the physics, I will use 3dsmax to make a 2D representation, and just have pre-rendered gfx. Of course, I could use openGL but I don't care about gfx right now.
EDIT: Oh, and the label for pressure near the progress bar is wrong. It should read 100kPa (IIRC, I'm taking a break from programming for a few hours).