Class solenoid

Class solenoid

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----solenoid

class solenoid
extends Panel
The solenoid regulates the pressure needed to open and close the 1-2 valve

Variable Index

 o beta1
 o c1
 o c2
 o c3
 o c4
 o c5
 o delta_feed
solenoid delta feed pressure
 o dx
 o feed
solenoid feed pressure
 o plot10
 o q_exh
solenoid exhaust flow
 o q_feed
solenoid feed flow
 o source
source pressure
 o state
 o valve12
 o x

Constructor Index

 o solenoid()
solenoid() When the solenoid is off(closed) there is no pressure feed.

Method Index

 o deriv(int)
Calculate changes in position and velocity in solenoid
 o init(boolean, s12_valve)
Set initial velocity and position for the solenoid
 o intgrt(int)
integrate the position and velocity increments for the solenoid in order to apply pressure and flow to the system
 o paint(Graphics)
Paint the window graphics.

Variables

 o dx
  protected double dx[]
 o x
  protected double x[]
 o plot10
  public Plot_Object plot10
 o c1
  protected double c1
 o c2
  protected double c2
 o c3
  protected double c3
 o c4
  protected double c4
 o c5
  protected double c5
 o beta1
  protected double beta1
 o feed
  public double feed
solenoid feed pressure
 o source
  public double source
source pressure
 o q_feed
  public double q_feed
solenoid feed flow
 o q_exh
  public double q_exh
solenoid exhaust flow
 o delta_feed
  public double delta_feed
solenoid delta feed pressure
 o valve12
  protected s12_valve valve12
 o state
  public boolean state

Constructors

 o solenoid
  protected solenoid()
solenoid() When the solenoid is off(closed) there is no pressure feed. The degree that it is open affects the pressure feed to the system

Methods

 o init
  public void init(boolean on_off,
                   s12_valve s12)
Set initial velocity and position for the solenoid
 o deriv
  public void deriv(int step)
Calculate changes in position and velocity in solenoid
Parameters:
step - the derivative step
 o intgrt
  public void intgrt(int step)
integrate the position and velocity increments for the solenoid in order to apply pressure and flow to the system
Parameters:
step - the integral step
 o paint
  public void paint(Graphics g)
Paint the window graphics. Display the pressure changes(red color gets darker in areas of higher pressure) as the solenoid changes pressure and flow in the main window.
Overrides:
paint in class Component