Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds user-defined electron and ion volumetric power sources #53

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bbb/bbb.v
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,8 @@ voljcsor(0:nx+1,0:ny+1) _real [A] #uniform core-region curr sor. in ix,iy
volpsorg(0:nx+1,0:ny+1,1:ngsp) _real [1/s]#curr source for gas in cell ix,iy
pondpot(0:nx+1,0:ny+1) _real [V] /0./ #elec ponderomotive potential
psgov_use(0:nx+1,0:ny+1,1:ngsp) _real [1/m**3 s]#user-specified gas source
pwre_use(0:nx+1,0:ny+1) _real [W/m^3] #user-given electron energy source, ###-MVU 18-oct-2023
pwri_use(0:nx+1,0:ny+1) _real [W/m^3] #user-given ion energy source, ###-MVU 18-oct-2023
jcvsor real [A] /0./ #total core-region current for voljcsor
ix_sjcsor integer /0/ #if nonzero, beginning ix for voljcsor
ix_ejcsor integer /0/ #if nonzero, ending ix for voljcsor
Expand Down
9 changes: 9 additions & 0 deletions bbb/oderhs.m
Original file line number Diff line number Diff line change
Expand Up @@ -4732,6 +4732,15 @@ cc elseif (ishosor .ne. 0)
if (istimingon .eq. 1) call timimpfj (tsimp, xc)
endif #loop for isimpon==2
ccc MVU - 18-oct-2023, adding external heating terms
do iy=0,ny+1
do ix=0,nx+1
resee(ix,iy) = resee(ix,iy) + pwre_use(ix,iy)*vol(ix,iy)
resei(ix,iy) = resei(ix,iy) + pwri_use(ix,iy)*vol(ix,iy)
enddo
enddo
ccc MVU
* -- joule heating --
Expand Down
Loading