Спасибо за ответы. Код, к примеру, вот такой. Все внутренние таблицы уже посчитаны, но сам цикл счтается долго.
Код:
ng = 0;
For[ll = 1, ll < Length[groups] + 1, ll++,
EE = groups[[ll]][[1]];
\[Nu] = groups[[ll]][[2]];
\[Mu] = EE/2/(1 + \[Nu]);
elements = Elements[[ll]];
u[[ll]] =
Table[{X1[[ll]][[i]], Y1[[ll]][[i]],
If[ll == 2, UnitStep[1 - X[[ll]][[i]]^2 - (Y[[ll]][[i]] - 11)^2],
1] \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(Length[
elements]\)]\((\(q[j + ng]/
2\)/\[Mu] \((\((3 -
4 \[Nu])\) \(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F1ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \((\(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\) + \(p[j + ng]/
2\)/\[Mu] \((\(-\((3 -
4 \[Nu])\)\) \
\(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F1ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \((\(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\))\)\)}, {i, 1, Length[xij[[ll]]]}];
v[[ll]] =
Table[{X1[[ll]][[i]], Y1[[ll]][[i]],
If[ll == 2, UnitStep[1 - X[[ll]][[i]]^2 - (Y[[ll]][[i]] - 11)^2],
1] \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(Length[
elements]\)]\((\(q[j + ng]/
2\)/\[Mu] \((\((3 -
4 \[Nu])\) \(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F1ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \((\(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\) + \(p[j + ng]/
2\)/\[Mu] \((\((3 -
4 \[Nu])\) \(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F1ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \((\(\[Gamma]sij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]cij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\))\)\)}, {i, 1, Length[xij[[ll]]]}];
\[Sigma]XX[[ll]] =
Table[{X1[[ll]][[i]], Y1[[ll]][[i]],
If[InsideContour[X1[[ll]][[i]], Y1[[ll]][[i]]] > 0, \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(Length[
elements]\)]\((q[
j + ng] \((\(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i, j\)\(]\)] +
2 \((1 - \[Nu])\) \
\((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) + \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\) +
p[j + ng]\ \((\(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \((1 -
2 \[Nu])\) \((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\
\(i, j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) + \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\))\)\), 0]}, {i, 1, Length[X[[ll]]]}];
\[Sigma]YY[[ll]] =
Table[{X1[[ll]][[i]], Y1[[ll]][[i]],
If[InsideContour[X1[[ll]][[i]], Y1[[ll]][[i]]] > 0, \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(Length[
elements]\)]\((q[
j + ng] \((\(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i, j\)\(]\)] -
2 \((1 - \[Nu])\) \
\((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\) +
p[j + ng]\ \((\(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \((1 -
2 \[Nu])\) \((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\
\(i, j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\))\)\), 0]}, {i, 1, Length[X[[ll]]]}];
\[Sigma]XY[[ll]] =
Table[{X1[[ll]][[i]], Y1[[ll]][[i]],
If[InsideContour[X1[[ll]][[i]], Y1[[ll]][[i]]] > 0, \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(j = 1\), \(Length[
elements]\)]\((q[
j + ng] \((2 \((1 - \[Nu])\) \
\((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) + \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\) +
p[j + ng]\ \((\((1 -
2 \[Nu])\) \((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\
\(i, j\)\(]\)] \(F2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] - \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F3ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\) - \(yij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)]\ \
\((\(\[Gamma]c2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F4ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] + \
\(\[Gamma]s2ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)] \(F5ij[\([\)\(ll\)\(]\)]\)[\([\)\(i,
j\)\(]\)])\))\))\)\), 0]}, {i, 1, Length[X[[ll]]]}];
Print[Length[elements], " ", ll, " ", ng];
ng = ng + Length[elements];
Print[Length[elements], " ", ll, " ", ng];
-- Ср сен 14, 2011 16:26:10 --Что-то код так плохо вставился.