chemkinLexer: Add support for "KELVINS", "KELVIN" and "KELV"
This commit is contained in:
parent
3d65213605
commit
c72d89ce6a
@ -158,13 +158,15 @@ reactionCoeff {space}{floatNum}{space}
|
|||||||
calPerMol {space}"CAL/MOLE"{space}
|
calPerMol {space}"CAL/MOLE"{space}
|
||||||
kcalPerMol {space}"KCAL/MOLE"{space}
|
kcalPerMol {space}"KCAL/MOLE"{space}
|
||||||
joulePerMol {space}"JOULES/MOLE"{space}
|
joulePerMol {space}"JOULES/MOLE"{space}
|
||||||
otherReactionsUnit {space}("KELVINS"|"EVOLTS"|"MOLES"|"MOLECULES"){space}
|
kelvins {space}"KELVINS"{space}
|
||||||
|
otherReactionsUnit {space}("EVOLTS"|"MOLES"|"MOLECULES"){space}
|
||||||
|
|
||||||
cal {space}"CAL"{space}
|
cal {space}"CAL"{space}
|
||||||
kcal {space}"KCAL"{space}
|
kcal {space}"KCAL"{space}
|
||||||
joule {space}"JOUL"{space}
|
joule {space}"JOUL"{space}
|
||||||
kjoule {space}"KJOU"{space}
|
kjoule {space}"KJOU"{space}
|
||||||
otherReactionUnit {space}("MOLE"|"MOLECULE"|"KELV"|"KELVIN"|"EVOL"|"EVOLTS"){space}
|
kelvin {space}("KELV"|"KELVIN"){space}
|
||||||
|
otherReactionUnit {space}("MOLE"|"MOLECULE"|"EVOL"|"EVOLTS"){space}
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *\
|
/* ------------------------------------------------------------------------- *\
|
||||||
@ -677,6 +679,10 @@ bool finishReaction = false;
|
|||||||
RRreactions = RRjoule;
|
RRreactions = RRjoule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<readReactionsUnits>{kelvins} {
|
||||||
|
RRreactions = 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
<readReactionsUnits>{otherReactionsUnit} {
|
<readReactionsUnits>{otherReactionsUnit} {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1483,6 +1489,10 @@ bool finishReaction = false;
|
|||||||
RRreaction = RRjoule/1000.0;
|
RRreaction = RRjoule/1000.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<readReactionUnit>{kelvin} {
|
||||||
|
RRreaction = 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
<readReactionUnit>{otherReactionsUnit} {
|
<readReactionUnit>{otherReactionsUnit} {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user