weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Clearly defined bug reports and their fixes
Post Reply
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

Hi,

this is an issue for which is not clear, is it due to salome (8.3.0) or due to Elmergrid (Elmer solver is Version: 8.3 (Rev: c30fff2, Compiled: 2017-05-22)).

I had this issue now twice and using short desription names for bodies or boundaries seems to help.

Anyway, the strings generated in entities.sif are strange, as if strings are just concatenated wrongly (which looks like a simple programming error somehow)

They look like this: (the bold part is one of the concatenated string parts)

"Boundary Condition 240
Name = internal_bc_a_contact_6_face_1internal_bc_a_contact_6_face_2internal_bc_a_contact_6_face_3internal_bc_a_contact_6_face_4internal_bc_a_contact_7_face_1internal_bc_a_contact_7_face_2internal_bc_a_contact_7_face_3internal_bc_a_contact_7_face_4internal_bc_a_contact_8_face_1internal_bc_a_contact_8_face_2internal_bc_a_contact_8_face_3internal_bc_a_contact_8_face_4internal_bc_a_contact_9_face_1internal_bc_a_contact_9_face_2internal_bc_a_contact_9_face_3internal_bc_a_contact_9_face_4internal_bc_a_contact_10_face_internal_bc_a_contact_10_face_internal_bc_a_contact_10_face_internal_bc_a_contact_10_face_internal_bc_c_contact_1_face_1internal_bc_c_contact_1_face_2internal_bc_c_contact_1_face_3internal_bc_c_contact_1_face_4internal_bc_c_contact_2_face_1internal_bc_c_contact_2_face_2internal_bc_c_contact_2_face_3internal_bc_c_contact_2_face_4internal_bc_c_contact_3_face_1internal_bc_c_contact_3_face_2internal_bc_c_contact_3_face_3internal_bc_c_contact_3_face_4internal_bc_c_contact_4_face_1internal_bc_c_contact_4_face_2internal_bc_c_contact_4_face_3internal_bc_c_contact_4_face_4internal_bc_c_contact_5_face_1internal_bc_c_contact_5_face_2internal_bc_c_contact_5_face_3internal_bc_c_contact_5_face_4internal_bc_c_contact_6_face_1internal_bc_c_contact_6_face_2internal_bc_c_contact_6_face_3internal_bc_c_contact_6_face_4internal_bc_c_contact_7_face_1internal_bc_c_contact_7_face_2internal_bc_c_contact_7_face_3internal_bc_c_contact_7_face_4internal_bc_c_contact_8_face_1internal_bc_c_contact_8_face_2internal_bc_c_contact_8_face_3internal_bc_c_contact_8_face_4internal_bc_c_contact_9_face_1internal_bc_c_contact_9_face_2internal_bc_c_contact_9_face_3internal_bc_c_contact_9_face_4
End
"

I saved more or less all faces of a complex 3D model, because I wanted to be able to look at different fluxes accross different boundaries.

My programmatical approach involves a python interface to generate 1. geometry and mesh in salome 2. import to elmer and solve the model 3.) Import of vtu file with vtk file reader in python and 4. use of numpy and matplotlib on the point data and triangulation groups


Another thing : It is difficult to find out what is the elmergrid version number. Maybe this problem has been fixed already with newer versions of Elmer but I dont know....
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by raback »

Hi

Having the initial mesh file would help.

ElmerGrid is compiled usually with ElmerSolver so the version follows that. The changes is not that many on ElmerGrid, you can see them in:

https://github.com/ElmerCSC/elmerfem/tr ... ergrid/src

-Peter
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

Hi, thx.

I just realised from the console output that the names given there are correct, whilst the written names are wrong.

Not sure, I think I am not really allowed to send the mesh file since it would be publicly available. Is there any other way to deal with this confidentially?

