Access to nodal results on element by element basis

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
HarryvL
Posts: 503
Joined: Sat Jan 06, 2018 7:38 pm
Location: Denmark

Re: Access to nodal results on element by element basis

Postby HarryvL » Wed Jul 11, 2018 3:51 pm

bernd wrote:
Wed Jul 11, 2018 6:39 am
... Are these the arrays you are looking for?
Hmmmmm, I am not entirely sure. I just want the global node numbers for each 10-node terahedral element, element-by-element.

My routine gives the following for elNodes (79 elements of 10 nodes each)

Code: Select all

[[ 40  19  10  20 168 106 196 171  66 107]
 [ 10  31  30  40 150  79 149 196 128 129]
 [ 38  17  18  47 163  62 166 140 197 198]
 [ 32  41  11  12 130 199 152 165 200  56]
 [ 12  32  41  42 165 130 200 201 143  92]
 [ 42  21  12  22 172 110 201 185  68 123]
 [ 10  31  40  11 150 128 196  55 151 202]
 [ 11  12  41  21  56 200 199 109 110 173]
 [ 20  41  11  40 170 199 108 171  91 202]
 [ 20  41  21  11 170 173  67 108 199 109]
 [ 32  11  41  31 152 199 130  80 151 131]
 [ 11  10  20  40  55 107 108 202 196 171]
 [ 38  17  47  37 163 197 140  86 162 141]
 [ 38  18  49  48 166 204 203 145 205 206]
 [ 46  15  45  36 207 208  96 139 159 137]
 [ 47  16  46  37 209 210  97 141 161 138]
 [ 18   4   2  49 122  64  63 204 189 190]
 [ 18  17  27  47  62 120 121 198 197 183]
 [ 38  18  48  47 166 205 145 140 198  98]
 [ 12  23  42  22 111 175 201 123  69 185]
 [ 26  47  27  17 180 183  73 119 197 120]
 [ 50  29   9   6 211 147 212 195 146  53]
 [ 27  48  18  47 182 205 121 183  98 198]
 [  8   7  39  50 103  89 167 192 193 213]
 [ 40   9  39  30 214 215  90 129 148 126]
 [ 42  21  41  12 172 173  92 201 110 200]
 [ 50   9  29  39 212 147 211 213 215 127]
 [ 29   7  50  39 125 193 211 127  89 213]
 [ 31  11  41  40 151 199 131 128 202  91]
 [ 47  16  37  17 209 161 141 197  61 162]
 [ 40   9  30  10 214 148 129 196  54 149]
 [  2  38  49   1 164 203 190 100  87 191]
 [  2  38  18  49 164 166  63 190 203 204]
 [ 48  49  38   3 206 203 145  99 188 142]
 [ 38  49   1   3 203 191  87 142 188  88]
 [ 49   4   3  48 189 102 188 206 184  99]
 [ 28  48   4  18 187 184  75 124 205 122]
 [ 49  18   4  48 204 122 189 206 205 184]
 [  7  50   5  29 193 194  76 125 211  77]
 [ 50   6   5  29 195 101 194 211 146  77]
 [ 50   9  19   6 212 105 216 195  53 104]
 [ 50  19   9  39 216 105 212 213 169 215]
 [ 50  19   8   6 216  65 192 195 104  52]
 [ 40   9  10  19 214  54 196 168 105 106]
 [ 51  44  34  14 217 144 218 219 220 156]
 [ 51  24  44  14 221 186 217 219 114 220]
 [ 25  15  24  51 116 115  71 222 223 221]
 [ 43  12  32  13 224 165 133 225  57 153]
 [ 43  12  23  42 224 111 174  93 201 175]
 [ 43  12  13  23 224  57 225 174 111 112]
 [ 43  12  42  32 224 201  93 133 165 143]
 [ 34  13  14  44 155  58 156 144 226 220]
 [ 14  24  15  51 114 115  59 219 221 223]
 [ 23  24  14  44  70 114 113 176 186 220]
 [ 33  32  13  43  81 153 154 132 133 225]
 [ 34  33  13  43  82 154 155 134 132 225]
 [ 35  14  15  51 157  59 158 227 219 223]
 [ 25  45  15  51 177 208 116 222 228 223]
 [ 44  43  13  23  94 225 226 176 174 112]
 [ 35  34  14  51  83 156 157 227 218 219]
 [ 46  15  36  16 207 159 139 210  60 160]
 [ 36  35  15  45  84 158 159 137 135 208]
 [ 37  36  16  46  85 160 161 138 139 210]
 [ 25  26  16  46  72 118 117 179 181 210]
 [ 47  16  17  26 209  61 197 180 118 119]
 [ 47  16  26  46 209 118 180  97 210 181]
 [ 27  28  18  48  74 124 121 182 187 205]
 [ 35  34  51  45  83 218 227 135 136 228]
 [ 13  14  44  23  58 220 226 112 113 176]
 [ 44  25  24  51 178  71 186 217 222 221]
 [ 44  45  25  51  95 177 178 217 228 222]
 [ 46  15  16  25 207  60 210 179 116 117]
 [ 46  15  25  45 207 116 179  96 208 177]
 [ 50   8  19  39 192  65 216 213 167 169]
 [ 35  51  15  45 227 223 158 135 228 208]
 [ 34  44  43  13 144  94 134 155 226 225]
 [ 51  44  45  34 217  95 228 218 144 136]
 [  9  29  39  30 147 127 215 148  78 126]
 [ 40   9  19  39 214 105 168  90 215 169]]
