|
From: | Huu Phuoc BUI |
Subject: | [Getfem-users] Divergence of the first Piola-Kirchhoff stress tensor |
Date: | Thu, 12 Jul 2018 15:36:55 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Dear GetFEM-users, As Grad(_expression_) is available in the new version of GetFEM++, I compute the divergence of the first Piola-Kirchhoff stress tensor as (python code): div_sigma = "( Trace(Grad(first_Piola_Kirchhoff_stress)(1,:,:)) + Trace(Grad(first_Piola_Kirchhoff_stress)(2,:,:)) + Trace(Grad(first_Piola_Kirchhoff_stress)(3,:,:)) )" in which first_Piola_Kirchhoff_stress is a macro of a model md, which is defined as: md.add_macro("second_Piola_Kirchhoff_stress",
"Compressible_Mooney_Rivlin_sigma(Grad_u, [c1;c2;d1])") Then I use generic assembly to assembly this quantity as: eta_L_1_tmp =
gf.asm_generic(mim,1,"(("+div_sigma+").delta)*Test_t",-1 with delta a given vector on a meshfem mfz. When executing the code, GetFEM++ only gives the error as segmentation fault (core dumped) If you see any problem in my code, please let me know. Thank you
in advance. Best regards, Phuoc
|
[Prev in Thread] | Current Thread | [Next in Thread] |