I dont know if you need it, though. In the consule log the names are displayed correctly. Meaning it is probably some hopefully easy to deal with problem in the Elmergrid code
Reading 259:th group with index 259 with 1656 entities: internal_bc_a_contact_1_face_1
Element type range in group is [303 303]
Reading 260:th group with index 260 with 1668 entities: internal_bc_a_contact_1_face_2
Element type range in group is [303 303]
Reading 261:th group with index 261 with 1360 entities: internal_bc_a_contact_1_face_3
Element type range in group is [303 303]
Reading 262:th group with index 262 with 1658 entities: internal_bc_a_contact_1_face_4
Element type range in group is [303 303]
Reading 263:th group with index 263 with 1654 entities: internal_bc_a_contact_2_face_1
Element type range in group is [303 303]
Reading 264:th group with index 264 with 1678 entities: internal_bc_a_contact_2_face_2
Element type range in group is [303 303]
Reading 265:th group with index 265 with 1360 entities: internal_bc_a_contact_2_face_3
Element type range in group is [303 303]
Reading 266:th group with index 266 with 1652 entities: internal_bc_a_contact_2_face_4
Element type range in group is [303 303]
Reading 267:th group with index 267 with 1662 entities: internal_bc_a_contact_3_face_1
Element type range in group is [303 303]
Reading 268:th group with index 268 with 1678 entities: internal_bc_a_contact_3_face_2
Element type range in group is [303 303]
Reading 269:th group with index 269 with 1360 entities: internal_bc_a_contact_3_face_3
Element type range in group is [303 303]
Reading 270:th group with index 270 with 1656 entities: internal_bc_a_contact_3_face_4
Element type range in group is [303 303]
Reading 271:th group with index 271 with 1658 entities: internal_bc_a_contact_4_face_1
Element type range in group is [303 303]
Reading 272:th group with index 272 with 1678 entities: internal_bc_a_contact_4_face_2
Element type range in group is [303 303]
Reading 273:th group with index 273 with 1360 entities: internal_bc_a_contact_4_face_3
Element type range in group is [303 303]
Reading 274:th group with index 274 with 1656 entities: internal_bc_a_contact_4_face_4
Element type range in group is [303 303]
Reading 275:th group with index 275 with 1656 entities: internal_bc_a_contact_5_face_1
Element type range in group is [303 303]
Reading 276:th group with index 276 with 1678 entities: internal_bc_a_contact_5_face_2
Element type range in group is [303 303]
Reading 277:th group with index 277 with 1360 entities: internal_bc_a_contact_5_face_3
Element type range in group is [303 303]
Reading 278:th group with index 278 with 1650 entities: internal_bc_a_contact_5_face_4
Element type range in group is [303 303]
Reading 279:th group with index 279 with 1656 entities: internal_bc_a_contact_6_face_1
Element type range in group is [303 303]
Reading 280:th group with index 280 with 1678 entities: internal_bc_a_contact_6_face_2
Element type range in group is [303 303]
Reading 281:th group with index 281 with 1360 entities: internal_bc_a_contact_6_face_3
Element type range in group is [303 303]
Reading 282:th group with index 282 with 1504 entities: internal_bc_a_contact_6_face_4
Element type range in group is [303 303]
Reading 283:th group with index 283 with 1660 entities: internal_bc_a_contact_7_face_1
Element type range in group is [303 303]
Reading 284:th group with index 284 with 1678 entities: internal_bc_a_contact_7_face_2
Element type range in group is [303 303]
Reading 285:th group with index 285 with 1360 entities: internal_bc_a_contact_7_face_3
Element type range in group is [303 303]
Reading 286:th group with index 286 with 1656 entities: internal_bc_a_contact_7_face_4
Element type range in group is [303 303]
Reading 287:th group with index 287 with 1656 entities: internal_bc_a_contact_8_face_1
Element type range in group is [303 303]
Reading 288:th group with index 288 with 1678 entities: internal_bc_a_contact_8_face_2
Element type range in group is [303 303]
Reading 289:th group with index 289 with 1360 entities: internal_bc_a_contact_8_face_3
Element type range in group is [303 303]
Reading 290:th group with index 290 with 1504 entities: internal_bc_a_contact_8_face_4
Element type range in group is [303 303]
Reading 291:th group with index 291 with 1660 entities: internal_bc_a_contact_9_face_1
Element type range in group is [303 303]
Reading 292:th group with index 292 with 1678 entities: internal_bc_a_contact_9_face_2
Element type range in group is [303 303]
Reading 293:th group with index 293 with 1360 entities: internal_bc_a_contact_9_face_3
Element type range in group is [303 303]
Reading 294:th group with index 294 with 1656 entities: internal_bc_a_contact_9_face_4
Element type range in group is [303 303]
Reading 295:th group with index 295 with 1656 entities: internal_bc_a_contact_10_face_1
Element type range in group is [303 303]
Reading 296:th group with index 296 with 1678 entities: internal_bc_a_contact_10_face_2
Element type range in group is [303 303]
Reading 297:th group with index 297 with 1360 entities: internal_bc_a_contact_10_face_3
Element type range in group is [303 303]
Reading 298:th group with index 298 with 1504 entities: internal_bc_a_contact_10_face_4
Element type range in group is [303 303]
Reading 299:th group with index 299 with 1654 entities: internal_bc_c_contact_1_face_1
Element type range in group is [303 303]
Reading 300:th group with index 300 with 1678 entities: internal_bc_c_contact_1_face_2
Element type range in group is [303 303]
Reading 301:th group with index 301 with 1382 entities: internal_bc_c_contact_1_face_3
Element type range in group is [303 303]
Reading 302:th group with index 302 with 1502 entities: internal_bc_c_contact_1_face_4
Element type range in group is [303 303]
Reading 303:th group with index 303 with 1658 entities: internal_bc_c_contact_2_face_1
Element type range in group is [303 303]
Reading 304:th group with index 304 with 1678 entities: internal_bc_c_contact_2_face_2
Element type range in group is [303 303]
Reading 305:th group with index 305 with 1382 entities: internal_bc_c_contact_2_face_3
Element type range in group is [303 303]
Reading 306:th group with index 306 with 1508 entities: internal_bc_c_contact_2_face_4
Element type range in group is [303 303]
Reading 307:th group with index 307 with 1656 entities: internal_bc_c_contact_3_face_1
Element type range in group is [303 303]
Reading 308:th group with index 308 with 1678 entities: internal_bc_c_contact_3_face_2
Element type range in group is [303 303]
Reading 309:th group with index 309 with 1382 entities: internal_bc_c_contact_3_face_3
Element type range in group is [303 303]
Reading 310:th group with index 310 with 1510 entities: internal_bc_c_contact_3_face_4
Element type range in group is [303 303]
Reading 311:th group with index 311 with 1656 entities: internal_bc_c_contact_4_face_1
Element type range in group is [303 303]
Reading 312:th group with index 312 with 1678 entities: internal_bc_c_contact_4_face_2
Element type range in group is [303 303]
Reading 313:th group with index 313 with 1382 entities: internal_bc_c_contact_4_face_3
Element type range in group is [303 303]
Reading 314:th group with index 314 with 1504 entities: internal_bc_c_contact_4_face_4
Element type range in group is [303 303]
Reading 315:th group with index 315 with 1664 entities: internal_bc_c_contact_5_face_1
Element type range in group is [303 303]
Reading 316:th group with index 316 with 1678 entities: internal_bc_c_contact_5_face_2
Element type range in group is [303 303]
Reading 317:th group with index 317 with 1382 entities: internal_bc_c_contact_5_face_3
Element type range in group is [303 303]
Reading 318:th group with index 318 with 1650 entities: internal_bc_c_contact_5_face_4
Element type range in group is [303 303]
Reading 319:th group with index 319 with 1654 entities: internal_bc_c_contact_6_face_1
Element type range in group is [303 303]
Reading 320:th group with index 320 with 1678 entities: internal_bc_c_contact_6_face_2
Element type range in group is [303 303]
Reading 321:th group with index 321 with 1382 entities: internal_bc_c_contact_6_face_3
Element type range in group is [303 303]
Reading 322:th group with index 322 with 1510 entities: internal_bc_c_contact_6_face_4
Element type range in group is [303 303]
Reading 323:th group with index 323 with 1664 entities: internal_bc_c_contact_7_face_1
Element type range in group is [303 303]
Reading 324:th group with index 324 with 1678 entities: internal_bc_c_contact_7_face_2
Element type range in group is [303 303]
Reading 325:th group with index 325 with 1382 entities: internal_bc_c_contact_7_face_3
Element type range in group is [303 303]
Reading 326:th group with index 326 with 1506 entities: internal_bc_c_contact_7_face_4
Element type range in group is [303 303]
Reading 327:th group with index 327 with 1664 entities: internal_bc_c_contact_8_face_1
Element type range in group is [303 303]
Reading 328:th group with index 328 with 1678 entities: internal_bc_c_contact_8_face_2
Element type range in group is [303 303]
Reading 329:th group with index 329 with 1382 entities: internal_bc_c_contact_8_face_3
Element type range in group is [303 303]
Reading 330:th group with index 330 with 1506 entities: internal_bc_c_contact_8_face_4
Element type range in group is [303 303]
Reading 331:th group with index 331 with 1654 entities: internal_bc_c_contact_9_face_1
Element type range in group is [303 303]
Reading 332:th group with index 332 with 1678 entities: internal_bc_c_contact_9_face_2
Element type range in group is [303 303]
Reading 333:th group with index 333 with 1382 entities: internal_bc_c_contact_9_face_3
Element type range in group is [303 303]
Reading 334:th group with index 334 with 1510 entities: internal_bc_c_contact_9_face_4
Element type range in group is [303 303]
Moving bulk elements to boundary elements
Leading bulk elementtype is 504
Trailing bulk elementtype is 202
There are 443380 (out of 3925625) lower dimensional elements.
Node 255298 belongs to maximum of 54 elements
Found 119210 side elements that have two parents.
Found correctly 443380 side elements.
Parent elements were reordered up to indx 3482245.
Moved 3482245 elements (out of 3925625) to new positions
The Universal mesh was loaded from file mesh2.unv.