and this for noCoord (228 nodes of 3 coordinates each ..... although for some strange reason my print statement only prints 179 1/2)

Code: Select all

[[ 8000.  1000.     0.]
 [ 8000.  1000.  1000.]
 [ 8000.     0.     0.]
 [ 8000.     0.  1000.]
 [    0.  1000.     0.]
 [    0.  1000.  1000.]
 [    0.     0.     0.]
 [    0.     0.  1000.]
 [  728.  1000.  1000.]
 [ 1456.  1000.  1000.]
 [ 2184.  1000.  1000.]
 [ 2912.  1000.  1000.]
 [ 3640.  1000.  1000.]
 [ 4368.  1000.  1000.]
 [ 5096.  1000.  1000.]
 [ 5824.  1000.  1000.]
 [ 6552.  1000.  1000.]
 [ 7280.  1000.  1000.]
 [  728.     0.  1000.]
 [ 1456.     0.  1000.]
 [ 2184.     0.  1000.]
 [ 2912.     0.  1000.]
 [ 3640.     0.  1000.]
 [ 4368.     0.  1000.]
 [ 5096.     0.  1000.]
 [ 5824.     0.  1000.]
 [ 6552.     0.  1000.]
 [ 7280.     0.  1000.]
 [  728.  1000.     0.]
 [ 1456.  1000.     0.]
 [ 2184.  1000.     0.]
 [ 2912.  1000.     0.]
 [ 3640.  1000.     0.]
 [ 4368.  1000.     0.]
 [ 5096.  1000.     0.]
 [ 5824.  1000.     0.]
 [ 6552.  1000.     0.]
 [ 7280.  1000.     0.]
 [  728.     0.     0.]
 [ 1456.     0.     0.]
 [ 2184.     0.     0.]
 [ 2912.     0.     0.]
 [ 3640.     0.     0.]
 [ 4368.     0.     0.]
 [ 5096.     0.     0.]
 [ 5824.     0.     0.]
 [ 6552.     0.     0.]
 [ 7280.     0.     0.]
 [ 8000.   500.   500.]
 [    0.   500.   500.]
 [ 4732.   500.   500.]
 [    0.   500.  1000.]
 [  364.  1000.  1000.]
 [ 1092.  1000.  1000.]
 [ 1820.  1000.  1000.]
 [ 2548.  1000.  1000.]
 [ 3276.  1000.  1000.]
 [ 4004.  1000.  1000.]
 [ 4732.  1000.  1000.]
 [ 5460.  1000.  1000.]
 [ 6188.  1000.  1000.]
 [ 6916.  1000.  1000.]
 [ 7640.  1000.  1000.]
 [ 8000.   500.  1000.]
 [  364.     0.  1000.]
 [ 1092.     0.  1000.]
 [ 1820.     0.  1000.]
 [ 2548.     0.  1000.]
 [ 3276.     0.  1000.]
 [ 4004.     0.  1000.]
 [ 4732.     0.  1000.]
 [ 5460.     0.  1000.]
 [ 6188.     0.  1000.]
 [ 6916.     0.  1000.]
 [ 7640.     0.  1000.]
 [    0.   500.     0.]
 [  364.  1000.     0.]
 [ 1092.  1000.     0.]
 [ 1820.  1000.     0.]
 [ 2548.  1000.     0.]
 [ 3276.  1000.     0.]
 [ 4004.  1000.     0.]
 [ 4732.  1000.     0.]
 [ 5460.  1000.     0.]
 [ 6188.  1000.     0.]
 [ 6916.  1000.     0.]
 [ 7640.  1000.     0.]
 [ 8000.   500.     0.]
 [  364.     0.     0.]
 [ 1092.     0.     0.]
 [ 1820.     0.     0.]
 [ 2548.     0.     0.]
 [ 3276.     0.     0.]
 [ 4004.     0.     0.]
 [ 4732.     0.     0.]
 [ 5460.     0.     0.]
 [ 6188.     0.     0.]
 [ 6916.     0.     0.]
 [ 7640.     0.     0.]
 [ 8000.  1000.   500.]
 [    0.  1000.   500.]
 [ 8000.     0.   500.]
 [    0.     0.   500.]
 [  364.   500.  1000.]
 [  728.   500.  1000.]
 [ 1092.   500.  1000.]
 [ 1456.   500.  1000.]
 [ 1820.   500.  1000.]
 [ 2184.   500.  1000.]
 [ 2548.   500.  1000.]
 [ 3276.   500.  1000.]
 [ 3640.   500.  1000.]
 [ 4004.   500.  1000.]
 [ 4368.   500.  1000.]
 [ 4732.   500.  1000.]
 [ 5096.   500.  1000.]
 [ 5460.   500.  1000.]
 [ 5824.   500.  1000.]
 [ 6188.   500.  1000.]
 [ 6552.   500.  1000.]
 [ 6916.   500.  1000.]
 [ 7640.   500.  1000.]
 [ 2912.   500.  1000.]
 [ 7280.   500.  1000.]
 [  364.   500.     0.]
 [ 1092.   500.     0.]
 [  728.   500.     0.]
 [ 1820.   500.     0.]
 [ 1456.   500.     0.]
 [ 2548.   500.     0.]
 [ 2184.   500.     0.]
 [ 3640.   500.     0.]
 [ 3276.   500.     0.]
 [ 4004.   500.     0.]
 [ 5096.   500.     0.]
 [ 4732.   500.     0.]
 [ 5460.   500.     0.]
 [ 6188.   500.     0.]
 [ 5824.   500.     0.]
 [ 6916.   500.     0.]
 [ 6552.   500.     0.]
 [ 7640.   500.     0.]
 [ 2912.   500.     0.]
 [ 4368.   500.     0.]
 [ 7280.   500.     0.]
 [  364.  1000.   500.]
 [  728.  1000.   500.]
 [ 1092.  1000.   500.]
 [ 1456.  1000.   500.]
 [ 1820.  1000.   500.]
 [ 2184.  1000.   500.]
 [ 2548.  1000.   500.]
 [ 3276.  1000.   500.]
 [ 3640.  1000.   500.]
 [ 4004.  1000.   500.]
 [ 4368.  1000.   500.]
 [ 4732.  1000.   500.]
 [ 5096.  1000.   500.]
 [ 5460.  1000.   500.]
 [ 5824.  1000.   500.]
 [ 6188.  1000.   500.]
 [ 6552.  1000.   500.]
 [ 6916.  1000.   500.]
 [ 7640.  1000.   500.]
 [ 2912.  1000.   500.]
 [ 7280.  1000.   500.]
 [  364.     0.   500.]
 [ 1092.     0.
whereas your routine gives for elNodes the following list of elements with 2, 6 and 10 nodes (presumably edges, faces and volumes?)

Code: Select all

{1L: (6L, 8L), 2L: (9L, 6L), 3L: (10L, 9L), 4L: (11L, 10L), 5L: (12L, 11L), 6L: (13L, 12L), 7L: (14L, 13L), 8L: (15L, 14L), 9L: (16L, 15L), 10L: (17L, 16L), 11L: (18L, 17L), 12L: (2L, 18L), 13L: (4L, 2L), 14L: (8L, 19L), 15L: (19L, 20L), 16L: (20L, 21L), 17L: (21L, 22L), 18L: (22L, 23L), 19L: (23L, 24L), 20L: (24L, 25L), 21L: (25L, 26L), 22L: (26L, 27L), 23L: (27L, 28L), 24L: (28L, 4L), 25L: (7L, 5L), 26L: (5L, 29L), 27L: (29L, 30L), 28L: (30L, 31L), 29L: (31L, 32L), 30L: (32L, 33L), 31L: (33L, 34L), 32L: (34L, 35L), 33L: (35L, 36L), 34L: (36L, 37L), 35L: (37L, 38L), 36L: (38L, 1L), 37L: (1L, 3L), 38L: (39L, 7L), 39L: (40L, 39L), 40L: (41L, 40L), 41L: (42L, 41L), 42L: (43L, 42L), 43L: (44L, 43L), 44L: (45L, 44L), 45L: (46L, 45L), 46L: (47L, 46L), 47L: (48L, 47L), 48L: (3L, 48L), 49L: (2L, 1L), 50L: (5L, 6L), 51L: (3L, 4L), 52L: (8L, 7L), 53L: (6L, 8L, 19L, 52L, 65L, 104L), 54L: (9L, 6L, 19L, 53L, 104L, 105L), 55L: (10L, 9L, 19L, 54L, 105L, 106L), 56L: (11L, 10L, 20L, 55L, 107L, 108L), 57L: (12L, 11L, 21L, 56L, 109L, 110L), 58L: (13L, 12L, 23L, 57L, 111L, 112L), 59L: (14L, 13L, 23L, 58L, 112L, 113L), 60L: (15L, 14L, 24L, 59L, 114L, 115L), 61L: (16L, 15L, 25L, 60L, 116L, 117L), 62L: (17L, 16L, 26L, 61L, 118L, 119L), 63L: (18L, 17L, 27L, 62L, 120L, 121L), 64L: (2L, 18L, 4L, 63L, 122L, 64L), 65L: (11L, 20L, 21L, 108L, 67L, 109L), 66L: (19L, 20L, 10L, 66L, 107L, 106L), 67L: (23L, 24L, 14L, 70L, 114L, 113L), 68L: (24L, 25L, 15L, 71L, 116L, 115L), 69L: (25L, 26L, 16L, 72L, 118L, 117L), 70L: (26L, 27L, 17L, 73L, 120L, 119L), 71L: (23L, 12L, 22L, 111L, 123L, 69L), 72L: (12L, 21L, 22L, 110L, 68L, 123L), 73L: (18L, 27L, 28L, 121L, 74L, 124L), 74L: (4L, 18L, 28L, 122L, 124L, 75L), 75L: (7L, 5L, 29L, 76L, 77L, 125L), 76L: (29L, 30L, 39L, 78L, 126L, 127L), 77L: (30L, 31L, 40L, 79L, 128L, 129L), 78L: (31L, 32L, 41L, 80L, 130L, 131L), 79L: (32L, 33L, 43L, 81L, 132L, 133L), 80L: (33L, 34L, 43L, 82L, 134L, 132L), 81L: (34L, 35L, 45L, 83L, 135L, 136L), 82L: (35L, 36L, 45L, 84L, 137L, 135L), 83L: (36L, 37L, 46L, 85L, 138L, 139L), 84L: (37L, 38L, 47L, 86L, 140L, 141L), 85L: (38L, 1L, 3L, 87L, 88L, 142L), 86L: (39L, 7L, 29L, 89L, 125L, 127L), 87L: (40L, 39L, 30L, 90L, 126L, 129L), 88L: (41L, 40L, 31L, 91L, 128L, 131L), 89L: (46L, 45L, 36L, 96L, 137L, 139L), 90L: (47L, 46L, 37L, 97L, 138L, 141L), 91L: (32L, 43L, 42L, 133L, 93L, 143L), 92L: (43L, 34L, 44L, 134L, 144L, 94L), 93L: (32L, 42L, 41L, 143L, 92L, 130L), 94L: (44L, 34L, 45L, 144L, 136L, 95L), 95L: (38L, 3L, 48L, 142L, 99L, 145L), 96L: (38L, 48L, 47L, 145L, 98L, 140L), 97L: (29L, 5L, 6L, 77L, 101L, 146L), 98L: (30L, 29L, 9L, 78L, 147L, 148L), 99L: (31L, 30L, 10L, 79L, 149L, 150L), 100L: (32L, 31L, 11L, 80L, 151L, 152L), 101L: (33L, 32L, 13L, 81L, 153L, 154L), 102L: (34L, 33L, 13L, 82L, 154L, 155L), 103L: (35L, 34L, 14L, 83L, 156L, 157L), 104L: (36L, 35L, 15L, 84L, 158L, 159L), 105L: (37L, 36L, 16L, 85L, 160L, 161L), 106L: (38L, 37L, 17L, 86L, 162L, 163L), 107L: (1L, 38L, 2L, 87L, 164L, 100L), 108L: (6L, 9L, 29L, 53L, 147L, 146L), 109L: (9L, 10L, 30L, 54L, 149L, 148L), 110L: (10L, 11L, 31L, 55L, 151L, 150L), 111L: (13L, 14L, 34L, 58L, 156L, 155L), 112L: (14L, 15L, 35L, 59L, 158L, 157L), 113L: (15L, 16L, 36L, 60L, 160L, 159L), 114L: (16L, 17L, 37L, 61L, 162L, 161L), 115L: (32L, 11L, 12L, 152L, 56L, 165L), 116L: (32L, 12L, 13L, 165L, 57L, 153L), 117L: (38L, 17L, 18L, 163L, 62L, 166L), 118L: (2L, 38L, 18L, 164L, 166L, 63L), 119L: (7L, 39L, 8L, 89L, 167L, 103L), 120L: (39L, 40L, 19L, 90L, 168L, 169L), 121L: (40L, 41L, 20L, 91L, 170L, 171L), 122L: (41L, 42L, 21L, 92L, 172L, 173L), 123L: (42L, 43L, 23L, 93L, 174L, 175L), 124L: (43L, 44L, 23L, 94L, 176L, 174L), 125L: (44L, 45L, 25L, 95L, 177L, 178L), 126L: (45L, 46L, 25L, 96L, 179L, 177L), 127L: (46L, 47L, 26L, 97L, 180L, 181L), 128L: (47L, 48L, 27L, 98L, 182L, 183L), 129L: (48L, 3L, 4L, 99L, 102L, 184L), 130L: (19L, 8L, 39L, 65L, 167L, 169L), 131L: (20L, 19L, 40L, 66L, 168L, 171L), 132L: (21L, 20L, 41L, 67L, 170L, 173L), 133L: (26L, 25L, 46L, 72L, 179L, 181L), 134L: (27L, 26L, 47L, 73L, 180L, 183L), 135L: (42L, 23L, 22L, 175L, 69L, 185L), 136L: (23L, 44L, 24L, 176L, 186L, 70L), 137L: (42L, 22L, 21L, 185L, 68L, 172L), 138L: (24L, 44L, 25L, 186L, 178L, 71L), 139L: (48L, 4L, 28L, 184L, 75L, 187L), 140L: (48L, 28L, 27L, 187L, 74L, 182L), 141L: (4L, 3L, 49L, 102L, 188L, 189L), 142L: (1L, 2L, 49L, 100L, 190L, 191L), 143L: (3L, 1L, 49L, 88L, 191L, 188L), 144L: (4L, 49L, 2L, 189L, 190L, 64L), 145L: (7L, 8L, 50L, 103L, 192L, 193L), 146L: (6L, 5L, 50L, 101L, 194L, 195L), 147L: (5L, 7L, 50L, 76L, 193L, 194L), 148L: (50L, 8L, 6L, 192L, 52L, 195L), 149L: (40L, 19L, 10L, 20L, 168L, 106L, 196L, 171L, 66L, 107L), 150L: (10L, 31L, 30L, 40L, 150L, 79L, 149L, 196L, 128L, 129L), 151L: (38L, 17L, 18L, 47L, 163L, 62L, 166L, 140L, 197L, 198L), 152L: (32L, 41L, 11L, 12L, 130L, 199L, 152L, 165L, 200L, 56L), 153L: (12L, 32L, 41L, 42L, 165L, 130L, 200L, 201L, 143L, 92L), 154L: (42L, 21L, 12L, 22L, 172L, 110L, 201L, 185L, 68L, 123L), 155L: (10L, 31L, 40L, 11L, 150L, 128L, 196L, 55L, 151L, 202L), 156L: (11L, 12L, 41L, 21L, 56L, 200L, 199L, 109L, 110L, 173L), 157L: (20L, 41L, 11L, 40L, 170L, 199L, 108L, 171L, 91L, 202L), 158L: (20L, 41L, 21L, 11L, 170L, 173L, 67L, 108L, 199L, 109L), 159L: (32L, 11L, 41L, 31L, 152L, 199L, 130L, 80L, 151L, 131L), 160L: (11L, 10L, 20L, 40L, 55L, 107L, 108L, 202L, 196L, 171L), 161L: (38L, 17L, 47L, 37L, 163L, 197L, 140L, 86L, 162L, 141L), 162L: (38L, 18L, 49L, 48L, 166L, 204L, 203L, 145L, 205L, 206L), 163L: (46L, 15L, 45L, 36L, 207L, 208L, 96L, 139L, 159L, 137L), 164L: (47L, 16L, 46L, 37L, 209L, 210L, 97L, 141L, 161L, 138L), 165L: (18L, 4L, 2L, 49L, 122L, 64L, 63L, 204L, 189L, 190L), 166L: (18L, 17L, 27L, 47L, 62L, 120L, 121L, 198L, 197L, 183L), 167L: (38L, 18L, 48L, 47L, 166L, 205L, 145L, 140L, 198L, 98L), 168L: (12L, 23L, 42L, 22L, 111L, 175L, 201L, 123L, 69L, 185L), 169L: (26L, 47L, 27L, 17L, 180L, 183L, 73L, 119L, 197L, 120L), 170L: (50L, 29L, 9L, 6L, 211L, 147L, 212L, 195L, 146L, 53L), 171L: (27L, 48L, 18L, 47L, 182L, 205L, 121L, 183L, 98L, 198L), 172L: (8L, 7L, 39L, 50L, 103L, 89L, 167L, 192L, 193L, 213L), 173L: (40L, 9L, 39L, 30L, 214L, 215L, 90L, 129L, 148L, 126L), 174L: (42L, 21L, 41L, 12L, 172L, 173L, 92L, 201L, 110L, 200L), 175L: (50L, 9L, 29L, 39L, 212L, 147L, 211L, 213L, 215L, 127L), 176L: (29L, 7L, 50L, 39L, 125L, 193L, 211L, 127L, 89L, 213L), 177L: (31L, 11L, 41L, 40L, 151L, 199L, 131L, 128L, 202L, 91L), 178L: (47L, 16L, 37L, 17L, 209L, 161L, 141L, 197L, 61L, 162L), 179L: (40L, 9L, 30L, 10L, 214L, 148L, 129L, 196L, 54L, 149L), 180L: (2L, 38L, 49L, 1L, 164L, 203L, 190L, 100L, 87L, 191L), 181L: (2L, 38L, 18L, 49L, 164L, 166L, 63L, 190L, 203L, 204L), 182L: (48L, 49L, 38L, 3L, 206L, 203L, 145L, 99L, 188L, 142L), 183L: (38L, 49L, 1L, 3L, 203L, 191L, 87L, 142L, 188L, 88L), 184L: (49L, 4L, 3L, 48L, 189L, 102L, 188L, 206L, 184L, 99L), 185L: (28L, 48L, 4L, 18L, 187L, 184L, 75L, 124L, 205L, 122L), 186L: (49L, 18L, 4L, 48L, 204L, 122L, 189L, 206L, 205L, 184L), 187L: (7L, 50L, 5L, 29L, 193L, 194L, 76L, 125L, 211L, 77L), 188L: (50L, 6L, 5L, 29L, 195L, 101L, 194L, 211L, 146L, 77L), 189L: (50L, 9L, 19L, 6L, 212L, 105L, 216L, 195L, 53L, 104L), 190L: (50L, 19L, 9L, 39L, 216L, 105L, 212L, 213L, 169L, 215L), 191L: (50L, 19L, 8L, 6L, 216L, 65L, 192L, 195L, 104L, 52L), 192L: (40L, 9L, 10L, 19L, 214L, 54L, 196L, 168L, 105L, 106L), 193L: (51L, 44L, 34L, 14L, 217L, 144L, 218L, 219L, 220L, 156L), 194L: (51L, 24L, 44L, 14L, 221L, 186L, 217L, 219L, 114L, 220L), 195L: (25L, 15L, 24L, 51L, 116L, 115L, 71L, 222L, 223L, 221L), 196L: (43L, 12L, 32L, 13L, 224L, 165L, 133L, 225L, 57L, 153L), 197L: (43L, 12L, 23L, 42L, 224L, 111L, 174L, 93L, 201L, 175L), 198L: (43L, 12L, 13L, 23L, 224L, 57L, 225L, 174L, 111L, 112L), 199L: (43L, 12L, 42L, 32L, 224L, 201L, 93L, 133L, 165L, 143L), 200L: (34L, 13L, 14L, 44L, 155L, 58L, 156L, 144L, 226L, 220L), 201L: (14L, 24L, 15L, 51L, 114L, 115L, 59L, 219L, 221L, 223L), 202L: (23L, 24L, 14L, 44L, 70L, 114L, 113L, 176L, 186L, 220L), 203L: (33L, 32L, 13L, 43L, 81L, 153L, 154L, 132L, 133L, 225L), 204L: (34L, 33L, 13L, 43L, 82L, 154L, 155L, 134L, 132L, 225L), 205L: (35L, 14L, 15L, 51L, 157L, 59L, 158L, 227L, 219L, 223L), 206L: (25L, 45L, 15L, 51L, 177L, 208L, 116L, 222L, 228L, 223L), 207L: (44L, 43L, 13L, 23L, 94L, 225L, 226L, 176L, 174L, 112L), 208L: (35L, 34L, 14L, 51L, 83L, 156L, 157L, 227L, 218L, 219L), 209L: (46L, 15L, 36L, 16L, 207L, 159L, 139L, 210L, 60L, 160L), 210L: (36L, 35L, 15L, 45L, 84L, 158L, 159L, 137L, 135L, 208L), 211L: (37L, 36L, 16L, 46L, 85L, 160L, 161L, 138L, 139L, 210L), 212L: (25L, 26L, 16L, 46L, 72L, 118L, 117L, 179L, 181L, 210L), 213L: (47L, 16L, 17L, 26L, 209L, 61L, 197L, 180L, 118L, 119L), 214L: (47L, 16L, 26L, 46L, 209L, 118L, 180L, 97L, 210L, 181L), 215L: (27L, 28L, 18L, 48L, 74L, 124L, 121L, 182L, 187L, 205L), 216L: (35L, 34L, 51L, 45L, 83L, 218L, 227L, 135L, 136L, 228L), 217L: (13L, 14L, 44L, 23L, 58L, 220L, 226L, 112L, 113L, 176L), 218L: (44L, 25L, 24L, 51L, 178L, 71L, 186L, 217L, 222L, 221L), 219L: (44L, 45L, 25L, 51L, 95L, 177L, 178L, 217L, 228L, 222L), 220L: (46L, 15L, 16L, 25L, 207L, 60L, 210L, 179L, 116L, 117L), 221L: (46L, 15L, 25L, 45L, 207L, 116L, 179L, 96L, 208L, 177L), 222L: (50L, 8L, 19L, 39L, 192L, 65L, 216L, 213L, 167L, 169L), 223L: (35L, 51L, 15L, 45L, 227L, 223L, 158L, 135L, 228L, 208L), 224L: (34L, 44L, 43L, 13L, 144L, 94L, 134L, 155L, 226L, 225L), 225L: (51L, 44L, 45L, 34L, 217L, 95L, 228L, 218L, 144L, 136L), 226L: (9L, 29L, 39L, 30L, 147L, 127L, 215L, 148L, 78L, 126L), 227L: (40L, 9L, 19L, 39L, 214L, 105L, 168L, 90L, 215L, 169L)}
Ah, wait a minute, from element 149 it seems to match:

Code: Select all

149L: (40L, 19L, 10L, 20L, 168L, 106L, 196L, 171L, 66L, 107L), 150L: (10L, 31L, 30L, 40L, 150L, 79L, 149L, 196L, 128L, 129L), 151L: (38L, 17L, 18L, 47L, 163L, 62L, 166L, 140L, 197L, 198L)
so I guess if we change your script to:

Code: Select all

elements = femmesh.Volumes
then it should give the same result.

Your noCoord list appears to perfectly match my noCoord array.

So in summary, yes, that would do the job and is much cleaner .... thanks again Bernd !!
User avatar
HarryvL
Posts: 503
Joined: Sat Jan 06, 2018 7:38 pm
Location: Denmark

Re: Access to nodal results on element by element basis

Postby HarryvL » Wed Jul 11, 2018 3:56 pm

HarryvL wrote:
Wed Jul 11, 2018 3:51 pm
so I guess if we change your script to:

Code: Select all

elements = femmesh.Volumes
then it should give the same result.

Your noCoord list appears to perfectly match my noCoord array.

So in summary, yes, that would do the job and is much cleaner .... thanks again Bernd !!
I just tried and that indeed gives a perfect match
User avatar
bernd
Posts: 5961
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Access to nodal results on element by element basis

Postby bernd » Wed Jul 11, 2018 4:25 pm

IMO an erray called elNodes means ALL elements of a mesh?!?

A standard mesh consists of edges faces and solids. For a normal solid analysis only the volume elements are needed. On a mixed mesh analysis even the needed elements for the analysis are edges faces and volumes or edges and faces or edges and volumes or faces and volumes.

Eventually the question is what to put in elNodes, All elements of a mesh or the elements needed for the analysis (the once which will be written into the inputfile)

bernd
User avatar
HarryvL
Posts: 503
Joined: Sat Jan 06, 2018 7:38 pm
Location: Denmark

Re: Access to nodal results on element by element basis

Postby HarryvL » Wed Jul 11, 2018 4:54 pm

Bernd, I needed to perform an integration over the full 3D domain of the mesh and for that I only needed to access each 3D element and for each 3D element the global coordinates of its nodes. The evaluation of the overall stiffness matrix in a FEA is an example of such a 3D integration. Anyway, your proposed array contains the required information, but it takes some effort to extract it. For example, it requires me to figure out that the information for the first 3D element is at position 149.