7 #ifndef CT_SEMICONDPHASE_H
8 #define CT_SEMICONDPHASE_H
17 const int cElectron = 0;
42 m_press = right.m_press;
56 return cSemiconductor;
69 eosdata.
_require(
"model",
"Semiconductor");
70 doublereal rho =
getFloat(eosdata,
"density",
"-");
72 m_bandgap =
getFloat(eosdata,
"bandgap",
"-");
73 doublereal e_mass =
getFloat(eosdata,
"electron_mass",
"-");
74 doublereal h_mass =
getFloat(eosdata,
"hole_mass",
"-");
75 doublereal e_donor =
getFloat(eosdata,
"donor_energy",
"-");
76 doublereal n_donor =
getFloat(eosdata,
"donor_concentration",
"-");
77 doublereal e_acceptor =
getFloat(eosdata,
"acceptor_energy",
"-");
78 doublereal n_acceptor =
getFloat(eosdata,
"acceptor_concentration",
"-");
79 setEffectiveMasses(e_mass, h_mass);
80 setDonorDoping(n_donor, e_donor);
81 setAcceptorDoping(n_acceptor, e_acceptor);
84 void setEffectiveMasses(doublereal e_mass, doublereal h_mass) {
89 void setDonorDoping(doublereal n_donor, doublereal e_donor) {
94 void setAcceptorDoping(doublereal n_acceptor, doublereal e_acceptor) {
95 m_nacceptor = n_acceptor;
96 m_eacceptor = e_acceptor;
99 doublereal effectiveMass_e()
const {
103 doublereal effectiveMass_h()
const {
107 doublereal fermiLevel()
const {
108 return m_fermi_level;
112 doublereal nc()
const;
113 doublereal nv()
const;
114 doublereal
ec()
const;
115 doublereal ev()
const;
116 doublereal bandgap()
const {
128 doublereal m_nacceptor;
129 doublereal m_eacceptor;
130 doublereal m_fermi_level;
131 doublereal m_bandgap;
void _require(const std::string &a, const std::string &v) const
Require that the current XML node have an attribute named by the first argument, a, and that this attribute have the the string value listed in the second argument, v.
Class SemiconductorPhase represents electrons and holes in a semiconductor.
CTML ("Cantera Markup Language") is the variant of XML that Cantera uses to store data...
ThermoPhase & operator=(const ThermoPhase &right)
Assignment operator.
virtual void getChemPotentials(doublereal *mu) const
Get the species chemical potentials. Units: J/kmol.
Class XML_Node is a tree-based representation of the contents of an XML file.
virtual ThermoPhase * duplMyselfAsThermoPhase() const
Duplicator.
virtual void setPressure(doublereal pres)
Set the internally stored pressure (Pa) at constant temperature and composition.
Base class for a phase with thermodynamic properties.
doublereal ec() const
Energy at the top of the conduction band.
virtual doublereal pressure() const
Return the thermodynamic pressure (Pa).
virtual void setParametersFromXML(const XML_Node &eosdata)
Set equation of state parameter values from XML entries.
virtual int eosType() const
Equation of state type flag.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
doublereal getFloat(const XML_Node &parent, const std::string &name, const std::string &type)
Get a floating-point value from a child element.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties, and the text for the Module thermoprops (see Thermodynamic Properties and class ThermoPhase).
virtual void setDensity(const doublereal density_)
Set the internally stored density (kg/m^3) of the phase Note the density of a phase is an independent...