Page 2 of 2

Re: prism+tets

Posted: Thu Nov 19, 2015 3:21 pm
by ewpostek
Hello,
This is the gid_mesh file as well,
regards,
Elek

Re: prism+tets

Posted: Thu Nov 19, 2015 4:36 pm
by escolano
Your initial mesh has a portion of the sphere duplicaded, with overlapped triangles.
Using View->Higherentites->Edges
you will see the part with a repeated sector:
highrentity_edges.png
highrentity_edges.png (70.83 KiB) Viewed 3770 times

You could manually delete the unwanted triangles before the conversion to surface, or delete the surfaces after the conversion.

Re: prism+tets

Posted: Thu Nov 19, 2015 4:47 pm
by escolano
I attach a GiD model converted to surfaces, deleting unwanted ones and with a volume created.
mem_out_gid.rar
(240.74 KiB) Downloaded 175 times

Re: prism+tets

Posted: Fri Nov 20, 2015 6:22 pm
by ewpostek
Thank you, it was an error in patran
geometry "duplicated durface"
EP.

Re: prism+tets

Posted: Fri Nov 20, 2015 7:41 pm
by ewpostek
hello, there is such a long command:

Mescape Geometry Create Reconstruct OneSurfForEachElement
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
escape

Is it possible to shorten it, not to enumerate all entities, for example,
Mescape Geometry Create Reconstruct OneSurfForEachElement
283 to 370
escape

best regards,
Elek

Re: prism+tets

Posted: Fri Nov 20, 2015 8:24 pm
by escolano
yes, while selecting the list of entities could be shorten with the syntax a:b
200 283:370
meaning the items 200 283 284 ... 369 370

Re: prism+tets

Posted: Fri Nov 20, 2015 8:30 pm
by escolano
And at Tcl level you can convert a list of increasing integers from the 'compact' to the 'expanded' syntax with these procedures (defined in dev_kit.tcl of our scripts, this file has common tools for Tcl/Tk GiD developers)

Code: Select all

set expanded [GidUtils::UnCompactNumberList $items]

or vice-versa

Code: Select all

set compacted [GidUtils::CompactNumberList $expanded]


e.g.
if do you write in the lower command line this test:

Code: Select all

-np- WarnWinText  [GidUtils::CompactNumberList {283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370}]

you will obtain

Code: Select all

283:370