also, if i use the second option compute_integral = np.dot(values, weights) * absJ
do i need to use it as append in my for loop ?
cause if i use it with append i get an array of arrays
for exp : [array([-4.04268259e-11, -8.51276143e-11, -1.10411973e-10, -1.10411973e-10,
-8.51276143e-11, -4.04268259e-11]), array([7.42936737e-11, 1.56441745e-10, 2.02907621e-10, 2.02907621e-10,
1.56441745e-10, 7.42936737e-11]), array([2.96305786e-10, 6.23937303e-10, 8.09257360e-10, 8.09257360e-10,
6.23937303e-10, 2.96305786e-10]), array([-4.03758192e-10, -8.50202083e-10, -1.10272665e-09, -1.10272665e-09,
-8.50202083e-10, -4.03758192e-10]), array([1.40439230e-11, 2.95725829e-11, 3.83561461e-11, 3.83561461e-11,
2.95725829e-11, 1.40439230e-11]), array([-6.01814288e-11, -1.26725296e-10, -1.64364877e-10, -1.64364877e-10,
-1.26725296e-10, -6.01814288e-11]), array([2.14710184e-10, 4.52119732e-10, 5.86407030e-10, 5.86407030e-10,
4.52119732e-10, 2.14710184e-10]), array([-1.66728297e-10, -3.51083268e-10, -4.55361008e-10, -4.55361008e-10,
-3.51083268e-10, -1.66728297e-10]), array([1.28421937e-11, 2.70420763e-11, 3.50740358e-11, 3.50740358e-11,
2.70420763e-11, 1.28421937e-11]), array([-9.03286021e-11, -1.90206830e-10, -2.46701514e-10, -2.46701514e-10,
-1.90206830e-10, -9.03286021e-11]), array([-5.05214331e-11, -1.06384040e-10, -1.37981921e-10, -1.37981921e-10,
-1.06384040e-10, -5.05214331e-11]), array([-2.88591664e-11, -6.07693514e-11, -7.88188888e-11, -7.88188888e-11,
-6.07693514e-11, -2.88591664e-11]), array([-1.34599776e-11, -2.83429568e-11, -3.67613001e-11, -3.67613001e-11,
-2.83429568e-11, -1.34599776e-11]), array([-5.67405218e-11, -1.19479705e-10, -1.54967223e-10, -1.54967223e-10,
-1.19479705e-10, -5.67405218e-11])]
[array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449]), array([0.17132449, 0.36076157, 0.46791393, 0.46791393, 0.36076157,
0.17132449])]
one for the deformation and one for the stress