phasereport.cpp

Go to the documentation of this file.
00001 /**
00002  *  @file phasereport.cpp
00003  *  Output routines for phases
00004  */
00005 
00006 /* 
00007  *  $Date: 2009-12-05 14:08:43 -0500 (Sat, 05 Dec 2009) $
00008  *  $Revision: 279 $
00009  *
00010  *  Copyright 2001 California Institute of Technology
00011  *
00012  */
00013 
00014 // turn off warnings under Windows
00015 #ifdef WIN32
00016 #pragma warning(disable:4786)
00017 #pragma warning(disable:4503)
00018 #endif
00019 
00020 #include "ThermoPhase.h"
00021 #include "PureFluidPhase.h"
00022 #include "mix_defs.h"
00023 
00024 #include <cstdio>
00025 
00026 using namespace std;
00027 
00028 namespace Cantera {
00029   
00030   // Format a summary of the mixture state for output.
00031   /*
00032    * @param th  ThermoPhase object to create a report about
00033    * @param show_thermo Boolean indicating whether the thermo functions
00034    *                    of the phase should be written out
00035    *
00036    * @return  Returns a string containing the report
00037    */
00038   std::string report(const ThermoPhase& th, const bool show_thermo) {
00039     return th.report(show_thermo);
00040   }
00041 
00042   //! Write a phase report to the screen device
00043   /*!
00044    *  This routine is a wrapper around the report() function.
00045    *  It writes to the screen device.
00046    *
00047    * @param th          ThermoPhase object to create a report about
00048    * @param show_thermo Boolean indicating whether the thermo functions
00049    *                    of the phase should be written out
00050    */
00051   void writephase(const ThermoPhase& th, bool show_thermo) {
00052     std::string s = report(th, show_thermo);
00053     writelog(s+"\n");
00054   }
00055   
00056 
00057 
00058 }
00059 
00060 
Generated by  doxygen 1.6.3