Elmergrid creating and manipulating meshes:
-------------------------------------------
Removing lower dimensional boundaries
Maximum elementtype is 504 and dimension 3
Removed 19994 (out of 443380) less than 3D boundary elements
All 667278 nodes were used by the mesh elements
Initial boundary interval [40,334]
boundary index changed 40 -> 1 in 426 elements
boundary index changed 41 -> 2 in 424 elements
boundary index changed 42 -> 3 in 426 elements
boundary index changed 43 -> 4 in 426 elements
boundary index changed 44 -> 5 in 426 elements
boundary index changed 45 -> 6 in 426 elements
boundary index changed 46 -> 7 in 418 elements
boundary index changed 47 -> 8 in 426 elements
boundary index changed 48 -> 9 in 418 elements
boundary index changed 49 -> 10 in 426 elements
boundary index changed 50 -> 11 in 474 elements
boundary index changed 51 -> 12 in 472 elements
boundary index changed 52 -> 13 in 484 elements
boundary index changed 53 -> 14 in 484 elements
boundary index changed 54 -> 15 in 470 elements
boundary index changed 55 -> 16 in 472 elements
boundary index changed 56 -> 17 in 468 elements
boundary index changed 57 -> 18 in 468 elements
boundary index changed 58 -> 19 in 472 elements
boundary index changed 59 -> 20 in 5358 elements
boundary index changed 60 -> 21 in 610 elements
boundary index changed 61 -> 22 in 1598 elements
boundary index changed 62 -> 23 in 32304 elements
boundary index changed 63 -> 24 in 35976 elements
boundary index changed 64 -> 25 in 18382 elements
boundary index changed 65 -> 26 in 29716 elements
boundary index changed 66 -> 27 in 1598 elements
boundary index changed 67 -> 28 in 598 elements
boundary index changed 68 -> 29 in 5604 elements
boundary index changed 69 -> 30 in 1624 elements
boundary index changed 70 -> 31 in 2176 elements
boundary index changed 71 -> 32 in 976 elements
boundary index changed 72 -> 33 in 2088 elements
boundary index changed 73 -> 34 in 807 elements
boundary index changed 74 -> 35 in 475 elements
boundary index changed 75 -> 36 in 1568 elements
boundary index changed 76 -> 37 in 2191 elements
boundary index changed 77 -> 38 in 1030 elements
boundary index changed 78 -> 39 in 2163 elements
boundary index changed 79 -> 40 in 799 elements
boundary index changed 80 -> 41 in 481 elements
boundary index changed 81 -> 42 in 1578 elements
boundary index changed 82 -> 43 in 2197 elements
boundary index changed 83 -> 44 in 976 elements
boundary index changed 84 -> 45 in 2107 elements
boundary index changed 85 -> 46 in 811 elements
boundary index changed 86 -> 47 in 481 elements
boundary index changed 87 -> 48 in 1605 elements
boundary index changed 88 -> 49 in 2209 elements
boundary index changed 89 -> 50 in 1036 elements
boundary index changed 90 -> 51 in 2105 elements
boundary index changed 91 -> 52 in 808 elements
boundary index changed 92 -> 53 in 473 elements
boundary index changed 93 -> 54 in 1583 elements
boundary index changed 94 -> 55 in 2268 elements
boundary index changed 95 -> 56 in 1036 elements
boundary index changed 96 -> 57 in 2132 elements
boundary index changed 97 -> 58 in 824 elements
boundary index changed 98 -> 59 in 493 elements
boundary index changed 99 -> 60 in 1581 elements
boundary index changed 100 -> 61 in 2201 elements
boundary index changed 101 -> 62 in 1032 elements
boundary index changed 102 -> 63 in 2111 elements
boundary index changed 103 -> 64 in 838 elements
boundary index changed 104 -> 65 in 473 elements
boundary index changed 105 -> 66 in 1566 elements
boundary index changed 106 -> 67 in 2167 elements
boundary index changed 107 -> 68 in 976 elements
boundary index changed 108 -> 69 in 2085 elements
boundary index changed 109 -> 70 in 791 elements
boundary index changed 110 -> 71 in 483 elements
boundary index changed 111 -> 72 in 1599 elements
boundary index changed 112 -> 73 in 2188 elements
boundary index changed 113 -> 74 in 1032 elements
boundary index changed 114 -> 75 in 2085 elements
boundary index changed 115 -> 76 in 825 elements
boundary index changed 116 -> 77 in 485 elements
boundary index changed 117 -> 78 in 1601 elements
boundary index changed 118 -> 79 in 2184 elements
boundary index changed 119 -> 80 in 976 elements
boundary index changed 120 -> 81 in 2107 elements
boundary index changed 121 -> 82 in 811 elements
boundary index changed 122 -> 83 in 471 elements
boundary index changed 123 -> 84 in 1566 elements
boundary index changed 124 -> 85 in 2235 elements
boundary index changed 125 -> 86 in 1032 elements
boundary index changed 126 -> 87 in 2101 elements
boundary index changed 127 -> 88 in 833 elements
boundary index changed 128 -> 89 in 477 elements
boundary index changed 129 -> 90 in 472 elements
boundary index changed 130 -> 91 in 859 elements
boundary index changed 131 -> 92 in 2206 elements
boundary index changed 132 -> 93 in 988 elements
boundary index changed 133 -> 94 in 2090 elements
boundary index changed 134 -> 95 in 1673 elements
boundary index changed 135 -> 96 in 460 elements
boundary index changed 136 -> 97 in 858 elements
boundary index changed 137 -> 98 in 2193 elements
boundary index changed 138 -> 99 in 988 elements
boundary index changed 139 -> 100 in 2096 elements
boundary index changed 140 -> 101 in 1599 elements
boundary index changed 141 -> 102 in 466 elements
boundary index changed 142 -> 103 in 868 elements
boundary index changed 143 -> 104 in 2232 elements
boundary index changed 144 -> 105 in 998 elements
boundary index changed 145 -> 106 in 2112 elements
boundary index changed 146 -> 107 in 1628 elements
boundary index changed 147 -> 108 in 478 elements
boundary index changed 148 -> 109 in 867 elements
boundary index changed 149 -> 110 in 2190 elements
boundary index changed 150 -> 111 in 1006 elements
boundary index changed 151 -> 112 in 2138 elements
boundary index changed 152 -> 113 in 1615 elements
boundary index changed 153 -> 114 in 478 elements
boundary index changed 154 -> 115 in 866 elements
boundary index changed 155 -> 116 in 2198 elements
boundary index changed 156 -> 117 in 994 elements
boundary index changed 157 -> 118 in 2116 elements
boundary index changed 158 -> 119 in 1552 elements
boundary index changed 159 -> 120 in 458 elements
boundary index changed 160 -> 121 in 881 elements
boundary index changed 161 -> 122 in 2212 elements
boundary index changed 162 -> 123 in 1034 elements
boundary index changed 163 -> 124 in 2096 elements
boundary index changed 164 -> 125 in 1573 elements
boundary index changed 165 -> 126 in 462 elements
boundary index changed 166 -> 127 in 853 elements
boundary index changed 167 -> 128 in 2157 elements
boundary index changed 168 -> 129 in 1030 elements
boundary index changed 169 -> 130 in 2122 elements
boundary index changed 170 -> 131 in 1558 elements
boundary index changed 171 -> 132 in 466 elements
boundary index changed 172 -> 133 in 857 elements
boundary index changed 173 -> 134 in 2210 elements
boundary index changed 174 -> 135 in 1026 elements
boundary index changed 175 -> 136 in 2132 elements
boundary index changed 176 -> 137 in 1583 elements
boundary index changed 177 -> 138 in 476 elements
boundary index changed 178 -> 139 in 888 elements
boundary index changed 179 -> 140 in 2191 elements
boundary index changed 180 -> 141 in 1034 elements
boundary index changed 181 -> 142 in 2105 elements
boundary index changed 182 -> 143 in 1550 elements
boundary index changed 183 -> 144 in 166 elements
boundary index changed 184 -> 145 in 36 elements
boundary index changed 185 -> 146 in 36 elements
boundary index changed 186 -> 147 in 166 elements
boundary index changed 187 -> 148 in 166 elements
boundary index changed 188 -> 149 in 36 elements
boundary index changed 189 -> 150 in 36 elements
boundary index changed 190 -> 151 in 166 elements
boundary index changed 191 -> 152 in 166 elements
boundary index changed 192 -> 153 in 36 elements
boundary index changed 193 -> 154 in 36 elements
boundary index changed 194 -> 155 in 166 elements
boundary index changed 195 -> 156 in 166 elements
boundary index changed 196 -> 157 in 36 elements
boundary index changed 197 -> 158 in 36 elements
boundary index changed 198 -> 159 in 166 elements
boundary index changed 199 -> 160 in 166 elements
boundary index changed 200 -> 161 in 36 elements
boundary index changed 201 -> 162 in 36 elements
boundary index changed 202 -> 163 in 166 elements
boundary index changed 203 -> 164 in 166 elements
boundary index changed 204 -> 165 in 36 elements
boundary index changed 205 -> 166 in 36 elements
boundary index changed 206 -> 167 in 166 elements
boundary index changed 207 -> 168 in 166 elements
boundary index changed 208 -> 169 in 36 elements
boundary index changed 209 -> 170 in 36 elements
boundary index changed 210 -> 171 in 166 elements
boundary index changed 211 -> 172 in 166 elements
boundary index changed 212 -> 173 in 36 elements
boundary index changed 213 -> 174 in 36 elements
boundary index changed 214 -> 175 in 166 elements
boundary index changed 215 -> 176 in 166 elements
boundary index changed 216 -> 177 in 36 elements
boundary index changed 217 -> 178 in 36 elements
boundary index changed 218 -> 179 in 166 elements
boundary index changed 219 -> 180 in 166 elements
boundary index changed 220 -> 181 in 36 elements
boundary index changed 221 -> 182 in 36 elements
boundary index changed 222 -> 183 in 166 elements
boundary index changed 223 -> 184 in 166 elements
boundary index changed 224 -> 185 in 36 elements
boundary index changed 225 -> 186 in 36 elements
boundary index changed 226 -> 187 in 166 elements
boundary index changed 227 -> 188 in 166 elements
boundary index changed 228 -> 189 in 36 elements
boundary index changed 229 -> 190 in 36 elements
boundary index changed 230 -> 191 in 166 elements
boundary index changed 231 -> 192 in 166 elements
boundary index changed 232 -> 193 in 36 elements
boundary index changed 233 -> 194 in 36 elements
boundary index changed 234 -> 195 in 166 elements
boundary index changed 235 -> 196 in 166 elements
boundary index changed 236 -> 197 in 36 elements
boundary index changed 237 -> 198 in 36 elements
boundary index changed 238 -> 199 in 166 elements
boundary index changed 239 -> 200 in 166 elements
boundary index changed 240 -> 201 in 36 elements
boundary index changed 241 -> 202 in 36 elements
boundary index changed 242 -> 203 in 166 elements
boundary index changed 243 -> 204 in 166 elements
boundary index changed 244 -> 205 in 36 elements
boundary index changed 245 -> 206 in 36 elements
boundary index changed 246 -> 207 in 166 elements
boundary index changed 247 -> 208 in 166 elements
boundary index changed 248 -> 209 in 36 elements
boundary index changed 249 -> 210 in 36 elements
boundary index changed 250 -> 211 in 166 elements
boundary index changed 251 -> 212 in 166 elements
boundary index changed 252 -> 213 in 36 elements
boundary index changed 253 -> 214 in 36 elements
boundary index changed 254 -> 215 in 166 elements
boundary index changed 255 -> 216 in 166 elements
boundary index changed 256 -> 217 in 36 elements
boundary index changed 257 -> 218 in 36 elements
boundary index changed 258 -> 219 in 166 elements
boundary index changed 259 -> 220 in 1656 elements
boundary index changed 260 -> 221 in 1668 elements
boundary index changed 261 -> 222 in 1360 elements
boundary index changed 262 -> 223 in 1658 elements
boundary index changed 263 -> 224 in 1654 elements
boundary index changed 264 -> 225 in 1678 elements
boundary index changed 265 -> 226 in 1360 elements
boundary index changed 266 -> 227 in 1652 elements
boundary index changed 267 -> 228 in 1662 elements
boundary index changed 268 -> 229 in 1678 elements
boundary index changed 269 -> 230 in 1360 elements
boundary index changed 270 -> 231 in 1656 elements
boundary index changed 271 -> 232 in 1658 elements
boundary index changed 272 -> 233 in 1678 elements
boundary index changed 273 -> 234 in 1360 elements
boundary index changed 274 -> 235 in 1656 elements
boundary index changed 275 -> 236 in 1656 elements
boundary index changed 276 -> 237 in 1678 elements
boundary index changed 277 -> 238 in 1360 elements
boundary index changed 278 -> 239 in 1650 elements
boundary index changed 279 -> 240 in 1656 elements
boundary index changed 280 -> 241 in 1678 elements
boundary index changed 281 -> 242 in 1360 elements
boundary index changed 282 -> 243 in 1504 elements
boundary index changed 283 -> 244 in 1660 elements
boundary index changed 284 -> 245 in 1678 elements
boundary index changed 285 -> 246 in 1360 elements
boundary index changed 286 -> 247 in 1656 elements
boundary index changed 287 -> 248 in 1656 elements
boundary index changed 288 -> 249 in 1678 elements
boundary index changed 289 -> 250 in 1360 elements
boundary index changed 290 -> 251 in 1504 elements
boundary index changed 291 -> 252 in 1660 elements
boundary index changed 292 -> 253 in 1678 elements
boundary index changed 293 -> 254 in 1360 elements
boundary index changed 294 -> 255 in 1656 elements
boundary index changed 295 -> 256 in 1656 elements
boundary index changed 296 -> 257 in 1678 elements
boundary index changed 297 -> 258 in 1360 elements
boundary index changed 298 -> 259 in 1504 elements
boundary index changed 299 -> 260 in 1654 elements
boundary index changed 300 -> 261 in 1678 elements
boundary index changed 301 -> 262 in 1382 elements
boundary index changed 302 -> 263 in 1502 elements
boundary index changed 303 -> 264 in 1658 elements
boundary index changed 304 -> 265 in 1678 elements
boundary index changed 305 -> 266 in 1382 elements
boundary index changed 306 -> 267 in 1508 elements
boundary index changed 307 -> 268 in 1656 elements
boundary index changed 308 -> 269 in 1678 elements
boundary index changed 309 -> 270 in 1382 elements
boundary index changed 310 -> 271 in 1510 elements
boundary index changed 311 -> 272 in 1656 elements
boundary index changed 312 -> 273 in 1678 elements
boundary index changed 313 -> 274 in 1382 elements
boundary index changed 314 -> 275 in 1504 elements
boundary index changed 315 -> 276 in 1664 elements
boundary index changed 316 -> 277 in 1678 elements
boundary index changed 317 -> 278 in 1382 elements
boundary index changed 318 -> 279 in 1650 elements
boundary index changed 319 -> 280 in 1654 elements
boundary index changed 320 -> 281 in 1678 elements
boundary index changed 321 -> 282 in 1382 elements
boundary index changed 322 -> 283 in 1510 elements
boundary index changed 323 -> 284 in 1664 elements
boundary index changed 324 -> 285 in 1678 elements
boundary index changed 325 -> 286 in 1382 elements
boundary index changed 326 -> 287 in 1506 elements
boundary index changed 327 -> 288 in 1664 elements
boundary index changed 328 -> 289 in 1678 elements
boundary index changed 329 -> 290 in 1382 elements
boundary index changed 330 -> 291 in 1506 elements
boundary index changed 331 -> 292 in 1654 elements
boundary index changed 332 -> 293 in 1678 elements
boundary index changed 333 -> 294 in 1382 elements
boundary index changed 334 -> 295 in 1510 elements
Mapping boundary types from [40 334] to [1 295]
Initial body interval [1,39]
Numbering of bodies is already ok

