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.

Variable Index

 o delta_pos
delta position
 o delta_vel
delta velocity
 o dx
 o f1
1-2 valve pressure effect on accumulator
 o f2
line pressure effect on accumaulator
 o f3
accumulator preload
 o f4
accumulator spring preload
 o line_mod
 o mod_spring
 o plot1
 o plot2
 o pos
spring position
 o valve12
 o vel
spring velocity
 o x

Constructor Index

 o Accumulator()
Accumulator() Plot accumulator velocity and position

Method Index

 o deriv(int)
Calculate change in position and velocity
 o init(double, boolean, s12_valve, lm_valve)
Set initial velocity, position, and pressure to zero
 o intgrt(int)
integrate the position and velocity increments
 o paint(Graphics)
Paint the window graphics.

Variables

 o plot1
  public Plot_Object plot1
 o plot2
  public Plot_Object plot2
 o mod_spring
  protected boolean mod_spring
 o valve12
  protected s12_valve valve12
 o line_mod
  protected lm_valve line_mod
 o dx
  protected double dx[]
 o x
  protected double x[]
 o f1
  public double f1
1-2 valve pressure effect on accumulator
 o f2
  public double f2
line pressure effect on accumaulator
 o f3
  public double f3
accumulator preload
 o f4
  public double f4
accumulator spring preload
 o pos
  public double pos
spring position
 o vel
  public double vel
spring velocity
 o delta_vel
  public double delta_vel
delta velocity
 o delta_pos
  public double delta_pos
delta position

Constructors

 o Accumulator
  protected Accumulator()
Accumulator() Plot accumulator velocity and position

Methods

 o init
  public void init(double p,
                   boolean has_msprg,
                   s12_valve s12,
                   lm_valve lm)
Set initial velocity, position, and pressure to zero
 o deriv
  public void deriv(int step)
Calculate change in position and velocity
Parameters:
step - the derivative step
 o intgrt
  public void intgrt(int step)
integrate the position and velocity increments
Parameters:
step - the integral step
 o 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