|
| 1 | +########################################################################### |
| 2 | +# DESCRIPTION OF PROBLEM (box2): |
| 3 | +# |
| 4 | +# This is a Python version of the box case from Andreas Holm |
| 5 | +########################################################################### |
| 6 | + |
| 7 | + |
| 8 | +#-Geometry |
| 9 | +bbb.mhdgeo=-1 #-set cartesian geometry |
| 10 | +bbb.isfixlb=2 #left boundary as sym. plane; no flux at cut |
| 11 | + |
| 12 | +grd.radx= 4.e-2 #-outer "radial" wall |
| 13 | +grd.rad0=0.0 #-location of 'radial' separ'x for cylinder or slab |
| 14 | +grd.radm=-1.e-2 #-minimum "radial" position |
| 15 | + |
| 16 | +grd.za0 = 0. #-poloidal symmetry plane location |
| 17 | +grd.zax=3.0 #-poloidal location of divertor plate |
| 18 | +grd.zaxpt=2.25 #-poloidal location of x-point |
| 19 | +grd.alfyt=-2.0 #radial nonuniformity factor; < 0 => expanding |
| 20 | +grd.alfxt=2.76 #poliodal nonuniformity factor; to make smooth |
| 21 | + #transition to exp. grid, alfxt should satisfy |
| 22 | + #the eqn dzun = (zax-zaxpt+dzun) |
| 23 | + # (1-exp(-alfxt/(nx-ixpt2+1))) / |
| 24 | + # (1-exp(-alfxt)) |
| 25 | + #where dzun = (zaxpt-za0)/ixpt2 and |
| 26 | + #ixpt2 = ncore(1,2). |
| 27 | + |
| 28 | +grd.btfix = 2. #constant total B-field |
| 29 | +grd.bpolfix = .2 #constant poloidal B-field |
| 30 | + |
| 31 | + |
| 32 | +#-Grid |
| 33 | +bbb.gengrid=1; #-Note: for slab the grid is not saved in gridue |
| 34 | +bbb.ngrid=1 |
| 35 | +com.nycore[0]=2 |
| 36 | +com.nysol[0]=4 |
| 37 | +com.nxleg[0,1]=3 |
| 38 | +com.nxcore[0,1]=3 |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +#-Boundary conditions |
| 43 | +bbb.isnicore[0]=1 #-same density at all core points |
| 44 | +bbb.ncore=1.1e19 #-density on core boundary |
| 45 | +bbb.iflcore=1 #if=1, specify core power |
| 46 | +bbb.tcoree=25.0 #-used if iflcore=0 |
| 47 | +bbb.tcorei=25.0 #-used if iflcore=0 |
| 48 | +bbb.pcoree = 2.5e4 #-used if iflcore=1 |
| 49 | +bbb.pcorei = 2.5e4 #-used if iflcore=1 |
| 50 | + |
| 51 | +bbb.recycp=0.98 #-recycling coef at plates if ndatlb,rb=0 |
| 52 | +bbb.albdsi=0.99 #-albedos at inner gas source locations |
| 53 | +bbb.albdso=0.99 #-albedos at inner gas source locations |
| 54 | + |
| 55 | +bbb.istepfc=0; bbb.istipfc=0 #-priv. flux has zero temp. deriv. |
| 56 | +bbb.istewc=0; bbb.istiwc=0 #-wall has zero temp. deriv. |
| 57 | +bbb.bcee = 4.; bbb.bcei = 2.5 #-energy transmission coeffs. |
| 58 | +bbb.bcen = 0. #-energy transmission coefficint for neutrals |
| 59 | +bbb.isupss = 0 #-parallel vel sonic |
| 60 | +bbb.isupcore = 0 #-parallel vel =0 on core bndry |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +#-Transport coefficients |
| 65 | +bbb.difni=0.5 |
| 66 | +bbb.kye=0.7 |
| 67 | +bbb.kyi=0.7 |
| 68 | +bbb.travis=1.0 |
| 69 | +bbb.parvis=1.0 |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +#-Flux limits |
| 74 | +bbb.flalfe=0.2 |
| 75 | +bbb.flalfi=0.2 |
| 76 | +bbb.flalfgx=1.e0 |
| 77 | +bbb.flalfgy=1.e0 |
| 78 | +bbb.flalfgxy=1.e0 |
| 79 | +bbb.flalfv=0.5 |
| 80 | + |
| 81 | + |
| 82 | +# Finite difference algorithms |
| 83 | +bbb.methe=33;bbb.methu=33;bbb.methg=33 |
| 84 | +bbb.methn=33;bbb.methi=33 |
| 85 | + |
| 86 | + |
| 87 | +#-Solver package |
| 88 | +bbb.svrpkg = "nksol" #Newton solver using Krylov method |
| 89 | +bbb.mfnksol=-3 |
| 90 | +bbb.epscon1=0.005 |
| 91 | +bbb.ftol=1e-10 |
| 92 | +bbb.premeth = "ilut" #Solution method for precond. Jacobian matrix |
| 93 | +bbb.runtim=1e-07 |
| 94 | +bbb.rlx=0.9 |
| 95 | +###bbb.del=1.e-8 #-this one causes syntax error! |
| 96 | + |
| 97 | + |
| 98 | +#-Neutral gas propeties |
| 99 | +bbb.tfcx=5.;bbb.tfcy=5. #Franck-Condon temperatures |
| 100 | +bbb.cngfx=1.;bbb.cngfy=1. #turn-on grad(T_g) flux if =1 |
| 101 | +bbb.cngflox=1.;bbb.cngfloy=0. #turn-on drift with ions if =1 |
| 102 | +bbb.cngmom = 1. #ion-gas momentum transfer |
| 103 | +bbb.eion = 5. #birth energy of ions |
| 104 | +bbb.ediss = 10. #dissoc. energy lost from elecs (eion=2*ediss) |
| 105 | +bbb.isrecmon = 1 #=1 turns on recombination |
| 106 | +bbb.cfupcx=1.0 # factor multipling momentum cx |
| 107 | +bbb.cfticx=1.0 # factor multipling cx terms in ion energy eqn |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | +#-Parallel neutral momentum equation |
| 112 | +bbb.isupgon[0]=1 |
| 113 | + |
| 114 | +if (bbb.isupgon[0] == 1): |
| 115 | + bbb.isngon=0 |
| 116 | + com.ngsp=1 |
| 117 | + com.nhsp=2 |
| 118 | + ###bbb.ziin[com.nhsp-1]=1 |
| 119 | + bbb.ziin[0]=1 |
| 120 | + bbb.ziin[1]=0 |
| 121 | + |
| 122 | + #-the following are probably default, set them anyway to be sure |
| 123 | + bbb.cngmom=0 |
| 124 | + bbb.cmwall=0 |
| 125 | + bbb.cngtgx=0 |
| 126 | + bbb.cngtgy=0 |
| 127 | + bbb.kxn=0 |
| 128 | + bbb.kyn=0 |
| 129 | + |
| 130 | + |
| 131 | +#-Currents and potential parameters |
| 132 | +bbb.isphion=0 |
| 133 | +bbb.rsigpl=1.e-8 #anomalous cross-field conductivity |
| 134 | +bbb.cfjhf=0. #turn-on heat flow from current (fqp) |
| 135 | +bbb.jhswitch=0 #Joule Heating switch |
| 136 | + |
| 137 | + |
| 138 | +# Atomic physics packages |
| 139 | +#com.istabon=10 #DEGAS rates |
| 140 | +com.istabon=0 #-analytic rates |
| 141 | + |
| 142 | + |
| 143 | +#-Misc |
| 144 | +bbb.restart=0 |
0 commit comments