1111! !! Author: Harry Mclean, Frank Davies, Steven Hepplestone
1212! !!#################################################################################################
1313module Heating
14- use constants, only: real12, int12, pi, StefBoltz
14+ use constants, only: real12, int12, pi
1515 use globe_data, only: Temp_p, Temp_pp, Heat, heated_volume
16- use inputs, only: nx,ny,nz, grid, NA, power_in, time_step, T_System, freq, ntime, T_Bath
16+ use inputs, only: nx,ny,nz, grid, NA, power_in, time_step, T_System, freq, ntime
1717 use materials, only: material
1818 implicit none
1919contains
@@ -35,7 +35,7 @@ subroutine heater(itime, Q, Qdens)
3535 Q = 0._real12
3636 POWER = power_in
3737 time = time_step * real (itime,real12)
38- time_pulse = 1E-12_real12
38+ time_pulse = 0.5_real12
3939 heated_volume= 0.0
4040 heated_num= 0
4141
@@ -89,20 +89,20 @@ subroutine heater(itime, Q, Qdens)
8989 !- -----------------------------
9090 ! AC oscillatory heating raw, with power correction
9191 !- -----------------------------
92- Q(IA) = POWER * (sin (time * 2.0_real12 * PI * freq)** 2.0_real12 )
92+ Q(IA) = POWER * (sin (time * 2.0_real12 * PI * freq)** 2.0_real12 )&
93+ + POWER* 2.0_real12 * PI* freq* tau* sin (2.0_real12 * time* 2.0_real12 * PI* freq)
9394 ! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9495 case (5 )
9596 !- -----------------------------
96- ! AC oscillatory heating raw, with power correction
97+ ! Radiative heating
9798 !- -----------------------------
98- Q(IA) = POWER * (sin (time * 2.0_real12 * PI * freq)** 2.0_real12 )&
99- + POWER* 2.0_real12 * PI* freq* tau* sin (2.0_real12 * time* 2.0_real12 * PI* freq)
99+ ! Q(IA)= e*eps* T**4
100100 ! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101101 case (6 )
102102 !- -----------------------------
103- ! Pulsed heating
103+ ! Step one heating
104104 !- -----------------------------
105- if (( itime .le. time_pulse) ) then
105+ if (itime == 1 ) then
106106 Q(IA) = POWER
107107 else
108108 Q(IA) = 0.0
@@ -111,15 +111,12 @@ subroutine heater(itime, Q, Qdens)
111111 end select
112112
113113 !- -----------------------------
114- ! If emissitivity is not zero, then calculate the radiative heating
114+ ! convert from Q~density to Q
115115 !- -----------------------------
116-
117- Q(IA) = Q(IA) - grid(ix,iy,iz)% em * grid(ix,iy,iz)% length(1 )* &
118- grid(ix,iy,iz)% length(2 )* StefBoltz &
119- * ((Temp_p(IA)** 4.0_real12 ) - (T_Bath** 4.0_real12 ))
116+ ! Qdens(IA)=Q(IA)
117+ Q(IA)= Q(IA)
120118 ! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121119
122-
123120
124121
125122 !- -----------------------------
0 commit comments