shapes.mac

This macro file can be imported to an input file with

$ import shapes

It is always imported by VSim at the top level.

This macro file is available to all packages.

This macro file defines the macros for adding shapes of different materials.

Public Macros

addShape(cadBoundaryName, cadFileName, material)

Add a shape by writing the GridBoundary block to the shapes accumulation variable. If PEC, set VPM_CONDUCTING_GRID_BOUNDARY_NAME to this name Else If dielectric, add to the dielectric shapes, etc.

Parameters:
  • cadBoundaryName – The name of the GridBoundary.
  • cadFileName – The name of the (stl) file that contains the geometry.
  • material – The name of the material that the boundary is made of
addConductor(materialName, resistance)

Add a conducting material.

Parameters:
  • materialName – The name of the material.
  • resistance – The resistance of the material.
addDielectric(materialName, relativePermittivity, conductivity)

Add a dielectric material.

Parameters:
  • materialName – The name of the material.
  • relativePermittivity – The relative permittivity of the material.
  • conductivity – The conductivity of the dielectric object.