@@ -172,7 +172,7 @@ class Ions {
172
172
// / Specific heat (constant volume):
173
173
arma_cube Cv_scgc;
174
174
175
- // / Head Conduction (bulk):
175
+ // / Heat Conduction (bulk):
176
176
arma_cube lambda;
177
177
178
178
// Electrodynamics:
@@ -348,8 +348,75 @@ class Ions {
348
348
\brief Calculates the electron temperature on the given grid
349
349
\param neutrals these are needed for the collision terms
350
350
\param grid this is the grid to solve the equation on
351
+ \param time the time class to know dt
351
352
**/
352
- void calc_electron_temperature (Neutrals neutrals, Grid grid);
353
+ void calc_electron_temperature (Neutrals neutrals, Grid grid, Times time);
354
+
355
+ /* *********************************************************************
356
+ /// @brief Calculate epsilon
357
+ /// @details intermediate variable used in photoelectron & ionization heating
358
+ /// From (Smithro & Solomon, 2008).
359
+ /// @param neutrals
360
+ /// @return epsilon
361
+ **/
362
+ arma_cube calc_epsilon (Neutrals &neutrals);
363
+
364
+ /* *********************************************************************
365
+ \brief Calculates photoelectron heating
366
+ \details Based on (Swartz & Nisbet, 1972) & (Smithro & Solomon, 2008)
367
+ Uses equations 9-12 from (Zhu & Ridley, 2016)
368
+ https://doi.org/10.1016/j.jastp.2016.01.005
369
+ \param epsilon
370
+ \return Qphe
371
+ **/
372
+ arma_cube calc_photoelectron_heating (arma_cube epsilon);
373
+
374
+ /* *********************************************************************
375
+ \brief Calculates auroral heating
376
+ \details NOTE: in GITM this is solved separately for ion precipitation & auroral
377
+ ionization. In Aether these are both in ions.species[iIon].ionization_scgc...
378
+ \param epsilon
379
+ \return Qaurora
380
+ **/
381
+ arma_cube calc_ionization_heating (arma_cube epsilon);
382
+
383
+ /* *********************************************************************
384
+ \brief Calculates electron-ion (elastic) collisional heating
385
+ \details From Schunk and Nagy 2009, and Bei-Chen Zhang and Y. Kamide 2003
386
+ - This differs slightly from the GITM implementation, which assumes several ion species are present.
387
+ Instead, here we use each ion species for the sum.
388
+ - electon-ion collision frequency (from Schunk and Nagy 2009) = 5.45E-5
389
+ - This is capable of handling BOTH the bulk & individual ion temperatures
390
+ \return vector<Qeicp, Qeicm, Qeic_v>
391
+ **/
392
+ std::vector<arma_cube> calc_electron_ion_collisions ();
393
+
394
+ /* *********************************************************************
395
+ \brief Calculates electron-neutral elastic collisional heating
396
+ \details From Schunk and Nagy 2009
397
+ \param neutrals
398
+ \return vector<Qencp, Qencm, Qenc_v>
399
+ **/
400
+ std::vector<arma_cube> calc_electron_neutral_elastic_collisions (Neutrals &neutrals);
401
+
402
+ /* *********************************************************************
403
+ \brief Calculates the electron-neutral inelastic collisional heating
404
+ \details From Schunk and Nagy 2009 pages 277, 282.
405
+ This includes N2, O2 rotation, fine structure, O(1D) exitation & vibration, N2 vibration.
406
+ See equation 15 from (Zhu, Ridley, Deng, 2016) https://doi.org/10.1016/j.jastp.2016.01.005
407
+ \param neutrals
408
+ \return vector<Qencp, Qencm, Qenc_v>
409
+ **/
410
+ std::vector<arma_cube> calc_electron_neutral_inelastic_collisions (Neutrals &neutrals);
411
+
412
+ /* *********************************************************************
413
+ \brief Calculate the thermoelectric current (same at all altitudes)
414
+ \details Use eq. 6 of https://doi.org/10.1016/j.jastp.2016.01.005
415
+ - Since we do not know e- parallel velocity, the dipole needs to do it this way too.
416
+ \param grid
417
+ \return arma_mat JParaAlt
418
+ **/
419
+ arma_mat calc_thermoelectric_current (Grid &grid);
353
420
354
421
/* *********************************************************************
355
422
\brief Check all of the variables for nonfinites, such as nans
0 commit comments