Skip to content

Commit

Permalink
Fix: Move b0xcv to TokamakCoordinatesFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchapman committed Nov 18, 2024
1 parent 21891ae commit 31d6bcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integrated/test-drift-instability/2fluid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ class TwoFluid : public PhysicsModel {
if (evolve_te) {
ddt(Te) -= vE_Grad(Te0, phi) + vE_Grad(Te, phi0) + vE_Grad(Te, phi);
ddt(Te) -= Vpar_Grad_par(Ve, Te0) + Vpar_Grad_par(Ve0, Te) + Vpar_Grad_par(Ve, Te);
ddt(Te) += 1.333 * Te0 * (V_dot_Grad(b0xcv, pe) / Ni0 - V_dot_Grad(b0xcv, phi));
ddt(Te) += 3.333 * Te0 * V_dot_Grad(b0xcv, Te);
ddt(Te) += 1.333 * Te0 * (V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), pe) / Ni0 - V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), phi));
ddt(Te) += 3.333 * Te0 * V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), Te);
ddt(Te) += (0.6666667 / Ni0) * Div_par_K_Grad_par(kapa_Te, Te);
}

Expand All @@ -349,8 +349,8 @@ class TwoFluid : public PhysicsModel {
ddt(Ti) -= vE_Grad(Ti0, phi) + vE_Grad(Ti, phi0) + vE_Grad(Ti, phi);
ddt(Ti) -= Vpar_Grad_par(Vi, Ti0) + Vpar_Grad_par(Vi0, Ti) + Vpar_Grad_par(Vi, Ti);
ddt(Ti) +=
1.333 * (Ti0 * V_dot_Grad(b0xcv, pe) / Ni0 - Ti * V_dot_Grad(b0xcv, phi));
ddt(Ti) -= 3.333 * Ti0 * V_dot_Grad(b0xcv, Ti);
1.333 * (Ti0 * V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), pe) / Ni0 - Ti * V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), phi));
ddt(Ti) -= 3.333 * Ti0 * V_dot_Grad(tokamak_coordinates_factory.get_b0xcv(), Ti);
ddt(Ti) += (0.6666667 / Ni0) * Div_par_K_Grad_par(kapa_Ti, Ti);
}

Expand Down

0 comments on commit 31d6bcf

Please sign in to comment.