Variable volumetric source term
Posted: Sun Nov 09, 2014 11:51 pm
Hello guys,
I'm trying to implement volumetric heat source in a domain. The sources are not constant and they change with temperature. For constant terms, I've used ustssc.f90 with:
Now pwatt should change with a linear equation as a function of temprature.
Any comment is appreciated.
I'm trying to implement volumetric heat source in a domain. The sources are not constant and they change with temperature. For constant terms, I've used ustssc.f90 with:
Code: Select all
volf = 0.d0
CALL GETCEL(argument, NLELT,LSTELT)
do ilelt = 1, nlelt
iel = lstelt(ilelt)
volf = volf + volume(iel)
enddo
do ilelt = 1, nlelt
iel = lstelt(ilelt)
! No implicit source term
crvimp(iel) = 0.d0
! Explicit source term
crvexp(iel) = volume(iel)*pwatt/volf
enddo
enddo
Any comment is appreciated.