MeshSolver.from_grid

classmethod MeshSolver.from_grid(dx, nx, dy, ny)

Create a MeshSolver from a rectangular grid mesh.

Parameters:
dxfloat

Size of a grid cell in the x direction.

nxint

Number of grid cells in the x direction.

dyfloat

Size of a grid cell in the y direction.

nyint

Number of grid cells in the y direction.

Returns:
MeshSolver

A new mesh solver instance.