@@ -56,7 +56,7 @@ calcVaporState(
56
56
const amrex::Real& C_eps,
57
57
const amrex::Real& mw_part,
58
58
const amrex::Real* Y_l,
59
- const amrex::Real* h_part ,
59
+ const amrex::Real* h_gas ,
60
60
const amrex::Real* cp_n,
61
61
const amrex::Real* cBoilT,
62
62
amrex::Real* Y_skin,
@@ -75,9 +75,11 @@ calcVaporState(
75
75
amrex::Real T_part = amrex::min (T_in, 0.99 * cBoilT[spf]);
76
76
77
77
// Compute latent heat
78
- amrex::Real part_latent =
79
- h_part[fspec] + fdat.liqprops .latentRef_minus_gasRefH_i [spf] -
80
- fdat.liqprops .cp_i (T_part, spf) * (T_part - fdat.liqprops .ref_T );
78
+ amrex::Real part_latent = fdat.liqprops .latent_i (T_part, h_gas[fspec], spf);
79
+ // TODO: for Manifold model part_latent should be latent_correlation_i
80
+ // amrex::Real part_latent =
81
+ // liqprops.latent_correlation_i(liqprops.boilT_i(spf), spf);
82
+
81
83
L_fuel[spf] = part_latent;
82
84
83
85
amrex::Real pres_sat = fdat.liqprops .psat_i (T_part, spf, part_latent);
@@ -171,7 +173,7 @@ calculateSpraySource(
171
173
get_lambda = false ;
172
174
}
173
175
amrex::GpuArray<amrex::Real, NUM_SPECIES> Y_skin;
174
- amrex::GpuArray<amrex::Real, NUM_SPECIES> h_part ;
176
+ amrex::GpuArray<amrex::Real, NUM_SPECIES> h_gas ;
175
177
amrex::GpuArray<amrex::Real, NUM_SPECIES> cp_n;
176
178
amrex::GpuArray<amrex::Real, NUM_SPECIES> Ddiag;
177
179
amrex::GpuArray<amrex::Real, SPRAY_FUEL_NUM> L_fuel = {{0.0 }};
@@ -219,10 +221,10 @@ calculateSpraySource(
219
221
}
220
222
// Calculate the C_p at the skin temperature for each species
221
223
eos.T2Cpi (T_skin, cp_n.data ());
222
- eos.T2Hi (T_part, h_part .data ());
224
+ eos.T2Hi (T_part, h_gas .data ());
223
225
for (int n = 0 ; n < NUM_SPECIES; ++n) {
224
226
Y_skin[n] = 0 .;
225
- h_part [n] *= SprayUnits::eng_conv;
227
+ h_gas [n] *= SprayUnits::eng_conv;
226
228
cp_n[n] *= SprayUnits::eng_conv;
227
229
}
228
230
amrex::Real cp_skin = 0 .; // Average C_p in modeled skin phase
@@ -231,7 +233,7 @@ calculateSpraySource(
231
233
amrex::Real sumXVap = 0 .; // Sum of Y_L Psat_f / mw_f
232
234
if (fdat.mass_trans ) {
233
235
calcVaporState (
234
- fdat, gpv, rule, T_part, C_eps, mw_part, Y_part.data (), h_part .data (),
236
+ fdat, gpv, rule, T_part, C_eps, mw_part, Y_part.data (), h_gas .data (),
235
237
cp_n.data (), cBoilT, Y_skin.data (), X_vapor.data (), L_fuel.data (), B_M,
236
238
sumXVap, cp_skin, mw_skin);
237
239
} else {
@@ -432,7 +434,7 @@ calculateSpraySource(
432
434
amrex::Real midot =
433
435
(newY * pmass - oldY * startmass) / (fdat.dtmod * flow_dt);
434
436
gpv.fluid_Y_dot [spf] = num_ppp * midot;
435
- gpv.fluid_eng_src += num_ppp * midot * h_part [fdspec];
437
+ gpv.fluid_eng_src += num_ppp * midot * h_gas [fdspec];
436
438
p.rdata (SprayComps::pstateY + spf) = Y_part[spf];
437
439
}
438
440
AMREX_D_TERM (p.rdata (SprayComps::pstateVel) = vel_part[0 ];
0 commit comments