Account for fuel LHV in fuel enthalpy
还没有人认领这个 Issue。
评估
调研方向
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 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 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 天内回复