error of gen_yeoh_tl_up_interactive.py

Hi,
Thank you for the release of 2020.3. I appreciate it. I tried the new example, gen_yeoh_tl_up_interactive.py. I encountered the error below.
$python examples/large_deformation/gen_yeoh_tl_up_interactive.py Traceback (most recent call last): File "examples/large_deformation/gen_yeoh_tl_up_interactive.py", line 424, in <module> main(args) File "examples/large_deformation/gen_yeoh_tl_up_interactive.py", line 327, in main integral, omega, m1=m_1, v=v, u=u) File "/home/pyontaku14/anaconda3/lib/python3.7/site-packages/sfepy/terms/terms.py", line 342, in new raise ValueError(msg) ValueError: term 'dw_tl_he_genyeoh' is not in ['d_of_ns_min_grad', 'd_of_ns_surf_min_d_press', 'd_sd_convect', 'd_sd_diffusion', 'd_sd_div', 'd_sd_div_grad', 'd_sd_lin_elastic', 'd_sd_st_grad_div', 'd_sd_st_pspg_c', 'd_sd_st_pspg_p', 'd_sd_st_supg_c', 'd_sd_surface_integrate', 'd_sd_volume_dot', 'd_sum_vals', 'd_surface', 'd_surface_flux', 'd_surface_moment', 'd_tl_surface_flux', 'd_tl_volume_surface', 'd_volume', 'd_volume_surface', 'dw_adj_convect1', 'dw_adj_convect2', 'dw_adj_div_grad', 'dw_advect_div_free', 'dw_bc_newton', 'dw_biot', 'dw_biot_eth', 'dw_biot_th', 'dw_contact', 'dw_contact_plane', 'dw_contact_sphere', 'dw_convect', 'dw_convect_v_grad_s', 'dw_diffusion', 'dw_diffusion_coupling', 'dw_diffusion_r', 'dw_div', 'dw_div_grad', 'dw_elastic_wave', 'dw_elastic_wave_cauchy', 'dw_electric_source', 'dw_jump', 'dw_laplace', 'dw_lin_convect', 'dw_lin_convect2', 'dw_lin_elastic', 'dw_lin_elastic_eth', 'dw_lin_elastic_iso', 'dw_lin_elastic_th', 'dw_lin_prestress', 'dw_lin_strain_fib', 'dw_non_penetration', 'dw_non_penetration_p', 'dw_nonsym_elastic', 'dw_of_ns_surf_min_d_press_diff', 'dw_piezo_coupling', 'dw_point_load', 'dw_point_lspring', 'dw_s_dot_grad_i_s', 'dw_s_dot_mgrad_s', 'dw_shell10x', 'dw_st_adj1_supg_p', 'dw_st_adj2_supg_p', 'dw_st_adj_supg_c', 'dw_st_grad_div', 'dw_st_pspg_c', 'dw_st_pspg_p', 'dw_st_supg_c', 'dw_st_supg_p', 'dw_stokes', 'dw_stokes_wave', 'dw_stokes_wave_div', 'dw_surface_dot', 'dw_surface_flux', 'dw_surface_integrate', 'dw_surface_ltr', 'dw_surface_ndot', 'dw_tl_bulk_active', 'dw_tl_bulk_penalty', 'dw_tl_bulk_pressure', 'dw_tl_diffusion', 'dw_tl_fib_a', 'dw_tl_he_mooney_rivlin', 'dw_tl_he_neohook', 'dw_tl_membrane', 'dw_tl_surface_traction', 'dw_tl_volume', 'dw_ul_bulk_penalty', 'dw_ul_bulk_pressure', 'dw_ul_compressible', 'dw_ul_he_mooney_rivlin', 'dw_ul_he_neohook', 'dw_ul_volume', 'dw_v_dot_grad_s', 'dw_vm_dot_s', 'dw_volume_dot', 'dw_volume_dot_w_scalar_eth', 'dw_volume_dot_w_scalar_th', 'dw_volume_integrate', 'dw_volume_lvf', 'dw_zero', 'ev_biot_stress', 'ev_cauchy_strain', 'ev_cauchy_strain_s', 'ev_cauchy_stress', 'ev_cauchy_stress_eth', 'ev_cauchy_stress_th', 'ev_def_grad', 'ev_diffusion_velocity', 'ev_div', 'ev_grad', 'ev_piezo_strain', 'ev_piezo_stress', 'ev_surface_div', 'ev_surface_grad', 'ev_surface_integrate', 'ev_surface_integrate_mat', 'ev_volume_integrate', 'ev_volume_integrate_mat'] $
What should I do to solve the error? Should I edit terms.py? Best regards,
Takuo

