@@ -2374,7 +2374,7 @@ Scheme3D::performNSteps (time_step startStep, time_step numberTimeSteps, int dum
23742374#endif /* !PARALLEL_GRID */
23752375 for (grid_coord k = start; k < end; ++k)
23762376 {
2377- GridCoordinate3D pos (EzSize. getX () / 8 , EzSize.getY () / 2 , k);
2377+ GridCoordinate3D pos (20 , EzSize.getY () / 2 , k);
23782378 FieldPointValue* tmp = Ez.getFieldPointValue (pos);
23792379
23802380 #ifdef COMPLEX_FIELD_VALUES
@@ -2435,7 +2435,7 @@ Scheme3D::performNSteps (time_step startStep, time_step numberTimeSteps, int dum
24352435 /*
24362436 * FIXME: add dump step
24372437 */
2438- if (t % 100 == 0 )
2438+ if (t % 1000 == 0 )
24392439 {
24402440 if (dumpRes)
24412441 {
@@ -3578,21 +3578,21 @@ Scheme3D::initGrids ()
35783578
35793579 GridCoordinateFP3D size = yeeLayout->getEpsCoordFP (OmegaPE.getTotalSize ());
35803580
3581- // if (posAbs.getX () >= 20 && posAbs.getX () < 40
3582- // && posAbs.getY () >= 20 && posAbs.getY () < 60
3583- // && posAbs.getZ () >= 20 && posAbs.getZ () < 60)
3584- // {
3585- //
3581+ if (posAbs.getX () >= 30 && posAbs.getX () < 50
3582+ && posAbs.getY () >= 20 && posAbs.getY () < 60
3583+ && posAbs.getZ () >= 20 && posAbs.getZ () < 60 )
3584+ {
3585+
35863586// // if ((posAbs.getX () - size.getX () / 2) * (posAbs.getX () - size.getX () / 2)
35873587// // + (posAbs.getY () - size.getY () / 2) * (posAbs.getY () - size.getY () / 2)
35883588// // + (posAbs.getZ () - size.getZ () / 2) * (posAbs.getZ () - size.getZ () / 2) < (size.getX ()*1.5/7.0) * (size.getX ()*1.5/7.0))
35893589// // {
3590- // #ifdef COMPLEX_FIELD_VALUES
3591- // valOmega->setCurValue (FieldValue (sqrtf(2.0) * 2 * PhysicsConst::Pi * sourceFrequency, 0));
3592- // #else /* COMPLEX_FIELD_VALUES */
3593- // valOmega->setCurValue (sqrtf(2.0) * 2 * PhysicsConst::Pi * sourceFrequency);
3594- // #endif /* !COMPLEX_FIELD_VALUES */
3595- // }
3590+ #ifdef COMPLEX_FIELD_VALUES
3591+ valOmega->setCurValue (FieldValue (sqrtf (2.0 ) * 2 * PhysicsConst::Pi * sourceFrequency, 0 ));
3592+ #else /* COMPLEX_FIELD_VALUES */
3593+ valOmega->setCurValue (sqrtf (2.0 ) * 2 * PhysicsConst::Pi * sourceFrequency);
3594+ #endif /* !COMPLEX_FIELD_VALUES */
3595+ }
35963596
35973597 OmegaPE.setFieldPointValue (valOmega, pos);
35983598 }
@@ -3618,21 +3618,21 @@ Scheme3D::initGrids ()
36183618
36193619 GridCoordinateFP3D size = yeeLayout->getEpsCoordFP (OmegaPM.getTotalSize ());
36203620
3621- // if (posAbs.getX () >= 20 && posAbs.getX () < 40
3622- // && posAbs.getY () >= 20 && posAbs.getY () < 60
3623- // && posAbs.getZ () >= 20 && posAbs.getZ () < 60)
3624- // {
3621+ if (posAbs.getX () >= 30 && posAbs.getX () < 50
3622+ && posAbs.getY () >= 20 && posAbs.getY () < 60
3623+ && posAbs.getZ () >= 20 && posAbs.getZ () < 60 )
3624+ {
36253625//
36263626// // if ((posAbs.getX () - size.getX () / 2) * (posAbs.getX () - size.getX () / 2)
36273627// // + (posAbs.getY () - size.getY () / 2) * (posAbs.getY () - size.getY () / 2)
36283628// // + (posAbs.getZ () - size.getZ () / 2) * (posAbs.getZ () - size.getZ () / 2) < (size.getX ()*1.5/7.0) * (size.getX ()*1.5/7.0))
36293629// // {
3630- // #ifdef COMPLEX_FIELD_VALUES
3631- // valOmega->setCurValue (FieldValue (sqrtf(2.0) * 2 * PhysicsConst::Pi * sourceFrequency, 0));
3632- // #else /* COMPLEX_FIELD_VALUES */
3633- // valOmega->setCurValue (sqrtf(2.0) * 2 * PhysicsConst::Pi * sourceFrequency);
3634- // #endif /* !COMPLEX_FIELD_VALUES */
3635- // }
3630+ #ifdef COMPLEX_FIELD_VALUES
3631+ valOmega->setCurValue (FieldValue (sqrtf (2.0 ) * 2 * PhysicsConst::Pi * sourceFrequency, 0 ));
3632+ #else /* COMPLEX_FIELD_VALUES */
3633+ valOmega->setCurValue (sqrtf (2.0 ) * 2 * PhysicsConst::Pi * sourceFrequency);
3634+ #endif /* !COMPLEX_FIELD_VALUES */
3635+ }
36363636
36373637 OmegaPM.setFieldPointValue (valOmega, pos);
36383638 }
0 commit comments