tidy3d.UniformGrid#

class tidy3d.UniformGrid#

Uniform 1D grid.

Parameters

dl (PositiveFloat = None) – [units = um]. Grid size for uniform grid generation.

Example

>>> grid_1d = UniformGrid(dl=0.1)

Show JSON schema
{
   "title": "UniformGrid",
   "description": "Uniform 1D grid.\n\nParameters\n----------\ndl : PositiveFloat = None\n    [units = um].  Grid size for uniform grid generation.\n\nExample\n-------\n>>> grid_1d = UniformGrid(dl=0.1)",
   "type": "object",
   "properties": {
      "type": {
         "title": "Type",
         "default": "UniformGrid",
         "enum": [
            "UniformGrid"
         ],
         "type": "string"
      },
      "dl": {
         "title": "Grid Size",
         "description": "Grid size for uniform grid generation.",
         "units": "um",
         "exclusiveMinimum": 0,
         "type": "number"
      }
   },
   "required": [
      "dl"
   ],
   "additionalProperties": false
}

Fields
  • dl (pydantic.types.PositiveFloat)

attribute dl: pydantic.types.PositiveFloat [Required]#

Grid size for uniform grid generation.

Constraints
  • exclusiveMinimum = 0