58 TYPE(t_region
) :: region
67 INTEGER :: ilev, nang, icoff, ijcoff, ijkc
69 REAL(RFREAL) :: stboltz,
pi, rad, avgfac
70 REAL(RFREAL) :: coefc, tempc, fact, rati, adir(3), thet, phi, sgrad
71 REAL(RFREAL),
POINTER :: dv(:,:), coef(:,:), radint(:,:), wvint(:,:)
72 REAL(RFREAL),
POINTER :: angles(:,:), gofact(:)
76 global => region%global
78 'RADI_DiffRadIntens.F90' )
82 ilev = region%currLevel
83 nang = region%radiInput%nAng
89 dv => region%levels(ilev)%mixt%dv
90 gofact => region%levels(ilev)%radi%goFact
91 coef => region%levels(ilev)%radi%radCoef
92 radint => region%levels(ilev)%radi%radInt
93 wvint => region%levels(ilev)%radi%wvInt
94 angles => region%radiInput%angles
96 stboltz = region%radiInput%stBoltz
99 avgfac = 1._rfreal/6._rfreal
104 ijkc = indijk(
i ,
j,
k,icoff,ijcoff)
106 coefc = coef(ijkc,radi_coeff_extinct)
107 tempc = dv(dv_mixt_temp,ijkc)
108 fact = gofact(ijkc)*stboltz*tempc**3/
pi
109 rati = 4._rfreal/coefc
112 wvint(:,ijkc) = avgfac*wvint(:,ijkc)
116 thet = angles(l,radi_angle_polar)
117 phi = angles(l,radi_angle_azimu)
118 adir(1) =
sin(thet)*
cos(phi)
119 adir(2) =
sin(thet)*
sin(phi)
121 sgrad = adir(1)*wvint(xcoord,ijkc) + &
122 adir(2)*wvint(ycoord,ijkc) + &
123 adir(3)*wvint(zcoord,ijkc)
124 radint(l,ijkc) = fact*( tempc - rati*sgrad)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcend
subroutine registerfunction(global, funName, fileName)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE kdcbeg
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcbeg
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcend
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcbeg
subroutine radi_diffradintens(region)
subroutine deregisterfunction(global)