fill_ff_terms Subroutine

private elemental subroutine fill_ff_terms(ro, ThAr)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: ro
type(ThArrays_t), intent(inout) :: ThAr

Called by

proc~~fill_ff_terms~~CalledByGraph proc~fill_ff_terms fill_ff_terms proc~eos_e_terms eos_e_terms proc~eos_e_terms->proc~fill_ff_terms proc~r_rot r_roT proc~r_rot->proc~fill_ff_terms proc~t_roe T_roE proc~t_roe->proc~fill_ff_terms proc~eos_terms eos_terms proc~eos_terms->proc~eos_e_terms proc~funct_t_from_roe T_from_roE_obj_t%funct_T_from_roE proc~funct_t_from_roe->proc~eos_e_terms proc~solve_junction solve_junction proc~solve_junction->proc~r_rot proc~solve_junction->proc~t_roe proc~droeint_drop droeint_droP proc~solve_junction->proc~droeint_drop proc~jacobian_rot jacobian_roT proc~solve_junction->proc~jacobian_rot proc~jacobian_star_req_rem_loc jacobian_star_Req_rem_loc proc~solve_junction->proc~jacobian_star_req_rem_loc proc~state_rop state_roP proc~solve_junction->proc~state_rop proc~state_roe state_roE proc~state_roe->proc~t_roe proc~state_roe->proc~jacobian_rot proc~dc2_rot dc2_roT proc~dc2_rot->proc~eos_terms proc~droeint_drop->proc~eos_terms proc~friction_source_term friction_source_term proc~friction_source_term->proc~state_roe proc~friction_source_term->proc~jacobian_rot proc~he_prop he_prop proc~friction_source_term->proc~he_prop proc~state_roe_withr state_roE_withR proc~friction_source_term->proc~state_roe_withr proc~from_sol_to_prim_channel from_sol_to_prim_channel proc~from_sol_to_prim_channel->proc~state_roe proc~from_sol_to_prim_channel->proc~state_roe_withr proc~jacobian_rot->proc~eos_terms proc~junction_resolution_from_and_to_ports Junction_resolution_from_and_to_ports proc~junction_resolution_from_and_to_ports->proc~solve_junction proc~sourceterms_notfriction_channel SourceTerms_NOTfriction_channel proc~sourceterms_notfriction_channel->proc~state_roe proc~sourceterms_notfriction_channel->proc~jacobian_rot proc~sourceterms_notfriction_channel->proc~he_prop proc~sourceterms_notfriction_channel->proc~state_roe_withr proc~circulator_dynamic_parameters_df circulator_dynamic_parameters_t%circulator_dynamic_parameters_df proc~circulator_dynamic_parameters_df->proc~jacobian_rot proc~derivative_function_of_pstar_pt derivative_function_of_pstar_PT proc~derivative_function_of_pstar_pt->proc~jacobian_rot proc~full_physics_definition_channel full_physics_definition_channel proc~full_physics_definition_channel->proc~dc2_rot proc~source_term_definition_channel source_term_definition_channel proc~full_physics_definition_channel->proc~source_term_definition_channel proc~he_prop->proc~jacobian_rot proc~hhh_derivatives HHH_derivatives proc~hhh_derivatives->proc~jacobian_rot proc~hug_brent_f hug_brent_t%hug_brent_f proc~hug_brent_f->proc~droeint_drop proc~hugoniot_star_state hugoniot_star_state proc~hugoniot_star_state->proc~droeint_drop proc~incoming_branch_cold_circulator incoming_branch_cold_circulator proc~incoming_branch_cold_circulator->proc~jacobian_rot proc~incoming_branch_cold_circulator->proc~hhh_derivatives proc~jacobian_star_req_rem jacobian_star_Req_rem proc~incoming_branch_cold_circulator->proc~jacobian_star_req_rem proc~incoming_branch_cold_circulator->proc~state_rop proc~jacobian_channel_req_rem jacobian_channel_Req_rem proc~jacobian_channel_req_rem->proc~jacobian_rot proc~jacobian_star_req_rem->proc~jacobian_rot proc~jacobian_star_req_rem_loc->proc~jacobian_rot proc~jacobian_star_req_rem~2 jacobian_star_Req_rem proc~jacobian_star_req_rem~2->proc~jacobian_rot proc~junction_dynamic_parameters_fcn junction_dynamic_parameters_t%junction_dynamic_parameters_fcn proc~junction_dynamic_parameters_fcn->proc~droeint_drop proc~main_loop main_loop proc~main_loop->proc~friction_source_term proc~main_loop->proc~from_sol_to_prim_channel proc~main_loop->proc~junction_resolution_from_and_to_ports proc~main_loop->proc~full_physics_definition_channel proc~main_loop->proc~source_term_definition_channel proc~boundary_resolution_from_and_to_ports boundary_resolution_from_and_to_ports proc~main_loop->proc~boundary_resolution_from_and_to_ports proc~circulator_resolution_from_and_to_ports circulator_resolution_from_and_to_ports proc~main_loop->proc~circulator_resolution_from_and_to_ports proc~ffsrclink_prelax_resolution_from_and_to_ports FFsrcLink_Prelax_resolution_from_and_to_ports proc~main_loop->proc~ffsrclink_prelax_resolution_from_and_to_ports proc~he_riemann_solver_channel He_Riemann_solver_channel proc~main_loop->proc~he_riemann_solver_channel proc~last_tasks_for_channels last_tasks_for_channels proc~main_loop->proc~last_tasks_for_channels proc~mdot_derivatives mdot_derivatives proc~mdot_derivatives->proc~jacobian_rot proc~outgoing_branch_cold_circulator outgoing_branch_cold_circulator proc~outgoing_branch_cold_circulator->proc~dc2_rot proc~outgoing_branch_cold_circulator->proc~jacobian_rot proc~outgoing_branch_cold_circulator->proc~circulator_dynamic_parameters_df proc~outgoing_branch_cold_circulator->proc~jacobian_star_req_rem proc~outgoing_branch_cold_circulator->proc~state_rop proc~circulator_dynamic_parameters_f circulator_dynamic_parameters_t%circulator_dynamic_parameters_f proc~outgoing_branch_cold_circulator->proc~circulator_dynamic_parameters_f proc~solve_boundary_mt solve_boundary_MT proc~solve_boundary_mt->proc~dc2_rot proc~solve_boundary_mt->proc~jacobian_rot proc~solve_boundary_mt->proc~jacobian_star_req_rem~2 proc~solve_boundary_mt->proc~state_rop proc~solve_boundary_pt solve_boundary_PT proc~solve_boundary_pt->proc~dc2_rot proc~solve_boundary_pt->proc~jacobian_rot proc~solve_boundary_pt->proc~derivative_function_of_pstar_pt proc~solve_boundary_pt->proc~hugoniot_star_state proc~solve_boundary_pt->proc~jacobian_star_req_rem~2 proc~solve_boundary_pt->proc~state_rop proc~state_rop_withr state_roP_withR proc~solve_boundary_pt->proc~state_rop_withr proc~state_rot state_roT proc~solve_boundary_pt->proc~state_rot proc~function_of_pstar_pt function_of_pstar_PT proc~solve_boundary_pt->proc~function_of_pstar_pt proc~source_term_definition_channel->proc~sourceterms_notfriction_channel proc~state_roe_withr->proc~jacobian_rot proc~state_rop->proc~jacobian_rot proc~state_rop_withr->proc~jacobian_rot proc~state_rot->proc~jacobian_rot proc~boundary_resolution_from_and_to_ports->proc~solve_boundary_mt proc~boundary_resolution_from_and_to_ports->proc~solve_boundary_pt proc~channel_init_part1 channel_init_part1 proc~channel_init_part1->proc~state_rot proc~circulator_dynamic_parameters_f->proc~state_rop proc~circulator_resolution_from_and_to_ports->proc~incoming_branch_cold_circulator proc~circulator_resolution_from_and_to_ports->proc~mdot_derivatives proc~circulator_resolution_from_and_to_ports->proc~outgoing_branch_cold_circulator proc~ffsrclink_prelax_resolution_from_and_to_ports->proc~he_prop proc~ffsrclink_prelax_resolution_from_and_to_ports->proc~state_rot proc~function_of_pstar_pt->proc~state_rop proc~he_riemann_solver_channel->proc~jacobian_channel_req_rem proc~last_tasks_for_channels->proc~state_rot program~reims_p reims_p program~reims_p->proc~main_loop program~reims_p->proc~channel_init_part1

