prism+tets

Moderator: GiD Team

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

Re: prism+tets

Postby ewpostek » Thu Nov 19, 2015 3:21 pm

Hello,
This is the gid_mesh file as well,
regards,
Elek
Attachments
mem_out.zip
gid_mesh
(18.02 KiB) Downloaded 176 times
User avatar
escolano
Posts: 1628
Joined: Thu Sep 18, 2014 3:31 pm

Re: prism+tets

Postby escolano » Thu Nov 19, 2015 4:36 pm

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 3767 times

You could manually delete the unwanted triangles before the conversion to surface, or delete the surfaces after the conversion.
User avatar
escolano
Posts: 1628
Joined: Thu Sep 18, 2014 3:31 pm

Re: prism+tets

Postby escolano » Thu Nov 19, 2015 4:47 pm

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

Re: prism+tets

Postby ewpostek » Fri Nov 20, 2015 6:22 pm

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

Re: prism+tets

Postby ewpostek » Fri Nov 20, 2015 7:41 pm

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: 1628
Joined: Thu Sep 18, 2014 3:31 pm

Re: prism+tets

Postby escolano » Fri Nov 20, 2015 8:24 pm

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: 1628
Joined: Thu Sep 18, 2014 3:31 pm

Re: prism+tets

Postby escolano » Fri Nov 20, 2015 8:30 pm

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

Return to “Mesh”

Who is online

Users browsing this forum: No registered users and 1 guest