Skip to content

Commit

Permalink
Molceular CRM implementation into physics routines
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Nov 19, 2024
1 parent 05350b2 commit abfc653
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bbb/oderhs.m
Original file line number Diff line number Diff line change
Expand Up @@ -2350,8 +2350,7 @@ call xerrab('*** nhgsp must exceed 1 for ishymol=1 ***')
psorgc(ix,iy,2) = - ng(ix,iy,2)*nuiz(ix,iy,2)*vol(ix,iy) +
. psorbgg(ix,iy,2)
psorg(ix,iy,2) = psorgc(ix,iy,2) # no mol sor averaging
psordisg(ix,iy,2) = ng(ix,iy,2)*nuiz(ix,iy,2)*vol(ix,iy)
. - psorbgg(ix,iy,2)
psordisg(ix,iy,2) = -ng(ix,iy,2)*nuiz(ix,iy,2)*vol(ix,iy)
psordis(ix,iy,2) =
. - (1-ismolcrm)*2*psordisg(ix,iy,2)
. + ismolcrm*cfcrma*ng(ix,iy,2)*vol(ix,iy)
Expand All @@ -2363,7 +2362,7 @@ call xerrab('*** nhgsp must exceed 1 for ishymol=1 ***')
psor(ix,iy,1) = psor(ix,iy,1) + psordis(ix,iy,1)
c ... TODO: How to deal with diffusive atom model - is it maintained?
if(isupgon(1) .eq. 1) then
psor(ix,iy,iigsp) = psor(ix,iy,iigsp) - psordis(ix,iy,iigsp)
psor(ix,iy,iigsp) = psor(ix,iy,iigsp) + psordis(ix,iy,iigsp)
endif
enddo
enddo
Expand Down Expand Up @@ -6053,7 +6052,8 @@ cc uu(ix,iy,iigsp) = uug(ix,iy,igsp)
. - fluxfacy*(fngy(ix,iy,igsp) - fngy(ix ,iy-1,igsp))
. + psgov_use(ix,iy,igsp)*vol(ix,iy)
if (igsp.eq.1 .and. ishymol.eq.1) resng(ix,iy,igsp) =
. resng(ix,iy,igsp)-psordis(ix,iy,2)
. resng(ix,iy,igsp)+psordis(ix,iy,2)

891 continue
892 continue
endif
Expand Down Expand Up @@ -6646,7 +6646,7 @@ call fd2tra (nx,ny,floxg,floyg,conxg,conyg,
. + volpsorg(ix,iy,igsp)
. + psgov_use(ix,iy,igsp)*vol(ix,iy)
if (igsp.eq.1 .and. ishymol.eq.1)
. resng(ix,iy,igsp) = resng(ix,iy,igsp)-psordis(ix,iy,2)
. resng(ix,iy,igsp) = resng(ix,iy,igsp)+psordis(ix,iy,2)
resng(ix,iy,igsp) = resng(ix,iy,igsp) - cfneutdiv*
. cfneutdiv_fng*((fngx(ix,iy,igsp) - fngx(ix1,iy, igsp)) +
. fluxfacy*(fngy(ix,iy,igsp) - fngy(ix,iy-1,igsp)) )
Expand Down Expand Up @@ -7065,7 +7065,7 @@ cc uu(ix,iy,iigsp) = uug(ix,iy,igsp)
. + psgov_use(ix,iy,igsp)*vol(ix,iy)

if (igsp.eq.1 .and. ishymol.eq.1)
. resng(ix,iy,igsp) = resng(ix,iy,igsp)-psordis(ix,iy,2)
. resng(ix,iy,igsp) = resng(ix,iy,igsp)+psordis(ix,iy,2)
891 continue
892 continue
endif
Expand Down

0 comments on commit abfc653

Please sign in to comment.