Elmergrid saving data with method 2:
-------------------------------------
Saving mesh in ElmerSolver format to directory mesh2.
Reusing an existing directory
Saving 667278 coordinates to mesh.nodes.
Saving 3482245 element topologies to mesh.elements.
Saving boundary elements to mesh.boundary.
Saving header info to mesh.header.
Saving names info to mesh.names.
Saving entities info to entities.sif.

Thank you for using Elmergrid!
Send bug reports and feature wishes to elmeradm@csc.fi"


18 signes seem to be ok. But longer ones fail somehow strangely

Boundary Condition 216
Name = c_contact_9_face_1
End

Boundary Condition 217
Name = c_contact_9_face_2
End

Boundary Condition 218
Name = c_contact_9_face_3
End

Boundary Condition 219
Name = c_contact_9_face_4
End

Boundary Condition 220
Name = internal_bc_a_contact_1_face_1internal_bc_c_contact_1_face_1internal_bc_c_contact_1_face_2internal_bc_c_contact_1_face_3internal_bc_c_contact_1_face_4internal_bc_c_contact_2_face_1internal_bc_c_contact_2_face_2internal_bc_c_contact_2_face_3internal_bc_c_contact_2_face_4internal_bc_c_contact_3_face_1internal_bc_c_contact_3_face_2internal_bc_c_contact_3_face_3internal_bc_c_contact_3_face_4internal_bc_c_contact_4_face_1internal_bc_c_contact_4_face_2internal_bc_c_contact_4_face_3internal_bc_c_contact_4_face_4internal_bc_c_contact_5_face_1internal_bc_c_contact_5_face_2internal_bc_c_contact_5_face_3internal_bc_c_contact_5_face_4internal_bc_c_contact_6_face_1internal_bc_c_contact_6_face_2internal_bc_c_contact_6_face_3internal_bc_c_contact_6_face_4internal_bc_c_contact_7_face_1internal_bc_c_contact_7_face_2internal_bc_c_contact_7_face_3internal_bc_c_contact_7_face_4internal_bc_c_contact_8_face_1internal_bc_c_contact_8_face_2internal_bc_c_contact_8_face_3internal_bc_c_contact_8_face_4internal_bc_c_contact_9_face_1internal_bc_c_contact_9_face_2internal_bc_c_contact_9_face_3internal_bc_c_contact_9_face_4
End

