Actually have some issues with a case i try to run.
I try to modelling some air streams in a room with some hot surfaces at some place.
I have some inlet and outlet of air and i want to know temperature of extracted air.
My case is running but listing give me wrong value of temperature.
Code: Select all
! Conditions aux limites sur les aspirations
!====================!
! SELECTION DES FACES!
!====================!
debit_Four_1_aspi_1 = 0.77160d0
call getfbr('Four_1_aspi_1',nlelt, lstelt)
! BOUCLE SUR LES FACES SELECTIONNEES
do ilelt = 1,nlelt
!face
ifac = lstelt(ilelt)
!cellule adjacente a la face
iel = ifabor(ifac)
!Boucle sur les differentes phases (specificite CS V2)
do iphas = 1,nphas
! Affectation du type de CL
!itypfb(ifac,iphas) = ientre ! On fixe la valeur des variables..
!Calcul de la surface
ns = dsqrt(surfbo(1,ifac)**2 + surfbo(2,ifac)**2 + surfbo(3,ifac)**2)
! Calcul des coordonnees du vecteur normal sortant (convention saturne)
sx = surfbo(1,ifac)/ns
sy = surfbo(2,ifac)/ns
sz = surfbo(3,ifac)/ns
itypfb(ifac,iphas) = iindef
icodcl(ifac,iu(iphas)) = 1
rcodcl(ifac,iu(iphas),1) = sx*debit_Four_1_aspi_1
rcodcl(ifac,iu(iphas),2) = rinfin
rcodcl(ifac,iu(iphas),3) = 0.d0
icodcl(ifac,iv(iphas)) = 1
rcodcl(ifac,iv(iphas),1) = sy*debit_Four_1_aspi_1
rcodcl(ifac,iv(iphas),2) = rinfin
rcodcl(ifac,iv(iphas),3) = 0.d0
icodcl(ifac,iw(iphas)) = 1
rcodcl(ifac,iw(iphas),1) = sz*debit_Four_1_aspi_1
rcodcl(ifac,iw(iphas),2) = rinfin
rcodcl(ifac,iw(iphas),3) = 0.d0
icodcl(ifac,ipr(iphas)) = 3
rcodcl(ifac,ipr(iphas),1) = 0.0d0
rcodcl(ifac,ipr(iphas),2) = rinfin
rcodcl(ifac,ipr(iphas),3) = 0.d0
icodcl(ifac,ik(iphas)) = 3
rcodcl(ifac,ik(iphas),1) = 0.0d0
rcodcl(ifac,ik(iphas),2) = rinfin
rcodcl(ifac,ik(iphas),3) = 0.d0
icodcl(ifac,iep(iphas)) = 3
rcodcl(ifac,iep(iphas),1) = 0.0d0
rcodcl(ifac,iep(iphas),2) = rinfin
rcodcl(ifac,iep(iphas),3) = 0.d0
flufac_isortie = flufac_isortie + debit_Four_1_aspi_1
! --- Handle scalars attached to the current phase
if(nscal.gt.0) then
do ii = 1, nscal
if(iphsca(ii).eq.iphas) then
icodcl(ifac,isca(ii)) = 3
rcodcl(ifac,isca(ii),1) = 0.0d0
rcodcl(ifac,isca(ii),2) = rinfin
rcodcl(ifac,isca(ii),3) = 0.d0
endif
enddo
Temp_Air_Four_1_aspi_1 = Temp_Air_Four_1_aspi_1 + rtp(iel,isca(iscalt(iphas)))*volume(iel)/volume_out_Four_1_aspi_1
icodcl(ifac,isca(iscalt)) = 1
rcodcl(ifac,isca(iscalt),1) = Temp_Air_Four_1_aspi_1
rcodcl(ifac,isca(iscalt),2) = rinfin
rcodcl(ifac,isca(iscalt),3) = 0.0d0
endif
enddo
enddo
[...]
write(nfecra,*) 'Temp_Air_Four_1_aspi_1 =',Temp_Air_Four_1_aspi_1
Did someone have an idea/tool for me?
Thanks