Account for fuel LHV in fuel enthalpy
まだ誰も着手していません。
評価
調査の方向性
No file or test paths are named in the issue. Start by locating the combustor code and its fuel-specific-enthalpy input, then review the existing regression tests that assume zero enthalpy. Done means computing fuel enthalpy from LHV data by default while preserving an option for those regression tests to retain zero enthalpy.
索引モデルが issue の本文から書いたものです。
説明
The current combustor code has an input for fuel specific enthalpy. The default value is 0, which is what has been used in just about everything.
This is not correct. There is a non-zero (usually negative) fuel enthalpy that needs to be computed relative the LHV of the fuel you are using. This can be computed...
Without breaking ALL of the existing regression test that rely on 0 fuel enthalpy ... we need to account for this.
Probably just add a helper function and some fuel-data somewhere, and add an option to use it or not. Then we can set all the reg tests to not use it ... default should probably be to have it turned on though.
Some NPSS calculations:
// CONSTANTS ===============================================================
real C_calToJoule = 4.184; // J/cal, conversion constant
real C_lbmToGram = 453.59; // g/lbm, conversion constant
real C_BTUtoCal = 252.16; // cal/BTU, conversion constant
real C_BTUtoJoule = 1055.056; // J/BTU, conversion constant
real hof_CO2 = -393510.; // heat of formation of CO2, J/mol
real hof_H2O = -241826.; // heat of formation of water, J/mol
real MW_C = 12.0107; // molar weight of Carbon, g/mol
real MW_H = 2.01588/2.; // molar weight of Hydrogen, g/mol
real MW_O2 = 31.9988; // molar weight of Oxygen, g/mol
real MW_N = 28.0134/2.; // molar weight of Nitrogen, g/mol
real MW_air = 28.965116; // molar weight of air
real fAir_O2 = 0.23141563; // fraction of air that is O2 by mass
// INPUTS ==================================================================
real Carbon = 1.; // number of Carbon atoms in the fuel
real Hydrogen = 1.94; // number of Hydrogen atoms in the fuel
real Oxygen = 0.; // number of Oxygen atoms in the fuel
real Nitrogen = 0.; // number of Nitrogen atoms in the fuel
real fuelHOF = -22723.; // heat of formation of the fuel, J/mol e.g. -45940 J/mol for NH3
real effComb = 1.; // combustion efficiency
// OUTPUTS =================================================================
real MW_fuel; // molar weight of the fuel, g/mol
real mFuel; // mass of fuel from stoichiometric reaction
real mO2; // mass of Oxygen from stoichiometric reaction
real OFratio; // Oxygen-to-fuel mass ratio
real LHV; // fuel lower heating value, BTU/lbm
real FARstoich; // stoichiometric fuel-to-air mass ratio
// air is defined by CEA on a molar basis as:
// 78.0840 mol N2 20.9476 mol O2 0.9365 mol Ar 0.0319 mol CO2
// uncomment the following lines if a different air composition is desired
//MW_air = (78.084*(MW_N*2.) + 20.9476*MW_O2 + 0.9365*39.948 + 0.0319*44.0095 )/100.;
//fAir_O2 = (20.9476*MW_O2/100. ) / MW_air;
// molar weight of fuel from input definition
MW_fuel = Carbon*MW_C + Hydrogen*MW_H + Nitrogen*MW_N + Oxygen*MW_O2/2.;
// J/mol cal/J g/lbm BTU/cal mol/g = BTU/lbm
LHV = ( fuelHOF - Carbon*(hof_CO2) - Hydrogen*(hof_H2O)/2. )
/ C_calToJoule * C_lbmToGram / C_BTUtoCal / MW_fuel / effComb;
// assumed stoichiometric reaction, fuel is defined as CxHyNwOz
// xC yH wN zO + qO2 --> xCO2 + (y/2)H2O + (w/2)N2 where q = x + y/4 - z/2
mFuel = Carbon*MW_C + Hydrogen*MW_H + Nitrogen*MW_N + Oxygen*MW_O2/2.;
mO2 = ( Carbon + Hydrogen/4. - Oxygen/2. )*MW_O2;
OFratio = mO2 / mFuel;
FARstoich = fAir_O2 / OFratio;
cout.precision = 8;
cout << "LHV = " << LHV << " BTU/lbm " << endl;
cout << "FAR stoich = " << FARstoich << endl;
- 主要言語
- Python
- スター
- 212
- フォーク
- 101
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenMDAO/pyCycle のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
`PsResid` keeps its guess cache outside OpenMDAO's vectors, so `load_case` doesn't reproduce off-design solves対応中かも @Jhawk414 が 10 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
OpenMDAO/pyCycle の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信