Subroutine to solve a deterministic 'smooth' problem
subroutine solve_fe_prob
implicit none
call system_clock(count=cinit)
call cpu_time(t1)
call solve_FE_film(fe_f, mat, bc)
call compute_corner_fluxes(fe_f, mat, bf)
call cpu_time(t2)
call system_clock(count=cend,count_rate=cr)
write(OPU,*) 'FE cpu time (s):', char(9), t2 - t1
write(unit_num_res,*) 'FE_cpu_time_(s):', char(9), t2 - t1
write(OPU,*) 'FE real comp time (s):', char(9), real(cend - cinit) / real(cr)
write(unit_num_res,*) 'FE_real_comp_time_(s):', char(9), real(cend - cinit) / real(cr)
save_PeK = .false.
save_PeE = .false.
if (s_vtk /= NO_VTK) call save_fe_f_vtk(fe_f, trim(ms_vtk))
select case(test_num)
case (1)
call save_profile_x_comp_slider(fe_f, trim(prof_ts), lx, ly / 2)
call execute_command_line("python3 bin/pyt/filetoplot.py "// trim(prof_ts) //" '$x/L$' '$ph^2/6 \mu V L$' ")
case (5)
call save_profile_y_comp_air_pocket(fe_f, trim(prof_ts), ly, lx/2, bc)
call execute_command_line("python3 bin/pyt/filetoplot.py "// trim(prof_ts) //" '$x/L$' '$ph^2/6 \mu V L$' ")
call save_profile_x_comp_air_pocket(fe_f, trim(prof_ts)//'2', lx, ly / 2, bc)
call execute_command_line("python3 bin/pyt/filetoplot.py "// trim(prof_ts)//'2' //" '$x/L$' '$ph^2/6 \mu V L$' ")
case default
call save_profile_x_fe(fe_f, trim(prof_ts), lx, ly / 2)
endselect
call save_fe_field(fe_f = fe_f, & !
file_name = "out/"//res_dir//"/"//"pressure.sur", & !
code = P_N, & !
nodal = .true.)
if (save_PeK) & !
call save_fe_field(fe_f = fe_f, & !
file_name = "out/"//res_dir//"/"//"PeK.sur", & !
code = PEK_C, & !
nodal = .false.)
if (save_PeE) & !
call save_fe_field(fe_f = fe_f, & !
file_name = "out/"//res_dir//"/"//"PeE.sur", & !
code = PEE_C, & !
nodal = .false.)
write(OPU,*) 'load FE (N):', char(9), fe_f%fz()
write(unit_num_res,*) 'load_FE_(N):', char(9), fe_f%fz()
write(OPU,*) 'fric/x FE (N)', char(9), fe_f%fx()
write(unit_num_res,*) 'fric/x_FE_(N)', char(9), fe_f%fx()
write(OPU,*) 'fric/y FE (N)', char(9), fe_f%fy()
write(unit_num_res,*) 'fric/y_FE_(N)', char(9), fe_f%fy()
return
endsubroutine solve_fe_prob