ElectronIReaction read k of E/n

This commit is contained in:
ignis 2016-08-12 21:48:40 +09:00
parent fbc199b957
commit e1afafaf0d
3 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,5 @@
atomicWeights/atomicWeights.C
specie/specie.C
reaction/reactions/makeReactions.C
reaction/reactions/makeLangmuirHinshelwoodReactions.C
LIB = $(FOAM_LIBBIN)/libspecie

View file

@ -25,6 +25,8 @@ License
#include "ElectronIReaction.H"
#include "CSV.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template
@ -79,7 +81,8 @@ ElectronIReaction
)
:
ReactionType<ReactionThermo>(species, thermoDatabase, dict),
k_(species, dict)
k_(species, dict),
ke_(new CSV<scalar> ("k", dict))
{}
@ -121,7 +124,7 @@ Foam::scalar Foam::ElectronIReaction
const scalarField& c
) const
{
return k_(p, this->Te(), c);
return ke_->value(this->En());
}

View file

@ -38,6 +38,8 @@ SourceFiles
#include "Reaction.H"
#include "CSV.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
@ -61,6 +63,8 @@ class ElectronIReaction
ReactionRate k_;
autoPtr<TableBase<scalar> > ke_;
// Private Member Functions