Skip to content

Commit 26a2793

Browse files
author
cjperks7
committed
[#121] added conversion on convection from LFS to FSA
1 parent 09fc832 commit 26a2793

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

aurora/facit.py

+13
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,19 @@ def __init__(self, rho: (np.ndarray, float), \
497497

498498
self.Flux_z = self.Vrz*Nimp # radial collisional flux [1/(m s)]
499499

500+
# Converts convection from LFS to FSA
501+
if not np.isscalar(e0imp):
502+
f_conv_fsa = np.gradient(e0imp, amin*rho)/e0imp
503+
elif e0imp == 1.0:
504+
f_conv_fsa = 0.0
505+
else:
506+
print('ERROR')
507+
f_conv_fsa = 0.0
508+
509+
self.Vconv_PS += f_conv_fsa *self.Dz_PS
510+
self.Vconv_BP += f_conv_fsa *self.Dz_BP
511+
self.Vconv_CL += f_conv_fsa *self.Dz_CL
512+
self.Vconv += f_conv_fsa *self.Dz
500513

501514
# asymmetries
502515

0 commit comments

Comments
 (0)