Boundary Condition 221
Name = internal_bc_c_contact_1_face_1internal_bc_c_contact_1_face_2internal_bc_c_contact_1_face_3internal_bc_c_contact_1_face_4internal_bc_c_contact_2_face_1internal_bc_c_contact_2_face_2internal_bc_c_contact_2_face_3internal_bc_c_contact_2_face_4internal_bc_c_contact_3_face_1internal_bc_c_contact_3_face_2internal_bc_c_contact_3_face_3internal_bc_c_contact_3_face_4internal_bc_c_contact_4_face_1internal_bc_c_contact_4_face_2internal_bc_c_contact_4_face_3internal_bc_c_contact_4_face_4internal_bc_c_contact_5_face_1internal_bc_c_contact_5_face_2internal_bc_c_contact_5_face_3internal_bc_c_contact_5_face_4internal_bc_c_contact_6_face_1internal_bc_c_contact_6_face_2internal_bc_c_contact_6_face_3internal_bc_c_contact_6_face_4internal_bc_c_contact_7_face_1internal_bc_c_contact_7_face_2internal_bc_c_contact_7_face_3internal_bc_c_contact_7_face_4internal_bc_c_contact_8_face_1internal_bc_c_contact_8_face_2internal_bc_c_contact_8_face_3internal_bc_c_contact_8_face_4internal_bc_c_contact_9_face_1internal_bc_c_contact_9_face_2internal_bc_c_contact_9_face_3internal_bc_c_contact_9_face_4
End

