Generate a structured hexahedra 3D mesh Parameters ---------- nx : int Number of cells in x-direction. ny : int Number of cells in y-direction. nz : int Number of cells in z-direction. periodic_x: bool If True, the left and right boundaries ar
(nx=10, ny=10, nz=10, secondorder=False, periodic_x=False, periodic_y=False, periodic_z=False, mapping = None, cuboid_mapping=False)
| 491 | return ngsmesh |
| 492 | |
| 493 | def MakeHexMesh(nx=10, ny=10, nz=10, secondorder=False, periodic_x=False, periodic_y=False, periodic_z=False, mapping = None, cuboid_mapping=False): |
| 494 | """ |
| 495 | Generate a structured hexahedra 3D mesh |
| 496 | |
| 497 | Parameters |
| 498 | ---------- |
| 499 | nx : int |
| 500 | Number of cells in x-direction. |
| 501 | |
| 502 | ny : int |
| 503 | Number of cells in y-direction. |
| 504 | |
| 505 | nz : int |
| 506 | Number of cells in z-direction. |
| 507 | |
| 508 | periodic_x: bool |
| 509 | If True, the left and right boundaries are identified to generate a periodic mesh in x-direction. |
| 510 | |
| 511 | periodic_y: bool |
| 512 | If True, the top and bottom boundaries are identified to generate a periodic mesh in y-direction. |
| 513 | |
| 514 | periodic_z: bool |
| 515 | If True, the top and bottom boundaries are identified to generate a periodic mesh in z-direction. |
| 516 | |
| 517 | mapping: lambda |
| 518 | Mapping to transform the generated points. If None, the identity mapping is used. |
| 519 | |
| 520 | cuboid_mapping: bool |
| 521 | If True, a straight geometry is assumed. |
| 522 | |
| 523 | |
| 524 | Returns |
| 525 | ------- |
| 526 | (ngsolve.mesh) |
| 527 | Returns generated 3D NGSolve mesh consisting of only hexahedra |
| 528 | |
| 529 | """ |
| 530 | return MakeStructured3DMesh(hexes=True, nx=nx, ny=ny, nz=nz, secondorder=secondorder, periodic_x=periodic_x, periodic_y=periodic_y, periodic_z=periodic_z, mapping=mapping, cuboid_mapping=cuboid_mapping) |
| 531 | |
| 532 | def MakePrismMesh(nx=10, ny=None, nz=None, secondorder=False, periodic_x=False, periodic_y=False, periodic_z=False, mapping = None, cuboid_mapping=False): |
| 533 | """ |
no test coverage detected