@@ -288,7 +288,7 @@ class ELMpb : public PhysicsModel {
288288 int damp_width; // Width of inner damped region
289289 BoutReal damp_t_const; // Timescale of damping
290290
291- TokamakCoordinates tokamak_coordinates = TokamakCoordinates (*mesh);
291+ TokamakOptions tokamak_options = TokamakOptions (*mesh);
292292
293293 const BoutReal MU0 = 4.0e-7 * PI;
294294 const BoutReal Mi = 2.0 * 1.6726e-27 ; // Ion mass
@@ -717,13 +717,13 @@ class ELMpb : public PhysicsModel {
717717 if (mesh->get (Lbar, " rmag" ) != 0 ) { // Typical length scale
718718 Lbar = 1.0 ;
719719 }
720- set_tokamak_coordinates_on_mesh (tokamak_coordinates , *mesh, true , Lbar, Bbar);
720+ set_tokamak_coordinates_on_mesh (tokamak_options , *mesh, true , Lbar, Bbar);
721721
722- auto Bpxy = tokamak_coordinates .Bpxy ;
723- auto hthe = tokamak_coordinates .hthe ;
724- auto Rxy = tokamak_coordinates .Rxy ;
725- auto Btxy = tokamak_coordinates .Btxy ;
726- auto B0 = tokamak_coordinates .Bxy ;
722+ auto Bpxy = tokamak_options .Bpxy ;
723+ auto hthe = tokamak_options .hthe ;
724+ auto Rxy = tokamak_options .Rxy ;
725+ auto Btxy = tokamak_options .Btxy ;
726+ auto B0 = tokamak_options .Bxy ;
727727
728728 V0 = -Rxy * Bpxy * Dphi0 / B0;
729729
@@ -820,7 +820,7 @@ class ELMpb : public PhysicsModel {
820820
821821 if (noshear) {
822822 if (include_curvature) {
823- b0xcv.z += tokamak_coordinates .ShearFactor * b0xcv.x ;
823+ b0xcv.z += tokamak_options .ShearFactor * b0xcv.x ;
824824 }
825825 }
826826
@@ -830,7 +830,7 @@ class ELMpb : public PhysicsModel {
830830 if (not mesh->IncIntShear ) {
831831 // Dimits style, using local coordinate system
832832 if (include_curvature) {
833- b0xcv.z += tokamak_coordinates .ShearFactor * b0xcv.x ;
833+ b0xcv.z += tokamak_options .ShearFactor * b0xcv.x ;
834834 }
835835 }
836836
@@ -1231,7 +1231,7 @@ class ELMpb : public PhysicsModel {
12311231
12321232 Field3D result = Grad_par (f, loc);
12331233
1234- auto B0 = tokamak_coordinates .Bxy ;
1234+ auto B0 = tokamak_options .Bxy ;
12351235
12361236 if (nonlinear) {
12371237 result -= bracket (interp_to (Psi, loc), f, bm_mag) * B0;
@@ -1252,7 +1252,7 @@ class ELMpb : public PhysicsModel {
12521252
12531253 Coordinates* metric = mesh->getCoordinates ();
12541254
1255- auto B0 = tokamak_coordinates .Bxy ;
1255+ auto B0 = tokamak_options .Bxy ;
12561256
12571257 // //////////////////////////////////////////
12581258 // Transitions from 0 in core to 1 in vacuum
@@ -1999,7 +1999,7 @@ class ELMpb : public PhysicsModel {
19991999
20002000 Field3D U1 = ddt (U);
20012001
2002- auto B0 = tokamak_coordinates .Bxy ;
2002+ auto B0 = tokamak_options .Bxy ;
20032003
20042004 U1 += (gamma * B0 * B0) * Grad_par (Jrhs, CELL_CENTRE) + (gamma * b0xcv) * Grad (P);
20052005
@@ -2053,7 +2053,7 @@ class ELMpb : public PhysicsModel {
20532053 JP.setBoundary (" P" );
20542054 JP.applyBoundary ();
20552055
2056- auto B0 = tokamak_coordinates .Bxy ;
2056+ auto B0 = tokamak_options .Bxy ;
20572057
20582058 Field3D B0phi = B0 * phi;
20592059 mesh->communicate (B0phi);
0 commit comments