Compressible Flow credits Logo credits
Potto Home Contact Us

Potto Home

About Potto

Chapters:

  Content
  Introduction
  Sound
  Isentropic
  Shock
  Gravity
  Isothermal
  Fanno
  Rayleigh
  Tank
  Piston
  Oblique
  Prandtl-Meyer
  Hard copy
  Gas Dynamics Tables

Other things:
Other resources
Download Area
calculators

Other Resources

  FAQs
  Compare Other Books
  Articles

Potto Statistics

License

Feedback

next up previous index
Next: Program listings Up: Computer Program Previous: About the Program   Index

Usage

To use the program some information has to be provided. The necessary input parameter(s), the kind of the information needed, where it has to be in a LATEX format or not, and in many case where it is a range of parameter(s).
machV
The Mach number and it is used in stagnation class
fldV
The $ \fld$ and it is used in Fanno class isothermal class
p2p1V
The pressure ratio of the two sides of the tubes
M1V
Entrance Mach M1 to the tube Fanno and isothermal classes
M1ShockV
Entrance Mach M1 when expected shock to the tube Fanno and isothermal classes
FLDShockV
FLD with shock in the in Fanno class
M1fldV
both $ M_1$ and $ \fld$ are given
M1fldP2P1V
three part info $ P_1\over P_2$ , $ M_1$ and $ \fld$ are given
MxV
$ M_x$ or $ M_y$

infoStagnation
print standard (stagnation) info
infoStandard
standard info for (Fanno, shock etc)
infoTube
print tube side info for (Fanno, etc) including
infoShock
print shock sides info
infoTubeShock
print tube info shock main info
infoTubeProfile
the Mach number and pressure ratio profiles
infoTubeShockLimits
print tube limits with shock

To get the shock results in LATEX of $ M_x$ The following lines have to be inserted in the end of the main function.

int isTex = yes;
int isRange = no;
whatInfo = infoStandard ;
variableName =  MxV; 
Mx = 2.0 ;
s.makeTable(whatInfo, isRange, isTex,  variableName, variableValue);
*******************************************
The following stuff is the same as above/below
if you use showResults with showHeads but the
information is setup for the latex text processing.
You can just can cut and paste it in your latex file.
You must use longtable style file and dcolumn
style files.
 
 
*******************************************
\setlongtables
\begin{longtable}
{|D..{1.4}|D..{1.4}|D..{1.4}|D..{1.4}|D..{1.4}|D..{1.4}|D..{1.4}|}
\caption{ ??  \label{?:tab:?}}\\
\hline
\multicolumn{1}{|c|} {$\rule[-0.1in]{0.pt}{0.3 in}\mathbf{M} $}  &
\multicolumn{1}{|c|} {$\mathbf{4fL \over D} $}  &
\multicolumn{1}{|c|} {$\mathbf{P \over P^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{P_0 \over {P_0}^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{\rho \over \rho^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{U \over {U}^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{T \over T^{*}} $}
 
\\\hline
 
\endfirsthead
\caption{ ?? (continue)} \\\hline
\multicolumn{1}{|c|} {$\rule[-0.1in]{0.pt}{0.3 in}\mathbf{M} $}  &
\multicolumn{1}{|c|} {$\mathbf{4fL \over D} $}  &
\multicolumn{1}{|c|} {$\mathbf{P \over P^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{P_0 \over {P_0}^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{\rho \over \rho^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{U \over {U}^{*}} $}  &
\multicolumn{1}{|c|} {$\mathbf{T \over T^{*}} $}
 
\\\hline
\endhead
    2.176&    2.152&   0.3608&    1.000&   0.5854&    3.773&   0.6164 \\
\hline\end{longtable}


next up previous index
Next: Program listings Up: Computer Program Previous: About the Program   Index
Created by:Genick Bar-Meir, Ph.D.
On: 2007-11-21