Hi Takuo,
maybe you are mixing sfepy in anaconda and in your home directory? The following works for me:
(activate anaconda) cd python ~/anaconda3/lib/python3.7/site-packages/sfepy/examples/large_deformation/gen_yeoh_tl_up_interactive.py
r.
On 10/3/20 10:19 AM, Takuo Fujita wrote:
Hi,
Thank you for the release of 2020.3. I appreciate it. I tried the new example, gen_yeoh_tl_up_interactive.py. I encountered the error below.
$python examples/large_deformation/gen_yeoh_tl_up_interactive.py Traceback (most recent call last): File "examples/large_deformation/gen_yeoh_tl_up_interactive.py", line 424, in <module> main(args) File "examples/large_deformation/gen_yeoh_tl_up_interactive.py", line 327, in main integral, omega, m1=m_1, v=v, u=u) File "/home/pyontaku14/anaconda3/lib/python3.7/site-packages/sfepy/terms/terms.py", line 342, in new raise ValueError(msg) ValueError: term 'dw_tl_he_genyeoh' is not in ['d_of_ns_min_grad', 'd_of_ns_surf_min_d_press', 'd_sd_convect', 'd_sd_diffusion', 'd_sd_div', 'd_sd_div_grad', 'd_sd_lin_elastic', 'd_sd_st_grad_div', 'd_sd_st_pspg_c', 'd_sd_st_pspg_p', 'd_sd_st_supg_c', 'd_sd_surface_integrate', 'd_sd_volume_dot', 'd_sum_vals', 'd_surface', 'd_surface_flux', 'd_surface_moment', 'd_tl_surface_flux', 'd_tl_volume_surface', 'd_volume', 'd_volume_surface', 'dw_adj_convect1', 'dw_adj_convect2', 'dw_adj_div_grad', 'dw_advect_div_free', 'dw_bc_newton', 'dw_biot', 'dw_biot_eth', 'dw_biot_th', 'dw_contact', 'dw_contact_plane', 'dw_contact_sphere', 'dw_convect', 'dw_convect_v_grad_s', 'dw_diffusion', 'dw_diffusion_coupling', 'dw_diffusion_r', 'dw_div', 'dw_div_grad', 'dw_elastic_wave', 'dw_elastic_wave_cauchy', 'dw_electric_source', 'dw_jump', 'dw_laplace', 'dw_lin_convect', 'dw_lin_convect2', 'dw_lin_elastic', 'dw_lin_elastic_eth', 'dw_lin_elastic_iso', 'dw_lin_elastic_th', 'dw_lin_prestress', 'dw_lin_strain_fib', 'dw_non_penetration', 'dw_non_penetration_p', 'dw_nonsym_elastic', 'dw_of_ns_surf_min_d_press_diff', 'dw_piezo_coupling', 'dw_point_load', 'dw_point_lspring', 'dw_s_dot_grad_i_s', 'dw_s_dot_mgrad_s', 'dw_shell10x', 'dw_st_adj1_supg_p', 'dw_st_adj2_supg_p', 'dw_st_adj_supg_c', 'dw_st_grad_div', 'dw_st_pspg_c', 'dw_st_pspg_p', 'dw_st_supg_c', 'dw_st_supg_p', 'dw_stokes', 'dw_stokes_wave', 'dw_stokes_wave_div', 'dw_surface_dot', 'dw_surface_flux', 'dw_surface_integrate', 'dw_surface_ltr', 'dw_surface_ndot', 'dw_tl_bulk_active', 'dw_tl_bulk_penalty', 'dw_tl_bulk_pressure', 'dw_tl_diffusion', 'dw_tl_fib_a', 'dw_tl_he_mooney_rivlin', 'dw_tl_he_neohook', 'dw_tl_membrane', 'dw_tl_surface_traction', 'dw_tl_volume', 'dw_ul_bulk_penalty', 'dw_ul_bulk_pressure', 'dw_ul_compressible', 'dw_ul_he_mooney_rivlin', 'dw_ul_he_neohook', 'dw_ul_volume', 'dw_v_dot_grad_s', 'dw_vm_dot_s', 'dw_volume_dot', 'dw_volume_dot_w_scalar_eth', 'dw_volume_dot_w_scalar_th', 'dw_volume_integrate', 'dw_volume_lvf', 'dw_zero', 'ev_biot_stress', 'ev_cauchy_strain', 'ev_cauchy_strain_s', 'ev_cauchy_stress', 'ev_cauchy_stress_eth', 'ev_cauchy_stress_th', 'ev_def_grad', 'ev_diffusion_velocity', 'ev_div', 'ev_grad', 'ev_piezo_strain', 'ev_piezo_stress', 'ev_surface_div', 'ev_surface_grad', 'ev_surface_integrate', 'ev_surface_integrate_mat', 'ev_volume_integrate', 'ev_volume_integrate_mat'] $
What should I do to solve the error? Should I edit terms.py? Best regards,
Takuo
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mailman3/lists/sfepy.python.org/ Member address: cimrman3@ntc.zcu.cz
participants (2)
-
Robert Cimrman
-
Takuo Fujita