Boundary Condition 222
Name = internal_bc_c_contact_1_face_2internal_bc_c_contact_1_face_3internal_bc_c_contact_1_face_4internal_bc_c_contact_2_face_1internal_bc_c_contact_2_face_2internal_bc_c_contact_2_face_3internal_bc_c_contact_2_face_4internal_bc_c_contact_3_face_1internal_bc_c_contact_3_face_2internal_bc_c_contact_3_face_3internal_bc_c_contact_3_face_4internal_bc_c_contact_4_face_1internal_bc_c_contact_4_face_2internal_bc_c_contact_4_face_3internal_bc_c_contact_4_face_4internal_bc_c_contact_5_face_1internal_bc_c_contact_5_face_2internal_bc_c_contact_5_face_3internal_bc_c_contact_5_face_4internal_bc_c_contact_6_face_1internal_bc_c_contact_6_face_2internal_bc_c_contact_6_face_3internal_bc_c_contact_6_face_4internal_bc_c_contact_7_face_1internal_bc_c_contact_7_face_2internal_bc_c_contact_7_face_3internal_bc_c_contact_7_face_4internal_bc_c_contact_8_face_1internal_bc_c_contact_8_face_2internal_bc_c_contact_8_face_3internal_bc_c_contact_8_face_4internal_bc_c_contact_9_face_1internal_bc_c_contact_9_face_2internal_bc_c_contact_9_face_3internal_bc_c_contact_9_face_4
End

