Skip to content

Commit a2ad235

Browse files
committed
Replace index for thermal buoyancy from i_buoyancy to i_thrm_buo
1 parent 0ea9c5a commit a2ad235

12 files changed

+32
-30
lines changed

src/Fortran_libraries/MHD_src/sph_MHD/add_base_force_4_sph_trns.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ subroutine add_linear_force_bwd_trns_snap &
257257
!
258258
!
259259
call add_field_name_4_sph_trns_snap(d_rj, &
260-
& ipol_frc%i_buoyancy, iphys_frc%i_buoyancy, &
261-
& b_trns_frc%i_buoyancy, trns)
260+
& ipol_frc%i_thrm_buo, iphys_frc%i_thrm_buo, &
261+
& b_trns_frc%i_thrm_buo, trns)
262262
call add_field_name_4_sph_trns_snap(d_rj, &
263263
& ipol_frc%i_comp_buo, iphys_frc%i_comp_buo, &
264264
& b_trns_frc%i_comp_buo, trns)
@@ -337,8 +337,8 @@ subroutine add_rot_force_4_sph_trns_snap(d_rj, &
337337
& ipol_rot_frc%i_lorentz, iphys_rot_frc%i_lorentz, &
338338
& b_trns_rot_frc%i_lorentz, trns)
339339
call add_field_name_4_sph_trns_snap(d_rj, &
340-
& ipol_rot_frc%i_buoyancy, iphys_rot_frc%i_buoyancy, &
341-
& b_trns_rot_frc%i_buoyancy, trns)
340+
& ipol_rot_frc%i_thrm_buo, iphys_rot_frc%i_thrm_buo, &
341+
& b_trns_rot_frc%i_thrm_buo, trns)
342342
call add_field_name_4_sph_trns_snap(d_rj, &
343343
& ipol_rot_frc%i_comp_buo, iphys_rot_frc%i_comp_buo, &
344344
& b_trns_rot_frc%i_comp_buo, trns)

