Documentation

# mesh

Mesh properties of metal or dielectric antenna or array structure

## Syntax

``mesh(object)``
``mesh(shape)``
``mesh(object,Name,Value)``
``meshdata = mesh(___,Name,Value)``

## Description

````mesh(object)` plots the mesh used to analyze antenna or array element.```

example

````mesh(shape)` plots the mesh for the shapes.```

example

````mesh(object,Name,Value)` changes and plots the mesh structure of an antenna or array element, using additional options specified by the name-value pairs. You can also determine the number of unknowns from the number of basis functions in the output.```

example

````meshdata = mesh(___,Name,Value)` returns a mesh structure that specifies the properties used to analyze the antenna or array.```

## Examples

collapse all

Create and view the mesh structure of a top hat monopole antenna with Maximum edge length of 0.1 m.

```h = monopoleTopHat; i = impedance(h,75e6)```
```i = 2.5322e+02 + 6.0784e+02i ```
`mesh(h)` `m = mesh(h)`
```m = struct with fields: NumTriangles: 152 NumTetrahedra: 0 NumBasis: 207 MaxEdgeLength: 0.4295 MeshMode: 'auto' ```

Radiation Pattern of Microstrip Patch Antenna

Create a microstrip patch antenna using 'FR4' as the dielectric substrate.

```d = dielectric('FR4'); pm = patchMicrostrip('Length',75e-3, 'Width',37e-3, ... 'GroundPlaneLength',120e-3, 'GroundPlaneWidth',120e-3, ... 'Substrate',d); show(pm)``` Plot the radiation pattern of the antenna at a frequency of 1.67 GHz.

```figure pattern(pm,1.67e9)``` Mesh the whole antenna.

```figure mesh(pm)``` Mesh only the dielectric surface of the antenna.

```figure mesh(pm,'View','dielectric surface')``` Create a rectangular and circular shape, intersect them and mesh at a wavelength of 2 m.

```r = antenna.Rectangle; c = antenna.Circle; p = r&c; mesh(p,2);``` ## Input Arguments

collapse all

Antenna or array element, specified as an object.

Shape created using custom elements and shape objects of Antenna Toolbox, specified as an object handle. You can create the shapes using `antenna.Circle`, `antenna.Polygon`, or `antenna.Rectangle`.

Example: `c = antenna.Rectangle; mesh(c)`

### Name-Value Pair Arguments

Example: ‘MaxEdgeLength’, 0.1

Specify optional comma-separated pairs of `Name,Value` pair arguments. `Name` is the argument name and `Value` is the corresponding value. `Name` must appear inside single quotes (`''`). You can specify several name and value pair arguments in any order as ```Name1, Value1, ..., NameN, ValueN```.

Maximum edge length of triangles in mesh, specified as a comma-separated pair consisting of `'MaxEdgeLength'` and a scalar. All triangles in the mesh have sides less than or equal to the `'MaxEdgeLength'` value.

Data Types: `double`

Minimum edge length of triangles in mesh, specified as a comma-separated pair consisting of `'MinEdgeLength'` and a scalar. All triangles in the mesh have sides less than or equal to the `'MinEdgeLength'`.

### Note

You can use this property only with the `pcbStack` object.

Data Types: `double`

Mesh growth rate, specified as a comma-separated pair consisting of `'GrowthRate'` and a scalar. The default value of `0.7` states that the growth rate of the mesh is 70 percent. Growth rate values lie between `0` and `1`.

### Note

You can use this property only with the `pcbStack` object.

Data Types: `double`

Customize mesh view of antenna or array element, specified as a comma-separated pair consisting of `'View'` and `'all'`, `'metal'`,`'dielectric surface'`, or `'dielectric volume'`.

You choose `'dielectric surface'` to view the boundary triangle mesh of the dielectric. You choose `'dielectric volume'` to view the tetrahedral volume mesh of the dielectric.

Data Types: `char`