No medium at initial position(gas)

I have set the start point and direction of the proton like the code in the below"
double x0 = -0.1, y0 = 0.204, z0 = -0.07, t0 = 0.;
double dx0 = 0., dy0 = -1., dz0 = 0.;

but the error notice"No medium at initial position"
I have seen the contours of the electric potential, in that starting point , it is indeed in the gas area.

ComponentAnsys123::Initialise:
    Read properties of 2 materials from file MPLIST.lis.
ComponentAnsys123::Initialise:
    Read 2159067 elements from file ELIST.lis,
    highest node number: 3124105,
    background elements skipped: 0
ComponentAnsys123::Initialise:
    Read 3124105 nodes from file NLIST.lis.
ComponentAnsys123::Initialise:
    Read 3124105 potentials from file PRNSOL.lis.
ComponentAnsys123::Prepare:
    Caching the bounding boxes of all elements... done.
ComponentAnsys123::InitializeTetrahedralTree: Success.
ComponentAnsys123::PrintRange:
        Dimensions of the elementary block
                  -0.167044 < x < -0.0670436      cm,
                   0.172927 < y < 0.205927        cm,
                  -0.115321 < z < -0.0353211      cm,
                          0 < V < 1500            V.
        Periodicities
            x: none
            y: none
            z: none
ComponentAnsys123::PrintMaterials:
    Currently 2 materials are defined.
      Index Permittivity  Resistivity Notes
          0            1           -1 (drift medium)
          1         4.25        1e+10
MediumMagboltz::LoadGasFile:
    Reading file N2.gas.
    Version 12.
    Gas composition set to N2.