Boundary Condition 223
Name = internal_bc_c_contact_1_face_3internal_bc_c_contact_1_face_4internal_bc_c_contact_2_face_1internal_bc_c_contact_2_face_2internal_bc_c_contact_2_face_3internal_bc_c_contact_2_face_4internal_bc_c_contact_3_face_1internal_bc_c_contact_3_face_2internal_bc_c_contact_3_face_3internal_bc_c_contact_3_face_4internal_bc_c_contact_4_face_1internal_bc_c_contact_4_face_2internal_bc_c_contact_4_face_3internal_bc_c_contact_4_face_4internal_bc_c_contact_5_face_1internal_bc_c_contact_5_face_2internal_bc_c_contact_5_face_3internal_bc_c_contact_5_face_4internal_bc_c_contact_6_face_1internal_bc_c_contact_6_face_2internal_bc_c_contact_6_face_3internal_bc_c_contact_6_face_4internal_bc_c_contact_7_face_1internal_bc_c_contact_7_face_2internal_bc_c_contact_7_face_3internal_bc_c_contact_7_face_4internal_bc_c_contact_8_face_1internal_bc_c_contact_8_face_2internal_bc_c_contact_8_face_3internal_bc_c_contact_8_face_4internal_bc_c_contact_9_face_1internal_bc_c_contact_9_face_2internal_bc_c_contact_9_face_3internal_bc_c_contact_9_face_4
End
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

