Skip to content

Commit ed37e60

Browse files
committed
removed malara MTC
1 parent f8d0dc3 commit ed37e60

2 files changed

Lines changed: 8 additions & 37 deletions

File tree

src/sparging/correlations.py

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -322,18 +322,6 @@ def get_list(self, corr_type: CorrelationType) -> list[Correlation]:
322322
)
323323
all_correlations.append(h_l_higbie)
324324

325-
h_l_malara = Correlation(
326-
identifier="h_l_malara",
327-
function=lambda D_l, d_b0: get_h_malara(
328-
D_l=D_l, d_b=d_b0
329-
), # mass transfer coefficient with Malara correlation
330-
corr_type=CorrelationType.MASS_TRANSFER_COEFF,
331-
source="Malara 1995",
332-
description="mass transfer coefficient for tritium in liquid FLiBe using Malara 1995 correlation (used for inert gas stripping from breeder droplets, may not be valid here)",
333-
input_units=["m**2/s", "m"],
334-
output_units="m/s",
335-
)
336-
all_correlations.append(h_l_malara)
337325

338326
h_l_briggs = Correlation(
339327
identifier="h_l_briggs",
@@ -467,13 +455,15 @@ def get_v_g0(Eo, Mo, mu_l, rho_l, d_b) -> float: # TODO move inside class ?
467455
)
468456
v_g0 = mu_l / (rho_l * d_b) * Mo**-0.149 * (J - 0.857)
469457
if v_g0 > ureg("1 m/s") or v_g0 < ureg("0.1 m/s"):
470-
warnings.warn(f"Warning: bubble velocity {v_g0} is out of the typical range")
458+
warnings.warn(
459+
f"Warning: bubble terminal velocity {v_g0} is out of the typical range"
460+
)
471461

472462
return v_g0
473463

474464

475-
def get_eps_g(T, P_g, n_g_dot, area, v_g) -> float:
476-
gamma = n_g_dot * const_R * T / (P_g * area * v_g)
465+
def get_eps_g(T, P_g, ndot_g, area, v_g) -> float:
466+
gamma = ndot_g * const_R * T / (P_g * area * v_g)
477467

478468
eps_g = gamma / (1 + gamma)
479469

@@ -483,7 +473,7 @@ def get_eps_g(T, P_g, n_g_dot, area, v_g) -> float:
483473
warnings.warn(f"Warning: unphysical gas fraction: {eps_g}")
484474
elif np.max(eps_g) > 0.1 * ureg("dimensionless"):
485475
warnings.warn(
486-
f"Warning: high gas fraction: {eps_g}, models assumptions may not hold"
476+
f"Warning: high gas fraction: {eps_g}, model assumptions may not hold"
487477
)
488478
return eps_g
489479

@@ -496,15 +486,6 @@ def get_h_higbie(D_l: float, v_g: float, d_b: float) -> float:
496486
return h_l
497487

498488

499-
def get_h_malara(D_l: float, d_b: float) -> float:
500-
"""
501-
mass transfer coefficient [m/s] for tritium in liquid FLiBe using Malara 1995 correlation
502-
(used for inert gas stripping from breeder droplets, may not be valid here)
503-
"""
504-
h_l = 2 * np.pi**2 * D_l / (3 * d_b)
505-
return h_l
506-
507-
508489
def get_h_briggs(Re: float, Sc: float, D_l: float, d_b: float) -> float:
509490
"""
510491
Sherwood based mass transfer coefficient [m/s] for tritium in liquid FLiBe (Briggs 1970 correlation) -> suited for small rigid interfaces
@@ -555,7 +536,7 @@ def get_h_briggs(Re: float, Sc: float, D_l: float, d_b: float) -> float:
555536
lambda z: get_eps_g(
556537
T=temperature,
557538
P_g=P_g(z),
558-
n_g_dot=ndot_g0,
539+
ndot_g=ndot_g0,
559540
area=area,
560541
v_g=v_g0,
561542
)

src/sparging/model.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ def solve(
390390
c_T2, y_T2 = ufl.split(u)
391391
c_T2_n, y_T2_n = ufl.split(u_n)
392392

393-
# vel_x = u_g0 # TODO velocity should vary with hydrostatic pressure
394-
# vel = dolfinx.fem.Constant(mesh, PETSc.ScalarType([vel_x]))
395-
396393
h_l_const = dolfinx.fem.Constant(mesh, PETSc.ScalarType(h_l))
397394

398395
gen_T2_ave = dolfinx.fem.Constant(
@@ -433,14 +430,7 @@ def solve(
433430
F += -gen_T2 * v_c * ufl.dx
434431

435432
# advection of gas
436-
F += (
437-
1
438-
/ (const.R * T)
439-
# * ufl.inner(ufl.dot(ufl.grad(P_g * y_T2), vel), v_y)
440-
* ufl.grad(u_g * P_g * y_T2)[0]
441-
* v_y
442-
* ufl.dx
443-
)
433+
F += 1 / (const.R * T) * ufl.grad(u_g * P_g * y_T2)[0] * v_y * ufl.dx
444434

445435
# BOUNDARY CONDITIONS
446436
gas_inlet_facets = dolfinx.mesh.locate_entities_boundary(

0 commit comments

Comments
 (0)