prism+tets

Moderator: GiD Team

ewpostek
Posts: 14
Joined: Mon Nov 02, 2015 5:03 pm

Re: prism+tets

Post by ewpostek »

Hello,
This is the gid_mesh file as well,
regards,
Elek
Attachments
mem_out.zip
gid_mesh
(18.02 KiB) Downloaded 351 times
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: prism+tets

Post 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 6777 times
You could manually delete the unwanted triangles before the conversion to surface, or delete the surfaces after the conversion.
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: prism+tets

Post 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 362 times
ewpostek
Posts: 14
Joined: Mon Nov 02, 2015 5:03 pm

Re: prism+tets

Post by ewpostek »

Thank you, it was an error in patran
geometry "duplicated durface"
EP.
ewpostek
Posts: 14
Joined: Mon Nov 02, 2015 5:03 pm

Re: prism+tets

Post 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
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: prism+tets

Post 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
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: prism+tets

Post 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
Post Reply