MediumMagboltz::PrintGas:
    Gas composition: N2
    Pressure:    10 Torr
    Temperature: 293.15 K
    Gas file:
      Pressure:    10 Torr
      Temperature: 293.15 K
    Electric field range:  0.005 - 0.05 V/cm in 19 steps.
    Magnetic field:        0 T
    Angle between E and B: 1.5708 rad
    Available electron transport data:
      Velocity along E
      Velocity along Bt
      Velocity along ExB
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
      Longitudinal diffusion coefficient
      Transverse diffusion coefficient
      Diffusion tensor
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
      Townsend coefficient
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
      Attachment coefficient
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
      Lorentz Angle
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
      Ionisation rates
        N2 IONISATION N2+ X2SIGMA VIB=0     ELOSS=  15.581  
          Threshold = 15.5807 eV
        N2 IONISATION N2+ X2SIGMA VIB>0     ELOSS=  15.855  
          Threshold = 15.8547 eV
        N2 IONISATION N2+ A2PI    VIB=0     ELOSS=  16.699  
          Threshold = 16.6987 eV
        N2 IONISATION N2+ A2PI    VIB=1     ELOSS=  16.935  
          Threshold = 16.9347 eV
        N2 IONISATION N2+ A2PI    VIB>1     ELOSS=  17.171  
          Threshold = 17.1707 eV
        N2 IONISATION N2+ B2SIGMA           ELOSS=  18.751  
          Threshold = 18.7506 eV
        N2 IONISATION N2+ C2SIGMA           ELOSS=  23.591  
          Threshold = 23.5905 eV
        N2 DISSOC ION (N+,N)                ELOSS=  24.294  
          Threshold = 24.2935 eV
        N2 DISSOC ION (N+,N*)               ELOSS=  24.4    
          Threshold = 24.3995 eV
        N2 DISSOC ION (N+*,N)               ELOSS=  35.7    
          Threshold = 35.6993 eV
        N2 DISSOC ION (N++,N) AND (N+,N+)   ELOSS=  38.8    
          Threshold = 38.7992 eV
        N2 IONISATION K-SHELL               ELOSS= 401.6    
          Threshold = 401.592 eV
        Low field extrapolation:  constant
        High field extrapolation:  linear
        Interpolation order: 2
    Available ion transport data:
      none
    Electron cross-sections:
      N2
        Level 0:  ELASTIC ANISOTROPIC          NITROGEN            
          Type 0 (elastic)
        Level 1:  IONISATION N2+ X2SIGMA VIB=0     ELOSS=  15.581  
          Type 1 (ionisation). Ionisation threshold: 15.581 eV.
        Level 2:  IONISATION N2+ X2SIGMA VIB>0     ELOSS=  15.855  
          Type 1 (ionisation). Ionisation threshold: 15.855 eV.
        Level 3:  IONISATION N2+ A2PI    VIB=0     ELOSS=  16.699  
          Type 1 (ionisation). Ionisation threshold: 16.699 eV.
        Level 4:  IONISATION N2+ A2PI    VIB=1     ELOSS=  16.935  
          Type 1 (ionisation). Ionisation threshold: 16.935 eV.
        Level 5:  IONISATION N2+ A2PI    VIB>1     ELOSS=  17.171  
          Type 1 (ionisation). Ionisation threshold: 17.171 eV.
        Level 6:  IONISATION N2+ B2SIGMA           ELOSS=  18.751  
          Type 1 (ionisation). Ionisation threshold: 18.751 eV.
        Level 7:  IONISATION N2+ C2SIGMA           ELOSS=  23.591  
          Type 1 (ionisation). Ionisation threshold: 23.591 eV.
        Level 8:  DISSOC ION (N+,N)                ELOSS=  24.294  
          Type 1 (ionisation). Ionisation threshold: 24.294 eV.
        Level 9:  DISSOC ION (N+,N*)               ELOSS=  24.4    
          Type 1 (ionisation). Ionisation threshold: 24.4 eV.
        Level 10:  DISSOC ION (N+*,N)               ELOSS=  35.7    
          Type 1 (ionisation). Ionisation threshold: 35.7 eV.
        Level 11:  DISSOC ION (N++,N) AND (N+,N+)   ELOSS=  38.8    
          Type 1 (ionisation). Ionisation threshold: 38.8 eV.
        Level 12:  ATTACHMENT                                       
          Type 2 (attachment)
        Level 13:  ROTATION  2-0                    ELOSS=  -0.00148
          Type 5 (super-elastic). Energy gain: 0.00148008 eV.
        Level 14:  ROTATION  3-1                    ELOSS=  -0.00247
          Type 5 (super-elastic). Energy gain: 0.0024668 eV.
        Level 15:  ROTATION  4-2                    ELOSS=  -0.00345
          Type 5 (super-elastic). Energy gain: 0.00345352 eV.
        Level 16:  ROTATION  5-3                    ELOSS=  -0.00444
          Type 5 (super-elastic). Energy gain: 0.00444024 eV.
        Level 17:  ROTATION  6-4                    ELOSS=  -0.00543
          Type 5 (super-elastic). Energy gain: 0.00542696 eV.
        Level 18:  ROTATION  7-5                    ELOSS=  -0.00641
          Type 5 (super-elastic). Energy gain: 0.00641368 eV.
        Level 19:  ROTATION  8-6                    ELOSS=  -0.00740
          Type 5 (super-elastic). Energy gain: 0.0074004 eV.
        Level 20:  ROTATION  9-7                    ELOSS=  -0.00839
          Type 5 (super-elastic). Energy gain: 0.00838712 eV.
        Level 21:  ROTATION 10-8                    ELOSS=  -0.00937
          Type 5 (super-elastic). Energy gain: 0.00937384 eV.
        Level 22:  ROTATION 11-9                    ELOSS=  -0.0104 
          Type 5 (super-elastic). Energy gain: 0.0103606 eV.
        Level 23:  ROTATION 12-10                   ELOSS=  -0.0113 
          Type 5 (super-elastic). Energy gain: 0.0113473 eV.
        Level 24:  ROTATION 13-11                   ELOSS=  -0.0123 
          Type 5 (super-elastic). Energy gain: 0.012334 eV.
        Level 25:  ROTATION 14-12                   ELOSS=  -0.0133 
          Type 5 (super-elastic). Energy gain: 0.0133207 eV.
        Level 26:  ROTATION 15-13                   ELOSS=  -0.0143 
          Type 5 (super-elastic). Energy gain: 0.0143074 eV.
        Level 27:  ROTATION 16-14                   ELOSS=  -0.0153 
          Type 5 (super-elastic). Energy gain: 0.0152942 eV.
        Level 28:  ROTATION 17-15                   ELOSS=  -0.0163 
          Type 5 (super-elastic). Energy gain: 0.0162809 eV.
        Level 29:  ROTATION 18-16                   ELOSS=  -0.0173 
          Type 5 (super-elastic). Energy gain: 0.0172676 eV.
        Level 30:  ROTATION 19-17                   ELOSS=  -0.0183 
          Type 5 (super-elastic). Energy gain: 0.0182543 eV.
        Level 31:  ROTATION 20-18                   ELOSS=  -0.0192 
          Type 5 (super-elastic). Energy gain: 0.019241 eV.
        Level 32:  ROTATION 21-19                   ELOSS=  -0.0202 
          Type 5 (super-elastic). Energy gain: 0.0202278 eV.
        Level 33:  ROTATION 22-20                   ELOSS=  -0.0212 
          Type 5 (super-elastic). Energy gain: 0.0212145 eV.
        Level 34:  ROTATION 23-21                   ELOSS=  -0.0222 
          Type 5 (super-elastic). Energy gain: 0.0222012 eV.
        Level 35:  ROTATION 24-22                   ELOSS=  -0.0232 
          Type 5 (super-elastic). Energy gain: 0.0231879 eV.
        Level 36:  ROTATION 25-23                   ELOSS=  -0.0242 
          Type 5 (super-elastic). Energy gain: 0.0241746 eV.
        Level 37:  ROTATION 26-24                   ELOSS=  -0.0252 
          Type 5 (super-elastic). Energy gain: 0.0251614 eV.
        Level 38:  ROTATION 27-25                   ELOSS=  -0.0261 
          Type 5 (super-elastic). Energy gain: 0.0261481 eV.
        Level 39:  ROTATION 28-26                   ELOSS=  -0.0271 
          Type 5 (super-elastic). Energy gain: 0.0271348 eV.
        Level 40:  ROTATION 29-27                   ELOSS=  -0.0281 
          Type 5 (super-elastic). Energy gain: 0.0281215 eV.
        Level 41:  ROTATION 30-28                   ELOSS=  -0.0291 
          Type 5 (super-elastic). Energy gain: 0.0291082 eV.
        Level 42:  ROTATION 31-29                   ELOSS=  -0.0301 
          Type 5 (super-elastic). Energy gain: 0.030095 eV.
        Level 43:  ROTATION 32-30                   ELOSS=  -0.0311 
          Type 5 (super-elastic). Energy gain: 0.0310817 eV.
        Level 44:  ROTATION 33-31                   ELOSS=  -0.0321 
          Type 5 (super-elastic). Energy gain: 0.0320684 eV.
        Level 45:  ROTATION 34-32                   ELOSS=  -0.0331 
          Type 5 (super-elastic). Energy gain: 0.0330551 eV.
        Level 46:  ROTATION 35-33                   ELOSS=  -0.0340 
          Type 5 (super-elastic). Energy gain: 0.0340418 eV.
        Level 47:  ROTATION 36-34                   ELOSS=  -0.0350 
          Type 5 (super-elastic). Energy gain: 0.0350286 eV.
        Level 48:  ROTATION 37-35                   ELOSS=  -0.0360 
          Type 5 (super-elastic). Energy gain: 0.0360153 eV.
        Level 49:  ROTATION 38-36                   ELOSS=  -0.0370 
          Type 5 (super-elastic). Energy gain: 0.037002 eV.
        Level 50:  ROTATION 39-37                   ELOSS=  -0.0380 
          Type 5 (super-elastic). Energy gain: 0.0379887 eV.
        Level 51:  ROTATION 0-2                     ELOSS=   0.00148
          Type 3 (inelastic). Energy loss: 0.00148008 eV.
        Level 52:  ROTATION 1-3                     ELOSS=   0.00247
          Type 3 (inelastic). Energy loss: 0.0024668 eV.
        Level 53:  ROTATION 2-4                     ELOSS=   0.00345
          Type 3 (inelastic). Energy loss: 0.00345352 eV.
        Level 54:  ROTATION 3-5                     ELOSS=   0.00444
          Type 3 (inelastic). Energy loss: 0.00444024 eV.
        Level 55:  ROTATION 4-6                     ELOSS=   0.00543
          Type 3 (inelastic). Energy loss: 0.00542696 eV.
        Level 56:  ROTATION 5-7                     ELOSS=   0.00641
          Type 3 (inelastic). Energy loss: 0.00641368 eV.
        Level 57:  ROTATION 6-8                     ELOSS=   0.00740
          Type 3 (inelastic). Energy loss: 0.0074004 eV.
        Level 58:  ROTATION 7-9                     ELOSS=   0.00839
          Type 3 (inelastic). Energy loss: 0.00838712 eV.
        Level 59:  ROTATION 8-10                    ELOSS=   0.00937
          Type 3 (inelastic). Energy loss: 0.00937384 eV.
        Level 60:  ROTATION 9-11                    ELOSS=   0.0104 
          Type 3 (inelastic). Energy loss: 0.0103606 eV.
        Level 61:  ROTATION 10-12                   ELOSS=   0.0113 
          Type 3 (inelastic). Energy loss: 0.0113473 eV.
        Level 62:  ROTATION 11-13                   ELOSS=   0.0123 
          Type 3 (inelastic). Energy loss: 0.012334 eV.
        Level 63:  ROTATION 12-14                   ELOSS=   0.0133 
          Type 3 (inelastic). Energy loss: 0.0133207 eV.
        Level 64:  ROTATION 13-15                   ELOSS=   0.0143 
          Type 3 (inelastic). Energy loss: 0.0143074 eV.
        Level 65:  ROTATION 14-16                   ELOSS=   0.0153 
          Type 3 (inelastic). Energy loss: 0.0152942 eV.
        Level 66:  ROTATION 15-17                   ELOSS=   0.0163 
          Type 3 (inelastic). Energy loss: 0.0162809 eV.
        Level 67:  ROTATION 16-18                   ELOSS=   0.0173 
          Type 3 (inelastic). Energy loss: 0.0172676 eV.
        Level 68:  ROTATION 17-19                   ELOSS=   0.0183 
          Type 3 (inelastic). Energy loss: 0.0182543 eV.
        Level 69:  ROTATION 18-20                   ELOSS=   0.0192 
          Type 3 (inelastic). Energy loss: 0.019241 eV.
        Level 70:  ROTATION 19-21                   ELOSS=   0.0202 
          Type 3 (inelastic). Energy loss: 0.0202278 eV.
        Level 71:  ROTATION 20-22                   ELOSS=   0.0212 
          Type 3 (inelastic). Energy loss: 0.0212145 eV.
        Level 72:  ROTATION 21-23                   ELOSS=   0.0222 
          Type 3 (inelastic). Energy loss: 0.0222012 eV.
        Level 73:  ROTATION 22-24                   ELOSS=   0.0232 
          Type 3 (inelastic). Energy loss: 0.0231879 eV.
        Level 74:  ROTATION 23-25                   ELOSS=   0.0242 
          Type 3 (inelastic). Energy loss: 0.0241746 eV.
        Level 75:  ROTATION 24-26                   ELOSS=   0.0252 
          Type 3 (inelastic). Energy loss: 0.0251614 eV.
        Level 76:  ROTATION 25-27                   ELOSS=   0.0261 
          Type 3 (inelastic). Energy loss: 0.0261481 eV.
        Level 77:  ROTATION 26-28                   ELOSS=   0.0271 
          Type 3 (inelastic). Energy loss: 0.0271348 eV.
        Level 78:  ROTATION 27-29                   ELOSS=   0.0281 
          Type 3 (inelastic). Energy loss: 0.0281215 eV.
        Level 79:  ROTATION 28-30                   ELOSS=   0.0291 
          Type 3 (inelastic). Energy loss: 0.0291082 eV.
        Level 80:  ROTATION 29-31                   ELOSS=   0.0301 
          Type 3 (inelastic). Energy loss: 0.030095 eV.
        Level 81:  ROTATION 30-32                   ELOSS=   0.0311 
          Type 3 (inelastic). Energy loss: 0.0310817 eV.
        Level 82:  ROTATION 31-33                   ELOSS=   0.0321 
          Type 3 (inelastic). Energy loss: 0.0320684 eV.
        Level 83:  ROTATION 32-34                   ELOSS=   0.0331 
          Type 3 (inelastic). Energy loss: 0.0330551 eV.
        Level 84:  ROTATION 33-35                   ELOSS=   0.0340 
          Type 3 (inelastic). Energy loss: 0.0340418 eV.
        Level 85:  ROTATION 34-36                   ELOSS=   0.0350 
          Type 3 (inelastic). Energy loss: 0.0350286 eV.
        Level 86:  ROTATION 35-37                   ELOSS=   0.0360 
          Type 3 (inelastic). Energy loss: 0.0360153 eV.
        Level 87:  ROTATION 36-38                   ELOSS=   0.0370 
          Type 3 (inelastic). Energy loss: 0.037002 eV.
        Level 88:  ROTATION 37-39                   ELOSS=   0.0380 
          Type 3 (inelastic). Energy loss: 0.0379887 eV.
        Level 89:  VIBRATION     V1                 ELOSS=  -0.2889 
          Type 5 (super-elastic). Energy gain: 0.2889 eV.
        Level 90:  VIBRATION     V1                 ELOSS=   0.2889 
          Type 3 (inelastic). Energy loss: 0.2889 eV.
        Level 91:  VIBRATION    2V1                 ELOSS=   0.5742 
          Type 3 (inelastic). Energy loss: 0.5742 eV.
        Level 92:  VIBRATION    3V1                 ELOSS=   0.8559 
          Type 3 (inelastic). Energy loss: 0.8559 eV.
        Level 93:  VIBRATION    4V1                 ELOSS=   1.1342 
          Type 3 (inelastic). Energy loss: 1.1342 eV.
        Level 94:  VIBRATION    5V1                 ELOSS=   1.4088 
          Type 3 (inelastic). Energy loss: 1.4088 eV.
        Level 95:  VIBRATION    6V1                 ELOSS=   1.6801 
          Type 3 (inelastic). Energy loss: 1.6801 eV.
        Level 96:  VIBRATION    7V1                 ELOSS=   1.9475 
          Type 3 (inelastic). Energy loss: 1.9475 eV.
        Level 97:  VIBRATION    8V1                 ELOSS=   2.2115 
          Type 3 (inelastic). Energy loss: 2.2115 eV.
        Level 98:  VIBRATION    9V1                 ELOSS=   2.4718 
          Type 3 (inelastic). Energy loss: 2.4718 eV.
        Level 99:  VIBRATION   10V1                 ELOSS=   2.7284 
          Type 3 (inelastic). Energy loss: 2.7284 eV.
        Level 100:  VIBRATION   11V1                 ELOSS=   2.9815 
          Type 3 (inelastic). Energy loss: 2.9815 eV.
        Level 101:  VIBRATION   12V1                 ELOSS=   3.2310 
          Type 3 (inelastic). Energy loss: 3.231 eV.
        Level 102:  VIBRATION   13V1                 ELOSS=   3.4769 
          Type 3 (inelastic). Energy loss: 3.4769 eV.
        Level 103:  VIBRATION   14V1                 ELOSS=   3.7191 
          Type 3 (inelastic). Energy loss: 3.7191 eV.
        Level 104:  VIBRATION   15V1                 ELOSS=   3.9576 
          Type 3 (inelastic). Energy loss: 3.9576 eV.
        Level 105:  A3SIG     V=0-4                  ELOSS=   6.725  
          Type 4 (excitation). Excitation energy: 6.725 eV.
        Level 106:  A3SIG     V=5-9                  ELOSS=   7.360  
          Type 4 (excitation). Excitation energy: 7.36 eV.
        Level 107:  B 3PI     V=0-3                  ELOSS=   7.744  
          Type 4 (excitation). Excitation energy: 7.744 eV.
        Level 108:  W3DEL     V=0-5                  ELOSS=   8.050  
          Type 4 (excitation). Excitation energy: 8.05 eV.
        Level 109:  A3SIG     V=10-21                ELOSS=   8.217  
          Type 4 (excitation). Excitation energy: 8.217 eV.
        Level 110:  B 3PI     V=4-16                 ELOSS=   8.451  
          Type 4 (excitation). Excitation energy: 8.451 eV.
        Level 111:  W3DEL     V=6-10                 ELOSS=   8.729  
          Type 4 (excitation). Excitation energy: 8.729 eV.
        Level 112:  A 1PI     V=0-3                  ELOSS=   8.950  
          Type 4 (excitation). Excitation energy: 8.95 eV.
        Level 113:  B!3SIG    V=0-6                  ELOSS=   8.974  
          Type 4 (excitation). Excitation energy: 8.974 eV.
        Level 114:  A!1SIG    V=0-6                  ELOSS=   9.191  
          Type 4 (excitation). Excitation energy: 9.191 eV.
        Level 115:  W3DEL     V=11-19                ELOSS=   9.562  
          Type 4 (excitation). Excitation energy: 9.562 eV.
        Level 116:  W 1DEL    V=0-5                  ELOSS=   9.590  
          Type 4 (excitation). Excitation energy: 9.59 eV.
        Level 117:  A 1PI     V=4-15                 ELOSS=   9.665  
          Type 4 (excitation). Excitation energy: 9.665 eV.
        Level 118:  B!3SIG    V=7-18                 ELOSS=   9.933  
          Type 4 (excitation). Excitation energy: 9.933 eV.
        Level 119:  A!1SIG    V=7-19                 ELOSS=  10.174  
          Type 4 (excitation). Excitation energy: 10.174 eV.
        Level 120:  W 1DEL    V=6-18                 ELOSS=  10.536  
          Type 4 (excitation). Excitation energy: 10.536 eV.
        Level 121:  C 3PI     V=0-4                  ELOSS=  11.188  
          Type 4 (excitation). Excitation energy: 11.188 eV.
        Level 122:  E 3SIG                           ELOSS=  11.875  
          Type 4 (excitation). Excitation energy: 11.875 eV.
        Level 123:  A!!1SIG   V=0-1                  ELOSS=  12.289  
          Type 4 (excitation). Excitation energy: 12.289 eV.
        Level 124:  B 1PI     V=0-6     F=0.1855     ELOSS=  12.781  
          Type 4 (excitation). Excitation energy: 12.781 eV.
        Level 125:  C!1SIG    V=0-3     F=0.1500     ELOSS=  13.000  
          Type 4 (excitation). Excitation energy: 13 eV.
        Level 126:  G 3PI     V=0-3                  ELOSS=  13.001  
          Type 4 (excitation). Excitation energy: 13.001 eV.
        Level 127:  C3 1PI    V=0-3     F=0.1500     ELOSS=  13.076  
          Type 4 (excitation). Excitation energy: 13.076 eV.
        Level 128:  F 3PI     V=0-3                  ELOSS=  13.174  
          Type 4 (excitation). Excitation energy: 13.174 eV.
        Level 129:  B 1PI     V=7-14    F=0.0663     ELOSS=  13.338  
          Type 4 (excitation). Excitation energy: 13.338 eV.
        Level 130:  B!1SIG    V=0-10    F=0.0601     ELOSS=  13.385  
          Type 4 (excitation). Excitation energy: 13.385 eV.
        Level 131:  O3 1PI    V=0-3     F=0.0828     ELOSS=  13.628  
          Type 4 (excitation). Excitation energy: 13.628 eV.
        Level 132:  C!1SIG    V=4-6     F=0.1390     ELOSS=  14.090  
          Type 4 (excitation). Excitation energy: 14.09 eV.
        Level 133:  B!1SIG    V=11-24   F=0.2650     ELOSS=  14.232  
          Type 4 (excitation). Excitation energy: 14.232 eV.
        Level 134:  E!1SIG              F=0.0108     ELOSS=  14.36   
          Type 4 (excitation). Excitation energy: 14.36 eV.
        Level 135:  E 1PI               F=0.0237     ELOSS=  14.45   
          Type 4 (excitation). Excitation energy: 14.45 eV.
        Level 136:  SINGLET LEVEL       F=0.0117     ELOSS=  14.839  
          Type 4 (excitation). Excitation energy: 14.839 eV.
        Level 137:  SUM HIGH SINGLETS   F=0.1152     ELOSS=  15.2    
          Type 4 (excitation). Excitation energy: 15.2 eV.
        Level 138:  NEUTRAL DISS ABOVE IONIS. ENERGY ELOSS=  15.6    
          Type 4 (excitation). Excitation energy: 15.6 eV.
        Level 139:  NEUTRAL DISS ABOVE IONIS. ENERGY ELOSS=  16.6    
          Type 4 (excitation). Excitation energy: 16.6 eV.