src/Fortran_libraries/MHD_src/sph_MHD/cal_div_of_forces.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ subroutine sum_div_of_forces &
7272
& .and. fl_prop%flag_coriolis &
7373
& .and. fl_prop%flag_lorentz) then
7474
call set_MHD_terms_to_div_force &
75-
& (ipol_base%i_press, ipol_div_frc, ipol_div_frc%i_buoyancy, &
75+
& (ipol_base%i_press, ipol_div_frc, ipol_div_frc%i_thrm_buo, &
7676
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
7777
!
7878
else if( fl_prop%flag_inertia &
@@ -99,7 +99,7 @@ subroutine sum_div_of_forces &
9999
& .and. fl_prop%flag_coriolis &
100100
& .and. (fl_prop%flag_lorentz .eqv. .FALSE.)) then
101101
call set_div_cv_terms_to_force &
102-
& (ipol_base%i_press, ipol_div_frc, ipol_div_frc%i_buoyancy, &
102+
& (ipol_base%i_press, ipol_div_frc, ipol_div_frc%i_thrm_buo, &
103103
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
104104
!
105105
else if( fl_prop%flag_inertia &
@@ -132,7 +132,7 @@ subroutine sum_div_of_forces &
132132
end if
133133
if(fl_prop%flag_thermal_buoyancy) then
134134
call add_term_to_div_force &
135-
& (ipol_base%i_press, ipol_div_frc%i_buoyancy, &
135+
& (ipol_base%i_press, ipol_div_frc%i_thrm_buo, &
136136
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
137137
end if
138138
if(fl_prop%flag_comp_buoyancy) then
@@ -162,7 +162,7 @@ subroutine set_DMHD_terms_to_div_force &
162162
d_rj(inod,is_press) = - d_rj(inod,ipol_div_frc%i_m_advect) &
163163
& + d_rj(inod,ipol_div_frc%i_Coriolis) &
164164
& + d_rj(inod,ipol_div_frc%i_lorentz) &
165-
& + d_rj(inod,ipol_div_frc%i_buoyancy) &
165+
& + d_rj(inod,ipol_div_frc%i_thrm_buo) &
166166
& + d_rj(inod,ipol_div_frc%i_comp_buo)
167167
end do
168168
!$omp end parallel do
@@ -211,7 +211,7 @@ subroutine set_div_dcv_terms_to_force &
211211
do inod = 1, nnod_rj
212212
d_rj(inod,is_press) = - d_rj(inod,ipol_div_frc%i_m_advect) &
213213
& + d_rj(inod,ipol_div_frc%i_Coriolis) &
214-
& + d_rj(inod,ipol_div_frc%i_buoyancy) &
214+
& + d_rj(inod,ipol_div_frc%i_thrm_buo) &
215215
& + d_rj(inod,ipol_div_frc%i_comp_buo)
216216
end do
217217
!$omp end parallel do

src/Fortran_libraries/MHD_src/sph_MHD/cal_self_buoyancies_sph.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ subroutine sel_buoyancies_sph_MHD &
9494
!
9595
!
9696
call sel_buoyancy_sph_rj(fl_prop%i_grav, sph_rj, leg, ibuo_temp, &
97-
& ipol_frc%i_buoyancy, fl_prop%coef_buo, sph_bc_U, rj_fld)
97+
& ipol_frc%i_thrm_buo, fl_prop%coef_buo, sph_bc_U, rj_fld)
9898
call sel_buoyancy_sph_rj(fl_prop%i_grav, sph_rj, leg, ibuo_comp, &
9999
& ipol_frc%i_comp_buo, fl_prop%coef_comp_buo, sph_bc_U, rj_fld)
100100
!

src/Fortran_libraries/MHD_src/sph_MHD/cal_sph_divergence_of_force.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ subroutine cal_div_of_buoyancies_sph_2 &
128128
if(flag_thermal_buoyancy) then
129129
call const_sph_div_force &
130130
& (sph_rj, r_2nd, sph_MHD_bc%sph_bc_U, g_sph_rj, &
131-
& ipol_frc%i_buoyancy, ipol_div_frc%i_buoyancy, rj_fld)
131+
& ipol_frc%i_thrm_buo, ipol_div_frc%i_thrm_buo, rj_fld)
132132
end if
133133
!
134134
if(flag_comp_buoyancy) then

src/Fortran_libraries/MHD_src/sph_MHD/rot_self_buoyancies_sph.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ subroutine sel_rot_buoyancy_sph_MHD(sph_rj, &
5858
!
5959
!
6060
call sel_rot_buoyancy_sph_rj(fl_prop%i_grav, sph_rj, &
61-
& ipol_base%i_temp, ipol_rot_frc%i_buoyancy, &
61+
& ipol_base%i_temp, ipol_rot_frc%i_thrm_buo, &
6262
& fl_prop%coef_buo, sph_bc_U, rj_fld)
6363
!
6464
call sel_rot_buoyancy_sph_rj(fl_prop%i_grav, sph_rj, &

src/Fortran_libraries/MHD_src/sph_MHD/self_buoyancy_on_sphere.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ subroutine r_buoyancy_on_sphere &
7373
!
7474
if (iflag_debug.eq.1) write(*,*) 'cal_r_buoyancy_on_sphere'
7575
call cal_r_buoyancy_on_sphere(kr, coef_buo, &
76-
& ipol_scalar, ipol_div_frc%i_buoyancy, &
76+
& ipol_scalar, ipol_div_frc%i_thrm_buo, &
7777
& sph_rj%nidx_rj, sph_rj%radius_1d_rj_r, &
7878
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
7979
end if

src/Fortran_libraries/MHD_src/sph_MHD/sum_rotation_of_forces.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ subroutine sum_forces_to_explicit &
7474
!
7575
if(fl_prop%flag_thermal_buoyancy) then
7676
call add_each_force_to_forces &
77-
& (ipol_exp%i_forces, ipol_force%i_buoyancy, &
77+
& (ipol_exp%i_forces, ipol_force%i_thrm_buo, &
7878
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
7979
end if
8080
if(fl_prop%flag_comp_buoyancy) then
@@ -108,7 +108,7 @@ subroutine licv_forces_to_explicit &
108108
end if
109109
if(fl_prop%flag_thermal_buoyancy) then
110110
call add_each_force_to_forces &
111-
& (ipol_exp%i_forces, ipol_force%i_buoyancy, &
111+
& (ipol_exp%i_forces, ipol_force%i_thrm_buo, &
112112
& rj_fld%n_point, rj_fld%ntot_phys, rj_fld%d_fld)
113113
end if
114114
if(fl_prop%flag_comp_buoyancy) then

src/Fortran_libraries/SERIAL_src/Fields/m_base_force_labels.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
!! thermal_buoyancy [i_thrm_buo]: Thermal buoyancy - \alpha_{T} g T
2828
!! composite_buoyancy [i_comp_buo]:
2929
!! compositional buoyancy - \alpha_{C} g C
30-
!! buoyancy [i_buoyancy]: Total buoyancy
30+
!! buoyancy [i_thrm_buo]: Total buoyancy
3131
!! - (\alpha_{T} T + \alpha_{C} C) g
3232
!!
3333
!! vecp_induction [i_vp_induct]: induction u \times B

src/Fortran_libraries/SERIAL_src/Fields/m_div_force_labels.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
!! div_inertia [div_forces%i_m_advect]
2222
!! div_Coriolis_force [div_forces%i_Coriolis]
2323
!! div_Lorentz_force [div_forces%i_lorentz]
24-
!! div_buoyancy [div_forces%i_buoyancy]
24+
!! div_buoyancy [div_forces%i_thrm_buo]
2525
!! div_composite_buoyancy [div_forces%i_comp_buo]
2626
!!
2727
!! div_momentum_flux [div_forces%i_m_flux]

src/Fortran_libraries/SERIAL_src/Fields/m_rot_force_labels.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
!! rot_inertia [rot_forces%i_m_advect]
1919
!! rot_Coriolis_force [rot_forces%i_Coriolis]
2020
!! rot_Lorentz_force [rot_forces%i_lorentz]
21-
!! rot_buoyancy [rot_forces%i_buoyancy]
21+
!! rot_buoyancy [rot_forces%i_thrm_buo]
2222
!! rot_composite_buoyancy [rot_forces%i_comp_buo]
2323
!!
2424
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

0 commit comments

Comments
 (0)