Skip to content
Snippets Groups Projects

Fix fuel factors and adapt convergence criteria for m0 calculation

Merged Ellen Seabrooke requested to merge fix/initial_sizing_m0_estimation into main
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -228,9 +228,8 @@ void TawAnalytical::calculateFuelFraction() {
void TawAnalytical::calculateMassEstimation() {
// Constants
mo_iteration = 5.5 * Payload;
c_kerosine = 0.55;
c_LH2 = 0.44;
mo_iteration = mo_initial;
c_kerosine = 0.44;
c_LH2 = 0.55;
// Select the appropriate coefficient based on the fuel type
c_fuel = (energyCarrier == "kerosene") ? c_kerosine : c_LH2;
@@ -264,7 +263,7 @@ void TawAnalytical::calculateMassEstimation() {
bool TawAnalytical::checkConvergence(double mo_iteration, double mo_iteration_previous) {
// Convergence check here
double convergence_criteria = 0.0005; // 0.05%
double convergence_criteria = 0.005; // 0.5%
return std::abs(mo_iteration - mo_iteration_previous) < convergence_criteria;
}
Loading