Design a field reversed configuration fusion engine.
   This treats the plasma as a volume. It does a mixing analysis of the
   various side reactions to produce a power flow. 
   The demo replicates the long-term example in the reference.
   The output is in the form of a data structure. If you don't specify
   and output it will print the results in the command window.

   For the filename if you can type in xxx.tex or just xxx.

   Type DesignDHe3FusionEngine to see a 12 MW fusion engine.

         d = DesignDHe3FusionEngine
   [dU, x] = DesignDHe3FusionEngine( d, fileName )

   d        (1,1)  Data structure
                  .beta                (1,1) Ratio of pressure to magnetic pressure
                  .tSOL                (1,1) Thickness scrape off layer (m)
                  .rPlasma             (1,1) Radius plasma (m)
                  .lPlasma             (1,1) Length plasma (m)
                  .nD                  (1,1) Number density D (n/m3)
                  .nHe3                (1,1) Number density He3 (n/m3)
                  .tHe3                (1,1) Temperature He3 (kEV)
                  .tD                  (1,1) Temperature D (kEV)
                  .tE                  (1,1) Temperature e- (kEV)
                  .rhoM                (1,1) Density of magnet structure (kg/m^3)                   
                  .sigmaM              (1,1) Maximum stress magnet structure (N/m^2)
                  .specMassHeating     (1,1) Specific mass of the heating system (kg/W)
                  .specMassPowerGen    (1,1) Specific mass of the power generation system (kg/W)
                  .tSpacer             (1,1) Thickness of spacer layer (m)
                  .thrustEff           (1,1) Thrust efficiency
                  .rhoRad              (1,1) Radiator areal density (kg/m^2)
                  .tRad                (1,1) Temperature radiator (deg-K)
                  .eRad                (1,1) Emissivity radiator
                  .rhoShield           (1,1) Density neutron shield (kg/m^3)
                  .specMassRefrig      (1,1) Specific mass coil refrigerator (kg/W)
                  .fRefrig             (1,1) Fraction of heat rejected by refigerator
                  .pNeutronShielded	  (1,1) Power allowed through neutron shield (MW)
                  .fD                  (1,1) Fraction of D-D reactions
                  .fT                  (1,1) Fraction of D-T reactions
                  .wallReflection      (1,1) Wall reflection for synchrotron
                  .effRecycle          (1,1) Recycling efficiency
                  .pRMF                (1,1) Power for the RF heating system
   fileName (1,:)  File name for a table. 

   dU       (1,1)  Updated data structure
                  .nE              (1,1) Number density of e-
                  .b               (1,1) Field strength (T)
                  .rW              (1,1) Wall radius (m)
                  .pFusion         (1,1) Fusion power (MW)
                  .pNeutron        (1,1) Neutron power (MW)
                  .pBremss         (1,1) Bremsstrahlung power (MW)
                  .pThrust         (1,1) Thrust power (MW)
                  .pHeat           (1,1) Rejected heat (MW)
                  .pWall           (1,1) Wall power (MW/m^2)
                  .pSynch          (1,1) Synchrotron power (MW)
                  .pNet            (1,1) Net power (MW)
                  .nAtten          (1,1) Neutron attenuation
                  .tShield         (1,1) Shield thickness (m)
                  .massShield      (1,1) Shield mass (kg)
                  .energyMagnet    (1,1) Energy magnet (GJ)
                  .massMagnet      (1,1) Magnet mass (kg)
                  .massRefrig      (1,1) Mass refrigerator (kg)
                  .massHeating     (1,1) Mass of the heating system (kg)
                  .massPowerGen    (1,1) Mass of the power generation system (kg)
                  .pUnitArea       (1,1) Rejected heat (MW/m^2)
                  .areaRad         (1,1) Radiator area (m^2)
                  .massRad         (1,1) Radiator mass (kg)
                  .massTotal       (1,1) Total mass (kg)
                  .specPower       (1,1) Specific power (kW/kg)
                  .gain            (1,1) Power gain
   x        {:,3}  Latex formatted output

   Reference: Santarius, J.F. and B.G. Logan, "Generic Magnetic Fusion
              Rocket", UWFDM-914, University of Wisconsin, February 1998.


Common: Database/Constant
Common: General/CreateLatexTable
Common: General/SortColumnCell
FusionPropulsion: PlasmaPhysics/AtomicNumber
FusionPropulsion: PlasmaPhysics/NumberOfElectrons
FusionPropulsion: PlasmaPhysics/PlasmaConstant
FusionPropulsion: Reactor/BField
FusionPropulsion: Reactor/MagnetMassVirial
FusionPropulsion: Reactor/MagnetStoredEnergy
FusionPropulsion: Reactor/PowerDHe3
FusionPropulsion: Reactor/Synchrotron
FusionPropulsion: Shielding/NeutronShieldThickness