mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
minor cleanup
This commit is contained in:
parent
d835979c41
commit
6c28f55fd0
51
include/GRI30.h
Normal file
51
include/GRI30.h
Normal file
@ -0,0 +1,51 @@
|
||||
#ifndef CXX_IDEALGASMIX
|
||||
#define CXX_IDEALGASMIX
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "kernel/IdealGasPhase.h"
|
||||
#include "kernel/GRI_30_Kinetics.h"
|
||||
#include "kernel/importCTML.h"
|
||||
|
||||
namespace Cantera {
|
||||
|
||||
class GRI30 :
|
||||
public IdealGasPhase, public GRI_30_Kinetics
|
||||
{
|
||||
public:
|
||||
GRI30() : m_ok(false), m_r(0) {
|
||||
string path = findInputFile("gri30.xml");
|
||||
ifstream fin(path.c_str());
|
||||
if (!fin) {
|
||||
throw CanteraError("GRI30","could not open "
|
||||
+path+" for reading.");
|
||||
}
|
||||
|
||||
m_r = new XML_Node("-");
|
||||
m_r->build(fin);
|
||||
m_ok = buildSolutionFromXML(*m_r, "gri30_hw", "phase", this, this);
|
||||
if (!m_ok) throw CanteraError("GRI30",
|
||||
"buildSolutionFromXML returned false");
|
||||
}
|
||||
|
||||
|
||||
virtual ~GRI30() {}
|
||||
|
||||
bool operator!() { return !m_ok;}
|
||||
bool ready() { return m_ok; }
|
||||
friend ostream& operator<<(ostream& s, GRI30& mix) {
|
||||
string r = report(mix, true);
|
||||
s << r;
|
||||
return s;
|
||||
}
|
||||
|
||||
protected:
|
||||
bool m_ok;
|
||||
XML_Node* m_r;
|
||||
|
||||
private:
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif
|
@ -1,10 +1,10 @@
|
||||
#ifndef CT_INCL_ONEDIM_H
|
||||
#define CT_INCL_ONEDIM_H
|
||||
|
||||
#include "oneD/OneDim.h"
|
||||
#include "oneD/Resid1D.h"
|
||||
#include "oneD/Inlet1D.h"
|
||||
#include "oneD/MultiNewton.h"
|
||||
#include "oneD/MultiJac.h"
|
||||
#include "kernel/oneD/OneDim.h"
|
||||
#include "kernel/oneD/Resid1D.h"
|
||||
#include "kernel/oneD/Inlet1D.h"
|
||||
#include "kernel/oneD/MultiNewton.h"
|
||||
#include "kernel/oneD/MultiJac.h"
|
||||
#endif
|
||||
|
||||
|
6
include/reactionpaths.h
Normal file
6
include/reactionpaths.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef CT_RXNPATHS_H
|
||||
#define CT_RXNPATHS_H
|
||||
|
||||
#include "kernel/ReactionPath.h"
|
||||
|
||||
#endif
|
@ -1,5 +1,5 @@
|
||||
#ifndef CT_TRANSPORT_INCL
|
||||
#define CT_TRANSPORT_INCL
|
||||
|
||||
#include "kernel/TransportFactory.h"
|
||||
#include "kernel/transport/TransportFactory.h"
|
||||
#endif
|
||||
|
9
include/zerodim.h
Normal file
9
include/zerodim.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef CT_INCL_ZERODIM_H
|
||||
#define CT_INCL_ZERODIM_H
|
||||
|
||||
#include "kernel/zeroD/Reactor.h"
|
||||
#include "kernel/zeroD/Reservoir.h"
|
||||
#include "kernel/zeroD/Wall.h"
|
||||
#include "kernel/zeroD/flowControllers.h"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user