Source Code

elemental subroutine fill_ff_terms(ro, ThAr)
    real(dp), intent(in)  :: ro
    type(ThArrays_t), intent(inout) :: ThAr

    ThAr%ff(1) =ro
    ThAr%ff(2) =(ro**2)/2.0_dp
    ThAr%ff(3) =(ro**3)/3.0_dp
    ThAr%ff(4) =(ro**4)/4.0_dp
    ThAr%ff(5) =(ro**5)/5.0_dp
    ThAr%ff(6) =(ro**6)/6.0_dp
    ThAr%ff(7) =(ro**7)/7.0_dp
    ThAr%ff(8) =(ro**8)/8.0_dp
    ThAr%ff(9) =(1.0_dp-exp(-tau*(ro**2)))/(2.0_dp*tau)
    ThAr%ff(10)=(1.0_dp-exp(-tau*(ro**2))*(tau*(ro**2)+1.0_dp))/(2.0_dp*(tau**2))
    ThAr%ff(11)=(2.0_dp-exp(-tau*(ro**2))*(tau*(ro**2)*(tau*(ro**2)+2.0_dp)+2.0_dp))/(2.0_dp*(tau**3))
    ThAr%ff(12)=(6.0_dp-exp(-tau*(ro**2))*(tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)+3.0_dp)+6.0_dp)+6.0_dp))/&
                (2.0_dp*(tau**4))
    ThAr%ff(13)=(exp(-tau*(ro**2))*(-tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)+4.0_dp)+12.0_dp)&
                +24.0_dp)-24.0_dp)+24.0_dp)/(2.0_dp*(tau**5))
    ThAr%ff(14)=(exp(-tau*(ro**2))*(-tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)*(tau*(ro**2)+5.0_dp)+&
                20.0_dp)+60.0_dp)+120.0_dp)-120.0_dp)+120.0_dp)/(2.0_dp*(tau**6))
end subroutine fill_ff_terms