ViewDrift::Plot3d:
     Could not determine the plot limits.
Sensor::SetArea:
    -0.167044 < x [cm] < -0.0670436
    0.172927 < y [cm] < 0.205927
    -0.115321 < z [cm] < -0.0353211
TrackHeed::NewTrack:
    No medium at initial position.
TrackHeed::GetCluster:
    Track has not been initialized. Call NewTrack first.
Killed

Did you associate the field map region corresponding to the gas (in your case the one with index 0 in your case, I believe) with the MediumMagboltz object? Something like this?

fm.SetMedium(0, &gas);

Hi,
it indeed is this reason, I have add the code like this in the below

 const size_t nMaterials = fm.GetNumberOfMaterials();
  for (size_t i = 0; i < nMaterials; ++i) {
    if (fm.GetPermittivity(i) == 1.) fm.SetMedium(i, &gas);
  }
  fm.PrintMaterials();

are these code equal to the fm.SetMedium(0, &gas);?

Hi,
Thanks for your reply.
After I have associated the gas with the corresponding field map material, the results are like this"

ComponentAnsys123::PrintMaterials:
    Currently 2 materials are defined.
      Index Permittivity  Resistivity Notes
          0            1           -1 N2, drift medium, ionisable (drift medium)
          1         4.25        1e+10
ViewDrift::Plot3d:
     Could not determine the plot limits.
Sensor::SetArea:
    -0.167044 < x [cm] < -0.0670436
    0.172927 < y [cm] < 0.205927
    -0.115321 < z [cm] < -0.0353211
Killed

Please provide a minimal working example reproducing the problem.

Hi,
Thanks a lot for your reply
gem.C (4.4 KB)

Ok, this is the same problem as you reported on another thread. Please don’t open multiple threads for the same issue.