Skip to content

Commit

Permalink
Updates up BCs to account for B-para dir
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Oct 30, 2023
1 parent f4a33a5 commit 4071b43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bbb/boundary.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ real yl(neq), yldot(neq)
Use(Phyvar)
Use(UEpar) # isnewpot,r0slab,cslim,dcslim,csfaclb,csfacrb,csfacti,
# isnion,isupon,isteon,istion,isngon,isnionxy,isuponxy,
# isteonxy,istionxy,isngonxy,isphionxy
# isteonxy,istionxy,isngonxy,isphionxy, upbparadir
Use(Aux) # ixmp
Use(Coefeq) # fac2sp,cf2ef,exjbdry
Use(Bcond) # iflux,ncore,tcoree,tcorei,tbmin,nbmin,ngbmin,
Expand Down Expand Up @@ -1782,7 +1782,7 @@ ccc yldot(iv2) = nurlxp*(phiwo(ix) - phi(ix,ny))/temp0
do ifld = 1, nusp
if (isuponxy(ixt,iy,ifld)==1) then
iv2 = idxu(ixt,iy,ifld)
cs = csfaclb(ifld,jx)*sqrt( (te(ixt,iy)+
cs = upbparadir*csfaclb(ifld,jx)*sqrt( (te(ixt,iy)+
. csfacti*ti(ixt,iy))/mi(ifld) )
if (isupgon(1)==1 .and. zi(ifld)==0.0) then ## neutrals
if (recycmlb(iy,1,jx) > -9.9) then # backscatter with recycm
Expand All @@ -1808,7 +1808,7 @@ ccc yldot(iv2) = nurlxp*(phiwo(ix) - phi(ix,ny))/temp0
if (isbohmms==0) then # simple Bohm condition
yldot(iv2) = nurlxu * (-cs-ueb-up(ixt,iy,ifld))/vpnorm
endif
if(isupss(ifld)==1 .and. up(ixt1,iy,ifld)+ueb .lt. -cs)
if(isupss(ifld)==1 .and. abs(up(ixt1,iy,ifld)+ueb) .gt. abs(cs))
# dup/dx=0 if supersonic
. yldot(iv2) = nurlxu*(up(ixt1,iy,ifld)-up(ixt,iy,ifld))/
. vpnorm
Expand Down Expand Up @@ -2403,7 +2403,7 @@ ccc yldot(iv) = -nurlxp*(phi(0,iy)-phi(1,iy))/temp0
if (isuponxy(ixt,iy,ifld)==1) then
iv2 = idxu(ixt1,iy,ifld) #ixt1 ~ nx
iv = idxu(ixt,iy,ifld) #ixt ~ nx+1
cs = csfacrb(ifld,jx)*sqrt( (te(ixt,iy)+
cs = upbparadir*csfacrb(ifld,jx)*sqrt( (te(ixt,iy)+
. csfacti*ti(ixt,iy))/mi(ifld) )
if (isupgon(1)==1 .and. zi(ifld)==0.0) then ## neutrals
if (recycmrb(iy,1,jx) > -9.9) then # backscatter with recycm
Expand Down Expand Up @@ -2433,7 +2433,7 @@ ccc yldot(iv) = -nurlxp*(phi(0,iy)-phi(1,iy))/temp0
if (isbohmms==0) then # simple Bohm condition
yldot(iv2) = nurlxu * (cs-ueb-up(ixt1,iy,ifld))/vpnorm
endif
if(isupss(ifld)==1 .and. up(ixt2,iy,ifld)+ueb .gt. cs)
if(isupss(ifld)==1 .and. abs(up(ixt2,iy,ifld)+ueb) .gt. abs(cs))
# dup/dx=0 if supersonic
. yldot(iv2) = nurlxu*(up(ixt2,iy,ifld)-up(ixt1,iy,ifld))/
. vpnorm
Expand Down

0 comments on commit 4071b43

Please sign in to comment.