# Chemical Process Control
## What is Process Control?

The manipulation of an object (actuation device) to maintain a parameter within an acceptable deviation from an ideally required condition. At it's core, process control is the transfer of variability from on variable to another.
There are two basic process control philosophies, feedback and feedforward control.

### Feedback Control

In feedback control, the controlled variable is measured and compared with a set-point. The deviation between the controlled variable and the set-point is the error signal. The error signal is then used to reduce the deviation of controlled variable from set-point.

#### Direct Acting Control

If the controlled variable increases as the manipulated variable increases, then direct acting control is used.

#### Reverse Acting Control
### Feedforward Control

Feedforward control refers to manipulating a variable towards an expected result. This suggests prediction can be made, or that a model is available, about the output of a process due to manipulating a variable.

### Advanced Control
## Mathematical Modeling
### Conservation Laws

The conservation laws on mass, energy and momentum are fundamental bases for the development of models of chemical processes. The general form of the law for a variable , when applied to a control volume (CV) is
${\frac {d(X~IN~to~CV)}{dt}}-{\frac {d(X~OUT~of~CV)}{dt}}+{\frac {d(GENERATION~OF~X~within~CV)}{dt}}-{\frac {d(DISAPPEARANCE~of~X~within~CV)}{dt}}={\frac {d(ACCUMULATION~of~X~within~CV)}{dt}}$
When applied to mass this becomes the Law of Conservation of Mass. Assuming no nuclear reactions take place, then the rate of generation or disappearance of mass is zero. Hence, we have
${\frac {d(Mass~IN)}{dt}}-{\frac {d(Mass~OUT)}{dt}}={\frac {d(ACCUMULATION~of~Mass)}{dt}}$
In symbols we may say
${\dot {m}}_{in}-{\dot {m}}_{out}={\frac {dM}{dt}}$
where M stands for the total mass within the CV

### Statistical Models
## Using Mathematical Models
## Glossary
### Actuator

    The mechanical device that cause the activation or movement of a final control element.

### Final Control Element

    A physical device whose activation or movement causes a change in a dynamic process. In process control, the most common final control elements are control valves.

### IMC-PID Tuning

    A method for PID tuning that selects tuning parameters to approximate an IMC-derived controller.

### Ladder Logic

    A semi-graphical programming language used to represent control algorithms. The language is expressed using symbols for logic devices. The arrangement of the device symbols and their connections has the appearance of a ladder.

### Laplace Transform

    An integral transformation from time domain to Laplace domain. Given a function of time $f(t)$, the Laplace transform is given by the following
$F(s)=\int _{0}^{\infty }\!f(t)\;e^{-st}dt$
    The use of $F(s)$ to represent the Laplace transform of $f(t)$ is a common convention; however, in dynamics and control it is common to use $f(t)$ and $f(s)$ to represent a time-domain function and its Laplace transform, respectively.

### PLC

    Programmable Logic Controller, a microprocessor-based electronic device for implementing control algorithms.