c or fortran Code is I think fine with me, I could somewhat read it I think. C I know fortran not so well.
but when I checked if there is anything obvious where to search then it was not possible to know where I should start (which file)

I will try but any hint would be good. Yet I dont know if I could actually find the problem
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

import code seems to start at 4416 in femfilein.c
and as far as I can see the resulting names are in entityname (4450/51) and it is displayed correctly there

and here is the line copying the string into data

4446 strcpy(data->bodyname[nogroup],entityname);

data is femtype 4060


int LoadUniversalMesh(struct FemType *data,struct BoundaryType *bound,
char *prefix,int info)
Last edited by renoes on 03 Aug 2018, 16:46, edited 1 time in total.
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

Maybe it relates to https://github.com/ElmerCSC/elmerfem/bl ... femtypes.h

at line 223 224, with maximum varname length 30 at line 12

223 char bodyname[MAXBODIES][MAXNAMESIZE];
224 char boundaryname[MAXBCS][MAXNAMESIZE];

12 #define MAXNAMESIZE 30 /* maximum size of the variablename */


if there is no check for this in the code reading the names (see above)

Checking would be nice, or well increasing the size to something like 50?

Is this what can lead to observed behaviour?
renoes
Posts: 6
Joined: 03 Aug 2018, 13:28
Antispam: Yes

Re: weird names in entities.sif after ElmerGrid 8 2 unv -autoclean

Post by renoes »

I'll crosscheck what happens if I just remove a few characters. The names are maybe just above 30 signs long

or is it 29 plus null? I remember that strings in C had some end sign null and if you write over those nulls then it would be somewhat logical to get such long strings.

Looks like it is os. Because now, when I shortened the strings to max 30 signs the weird names start with 29 signs (plus null)

Reducing the length of the names further, no errors anymore observed. It really looks like above string arrays[][] fail when used with names longer than 29 signs
Post Reply