Class Accumulator
Class Accumulator
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----Accumulator
- class Accumulator
- extends Panel
This handles the derivative/integration calculations for the accumulator resulting in the
spring position and velocity. This will give the resulting local pressure that is determined
by user input.
-
delta_pos
- delta position
-
delta_vel
- delta velocity
-
dx
-
-
f1
- 1-2 valve pressure effect on accumulator
-
f2
- line pressure effect on accumaulator
-
f3
- accumulator preload
-
f4
- accumulator spring preload
-
line_mod
-
-
mod_spring
-
-
plot1
-
-
plot2
-
-
pos
- spring position
-
valve12
-
-
vel
- spring velocity
-
x
-
-
Accumulator()
-
Accumulator() Plot accumulator velocity and position
-
deriv(int)
- Calculate change in position and velocity
-
init(double, boolean, s12_valve, lm_valve)
- Set initial velocity, position, and pressure to zero
-
intgrt(int)
- integrate the position and velocity increments
-
paint(Graphics)
- Paint the window graphics.
plot1
public Plot_Object plot1
plot2
public Plot_Object plot2
mod_spring
protected boolean mod_spring
valve12
protected s12_valve valve12
line_mod
protected lm_valve line_mod
dx
protected double dx[]
x
protected double x[]
f1
public double f1
- 1-2 valve pressure effect on accumulator
f2
public double f2
- line pressure effect on accumaulator
f3
public double f3
- accumulator preload
f4
public double f4
- accumulator spring preload
pos
public double pos
- spring position
vel
public double vel
- spring velocity
delta_vel
public double delta_vel
- delta velocity
delta_pos
public double delta_pos
- delta position
Accumulator
protected Accumulator()
- Accumulator() Plot accumulator velocity and position
init
public void init(double p,
boolean has_msprg,
s12_valve s12,
lm_valve lm)
- Set initial velocity, position, and pressure to zero
deriv
public void deriv(int step)
- Calculate change in position and velocity
- Parameters:
- step - the derivative step
intgrt
public void intgrt(int step)
- integrate the position and velocity increments
- Parameters:
- step - the integral step
paint
public void paint(Graphics g)
- Paint the window graphics. Draw the accumulator change in position and update
pressure and position values in the main window.
- Overrides:
- paint in class Component