Generate a structured quadrilateral 2D mesh Parameters ---------- nx : int Number of cells in x-direction. ny : int Number of cells in y-direction. periodic_x: bool If True, the left and right boundaries are identified to generate a periodic mesh in x-di
(nx=10, ny=10, periodic_x=False, periodic_y=False, mapping = None)
| 241 | return ngsmesh |
| 242 | |
| 243 | def MakeQuadMesh(nx=10, ny=10, periodic_x=False, periodic_y=False, mapping = None): |
| 244 | """ |
| 245 | Generate a structured quadrilateral 2D mesh |
| 246 | |
| 247 | Parameters |
| 248 | ---------- |
| 249 | nx : int |
| 250 | Number of cells in x-direction. |
| 251 | |
| 252 | ny : int |
| 253 | Number of cells in y-direction. |
| 254 | |
| 255 | periodic_x: bool |
| 256 | If True, the left and right boundaries are identified to generate a periodic mesh in x-direction. |
| 257 | |
| 258 | periodic_y: bool |
| 259 | If True, the top and bottom boundaries are identified to generate a periodic mesh in y-direction. |
| 260 | |
| 261 | mapping: lambda |
| 262 | Mapping to transform the generated points. If None, the identity mapping is used. |
| 263 | |
| 264 | |
| 265 | Returns |
| 266 | ------- |
| 267 | (ngsolve.mesh) |
| 268 | Returns generated 2D NGSolve mesh |
| 269 | |
| 270 | """ |
| 271 | return MakeStructured2DMesh(quads=True, nx=nx, ny=ny, periodic_x=periodic_x, periodic_y=periodic_y, mapping=mapping) |
| 272 | |
| 273 | def MakeStructured3DMesh(hexes=True, nx=10, ny=None, nz=None, secondorder=False, periodic_x=False, periodic_y=False, periodic_z=False, mapping = None, cuboid_mapping=False, prism=False): |
| 274 | """ |
no test coverage detected