Skip to content

Commit 072c957

Browse files
committed
Add cattaneo heating
1 parent 95f9009 commit 072c957

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/heatflow/mod_heating.f90

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Heating
1414
use constants, only: real12, int12, pi, StefBoltz
1515
use globe_data, only: Temp_p, Temp_pp, Heat, heated_volume, Q_P, heated_temp
1616
use inputs, only: nx,ny,nz, grid, NA, power_in, time_step, heated_steps, T_System, freq, ntime, &
17-
T_Bath
17+
T_Bath, icattaneo
1818
use materials, only: material
1919
implicit none
2020
contains
@@ -81,6 +81,15 @@ subroutine heater(itime, Q, Qdens)
8181
else
8282
Q(IA) = 0.0_real12
8383
end if
84+
85+
if (icattaneo .eq. 1) then
86+
if (itime .eq. 1) then
87+
Q(IA) = Q(IA) + (tau*(POWER))
88+
end if
89+
if (itime .eq. heated_steps+1) then
90+
Q(IA) = Q(IA) - (tau*(POWER))
91+
end if
92+
end if
8493
!^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8594
case(3)
8695
!------------------------------

0 commit comments

Comments
 (0)