It is chosen to be the maximum number allowed by the Courant-Friedrichs-Lewyġ for 1D simulations, 1/√2 for 2D simulations and 1/√3 for 3D Time_step of the simulation and the grid_spacing of the grid. Is possible to change those arrays after making the grid.įinally, the courant_number of the grid determines the relation between the Grid.inverse_permeability array of shape (grid.Nx, grid.Ny, grid.Nz, 3). Reasons) to their inverses grid.inverse_permittivity array and a Internally, these variables will be converted (for performance Permittivity for each of the major axes (so-called uniaxial or biaxial In the last case, the shape implies the possibility for different Recommended minimum grid_spacing turns out to be 50nmįor the permittivity and permeability floats or arrays with the followingĪre expected. Wavelength 1550nm and a material with refractive index of 3.1, the This means that for a grid containing a source with For stability reasons, it is recommended toĬhoose a grid spacing that is at least 10 times smaller than the smallest Internally, these numbers will be translated to three integers:Ī grid_spacing can be given. If the shape is given in integers, itĭenotes the width, height and length of the grid in terms of the If the shape is given in floats, it denotes the width, A grid is defined by its shape, which is just a 3D tuple of Number-types
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |