VEGA

TAILSIT GmbH

VEGA - Help

VEGA Logo

Virtual prototyping by Electrostatic Geometry-aware Analysis

VEGA is a plugin for Rhino developed by Graz University of Technology and TAILSIT GmbH. The homonymous project was funded by the Österreichische Forschungsförderungsgesellschaft (FFG) and carried out in collaboration with GIPRO GmbH.

This document provides an overview and user guide for VEGA, a plugin that enables virtual prototyping by performing electrostatic analysis within Rhino. VEGA integrates advanced simulation capabilities based on geometry-aware Boundary Element Methods (BEM).

TAILSIT GmbH

TAILSIT Logo

Nikolaiplatz 4
8020 Graz, Austria
https://www.tailsit.com
info@tailsit.com

Graz University of Technology

TUG Logo

Institute of Applied Mechanics
Technikerstraße 4/II
8010 Graz, Austria
http://www.mech.tugraz.at/
iam@tugraz.at

How to Start

VEGA comes with an integrated help system to guide you through its features. To access the documentation, type VEGAHelp and choose Documentation in the Rhino command line. It opens this file in your browser. Additionally, when invoking VEGA commands, the context-sensitive documentation is shown in the help panel of Rhino.

This documentation provides you with example Python scripts for beginners, an industrial example that shows all features and capabilities of VEGA, the documentation of each available command as well as some technical background.

For beginners, we strongly recommend to execute and read the source code of the first three Python scripts.

Need more help? Reach out to the developers!

Examples

VEGA is shipped with example Python-scripts that show the capabilities of the plugin and validate its accuracy. The Python examples VEGAExample1.py, VEGAExample2.py and VEGAExample3.py are intended primarily as introductory examples for beginners. The commands contained therein can also be executed manually. VEGAExample4.py contains almost every feature and command of VEGA and should serve as an aid for more complex problems.

The examples along with other resources are located in the folder Python of the plugin’s install location. To open the containing folder, use the command VEGAHelp selecting Examples.

File Description
VEGAExample1.py Electrostatic interaction between two conducting spheres with a given voltage.
VEGAExample2.py Electrostatic interaction between a conducting sphere with a known potential and a bi-cone with unknown (floating) potential.
VEGAExample3.py Capacitor consisting of two conducting plates and a dielectric isolator region in between
VEGAExample4.py High-voltage bushing)
VEGAExample4.3dm Geometry of the high-voltage bushing example

To run these examples, invoke RunPythonScript from the Rhino command line.

Two Conducting Spheres

File: VEGAExample1.py

This, very basic example simulates the electrostatic interaction between two conducting spheres with a given voltage. The results are compared to the analytical solution (see Wikipedia).
The user can choose which actions are performed by the script:

Note, that these steps should be enabled in consecutive order. Additionally, the script lets you choose the level of refinement (Level 0-3) and if the mesh should be non-conforming along surface edges or not.

Conducting Sphere and Bi-Cone

File: VEGAExample2.py

Simulates the electrostatic interaction between a conducting sphere with a known potential and a bicone with an unknown, floating potential. The results are compared with the data reported in Ref.5.

Like in the conducting sphere example, the user can enable different actions and discretization levels performed by the script.

Parallel Plate Capacitor

File: VEGAExample3.py

Simulates a capacitor consisting of two conducting plates and a dielectric isolator region in between. The results are compared to the analytical solution.
Note that due the fringe effect, causes the calculated capacitance to be slightly higher than the value calculated using the idealized formula provided, e.g. in Wikipedia). To minimize the effect, the relative permittivity has been chosen relatively large.

Like in the conducting sphere example, the user can enable different actions and discretization levels performed by the script.

High-Voltage Bushing

File: VEGAExample4.py

This industrial example is based on VEGAExample4.py, which simulates a high-voltage bushing that has been reported in Ref.1.

Like in the conducting sphere example, the user can enable different actions and discretization levels performed by the script.

Remark:
The following sections provide a how-to for all manual steps that have to be performed by the user in order to mimic the outcome of the script. Almost all VEGA features and commands are used. Thus, it is not intended to serve as an introductory tutorial. For this purpose, we recommend studying the Python examples 1-3.

The geometry of the example may be generated with the aforementioned Python script or can alternatively be loaded from VEGAExample4.3dm located in the examples directory that can be accessed via the command VEGAHelp. The following sketch is also found in Ref.2:

Sketch of the Bushing

The bushing is made of epoxyd with εr=4\varepsilon_r=4 and a cable and its extension that carry a voltage of Vc=100,000[V]V_c=100{,}000~[V]. Inside the dielectric (epoxyd), there are 5 cylindrical foils: 4 of them are floating conductors with zero surface charge σ=0[C/m2]\sigma=0~[C/m^2], the outermost one is grounded Vg=0[V]V_g=0~[V].

Based on this example, the subsequent sections detail the workflow in VEGA for making a 3D analysis:

  1. Create Rhino geometry
  2. Initialize the VEGA environment
  3. Combine Rhino surfaces to VEGA groups
  4. Define material properties and assign VEGA groups to them
  5. Meshing of the VEGA groups’ surfaces
  6. Running the analysis and postprocessing

Step 1 employs conventional Rhino commands, steps 2-4 result in VEGA entities which represent the analysis model, step 5 generates the analysis mesh, and step 6 addresses the communication with the BEM (Boundary Element Method) solver INDES.

Pay attention to the remarks in each section since they contain crucial details to obtain accurate analysis results.

Geometry

The example geometry and the Python scripts are located at the plugin’s installation path. To navigate there, call:

VEGAHelp Examples

Remark: VEGA utilizes the SI unit system. If the unit system of a Rhino document is different from meter [m][m], the geometry is scaled for the electrostatic solver. The displayed results are projected to the original geometry in the document. VEGAExample4.py uses centimeter [cm][cm] as the length unit for the creation of the sketched geometry.

Rhino Bushing Model Geometry

The bushing is rotationally symmetric and each rotated entity consists of two Rhino surfaces. This applies to the following entities listed by their Rhino surface names (lengths are in [mm][mm]):

All the surfaces in the example geometry are named with respect to their entity. Electrodes are colored in gold, floating conductors in turquoise and the boundary of the epoxy in brown.

We have created two ClippingPlane on the Default layer in such a way that the inside of the bushing becomes visible. Additionally, you may change the visibility of the layers which are named by the entities they contain.

Remark: As noted above, all entities consist of two surfaces, even though they could be represented by a single closed one, like cylinders. This choice is due to the fact that VEGA currently cannot automatically treat closed surfaces.

Initialize

Once the geometry is loaded, initialize the plugin:

VEGAReset yes

VEGA Groups

To use Rhino surfaces for a VEGA analysis, users must assign surfaces to so-called VEGA Groups.

For the given example, we first group all outer boundary surfaces into an open VEGA group — meaning the group’s surfaces do not enclose a closed domain. Since the required surfaces are already named in the document, you can select them using the Rhino command SelName. You can use SelNone to clear all selections.

SelNone
SelName BushingBottom BushingMid BushingTop CableExtensionTop CableExtensionBottom
VEGAAddOpenGroup OuterBoundary

These commands create the VEGA group VEGA-OuterBoundary.

Select the surfaces for the part Cable and create the VEGA group VEGA-Cable with:

SelNone
SelName Cable
VEGAAddOpenGroup Cable 

Each VEGA group is a Rhino group with additional connectivity data between the shared edges of the group’s surfaces. When setting up a VEGA group, only two surfaces can share an edge. If you want to assign more surfaces to an edge, you can join VEGA groups, as described next.

VEGA-OuterBoundary and VEGA-Cable meet at triple junctions on the outer side of BushingBottom and BushingTop. To consider this connection, the plugin must generate additional connectivity information by merging these two groups along user-provided edges. When calling the VEGAJoinGroups command, the surface edges of the smaller group are labelled by letters (A,B,C,…). The user is asked to specify which edges shall be joined to the other group.

Join VEGA surface groups

The screenshot shows the labelled edges of VEGA-Cable and the corresponding user dialog. Note that the edges A and C are not connected to VEGA-OuterBoundary. Thus, the edges B, D, E and F define the two triple junctions, which can be established by:

SelNone
SelGroup VEGA-OuterBoundary
VEGAJoinGroups _SelGroup VEGA-Cable Enter B D E F Enter

All foils are placed in their own separate VEGA group. The corresponding surfaces of the parts are selected with respect to their name again.

SelNone
SelName Foil1
VEGAAddOpenGroup Foil1
SelNone
SelName Foil2
VEGAAddOpenGroup Foil2
SelNone
SelName Foil3
VEGAAddOpenGroup Foil3
SelNone
SelName Foil4
VEGAAddOpenGroup Foil4
SelNone
SelName Ground
VEGAAddOpenGroup Ground

These commands create the VEGA groups VEGA-Foil1, VEGA-Foil2, VEGA-Foil3, VEGA-Foil4 and VEGA-Ground, each consisting of two surface objects.

In order to inspect the established connectivity data, you can call

VEGAVisualizeEdgeConformance

This command fetches all surfaces assigned to VEGA groups and introduces a layer called VEGAEdgeConformance. On this layer, connectivity labels are introduced at the mid points of edge segments joined during setting up the VEGA groups and VEGAJoinGroups calls. Each connectivity label Si->Sj shows the parent surface Si, i.e., the surface the edge segment belongs to, and the child surface Sj, i.e., the surface adjacent to the edge segment. The label’s Properties page provides further details.

VEGA surface connectivity visualization

The screenshot shows the text dot labels at the upper triple junctions. Note that clicking the highlighted connectivity labels opens a Selection Menu with six labels since there are 6 labels on top of each other. These overlapping labels represent the bi-directional connectivity between the 3 surfaces at the triple junction, i.e., Si->Sj with i,j=4,10,12i,j=4,10,12.

Remark: The VEGA surface id of a surface is given in the VEGA Properties Page.

Remark: Do not change the surfaces’ geometry after they have been added to a VEGA group, since this corrupts the established connectivity data.

Material

In this section, we add the required materials to the electrostatic model and assign surfaces to them.

VEGAAddMaterial Electrode Cable 100000.0
VEGAAddMaterial Electrode Ground 0.0
VEGAAddMaterial Dielectric Epoxyd 4.0
VEGAAddMaterial Floating Foil1 0.0
VEGAAddMaterial Floating Foil2 0.0
VEGAAddMaterial Floating Foil3 0.0
VEGAAddMaterial Floating Foil4 0.0

In the Rhino command line log, VEGAListMaterial shows you if everything worked out correctly:

VEGAListMaterial
Materials and boundary conditions for the electrostatic model in this document:
  Electrodes:
    - 'Cable': id=1, voltage=100000, surfaces=[]
    - 'Ground': id=2, voltage=0, surfaces=[]
  Dielectric material:
    - 'Air': id=0, epsR=1, surfaces=[], orientations=[]
    - 'Epoxyd': id=3, epsR=4, surfaces=[], orientations=[]
  Floating conductors:
    - 'Foil1': id=4, charge=0, surfaces=[]
    - 'Foil2': id=5, charge=0, surfaces=[]
    - 'Foil3': id=6, charge=0, surfaces=[]
    - 'Foil4': id=7, charge=0, surfaces=[]

Note that the material ‘Air’ for the exterior domain is listed by default. The fields surfaces and orientations are currently empty, since the VEGA surface are not yet assigned to the materials.
Let’s begin with the epoxyd bushing by assigning its bounding surfaces to the dielectric material “Epoxyd”:

SelNone
SelName BushingTop BushingMid BushingBottom Cable
VEGAAssignToMaterial Dielectrics Epoxyd I I O O I I I I

Remark: Note that for dielectric materials, the user is asked to provide the orientation of the normal vectors shown: I - normal points inward to the domain, O - normal points outward of the domain. This information sets the surface orientation in the material list; i.e., -1 for inward normal and 1 for outward normal.

When we now call VEGAListMaterial again, we obtain the updated material list where the surface IDs correspond to the order surfaces have been added to VEGA groups

  ...
  Dielectric material:
    - 'Air': id=0, epsR=1, surfaces=[], orientations=[]
    - 'Epoxyd': id=3, epsR=5, surfaces=[1, 2, 11, 12, 7, 8, 9, 10], orientations=[-1, -1, 1, 1, -1, -1, -1, -1]
  ...

Next, select the cable electrode surfaces in the same way: The surfaces Cable, CableExtensionTop and CableExtensionBottom together comprise six surfaces. Apply the electrode voltage with:

SelNone
SelName Cable CableExtensionTop CableExtensionBottom
VEGAAssignToMaterial Electrodes Cable No

For electrode and floating materials, the final step is to tell the plugin if the assigned surfaces are inside a dielectric material. Note that the surfaces Cable are part of the boundary of the dielectric material ‘Epoxyd’ but not inside.

Let’s continue by assigning material properties to the inner foils of the bushing:

SelNone
SelGroup VEGA-Foil1
VEGAAssignToMaterial Floating Foil1 Yes Epoxyd

Again, the VEGA plugin needs to know that these surfaces are located in the epoxyd of the bushing. Consulting the VEGAListMaterial provides

  ...
  Dielectric material:
    - 'Air': id=0, epsR=1, surfaces=[], orientations=[]
    - 'Epoxyd': id=3, epsR=5, surfaces=[1, 2, 11, 12, 7, 8, 9, 10, 13, 14], orientations=[-1, -1, 1, 1, -1, -1, -1, -1, 0, 0]
  Floating conductors:
    - 'Foil1': id=4, charge=0, surfaces=[13, 14]
  ...

Note that the surfaces 13 and 14 of ‘Foil1’ are listed in ‘Epoxyd’ as well, with the orientation 0.

Likewise, the remaining foils are added by

SelNone
SelGroup VEGA-Foil2
VEGAAssignToMaterial Floating Foil2 Yes Epoxyd
SelNone
SelGroup VEGA-Foil3
VEGAAssignToMaterial Floating Foil3 Yes Epoxyd
SelNone
SelGroup VEGA-Foil4
VEGAAssignToMaterial Floating Foil4 Yes Epoxyd
SelNone
SelGroup VEGA-Ground
VEGAAssignToMaterial Electrodes Ground Yes Epoxyd

Finally, we need to define the exterior air domain by means of its outward normal:

SelNone
SelGroup VEGA-OuterBoundary
VEGASetExteriorDomain Air O O O O I I O O O O

Calling VEGAListMaterial should give

VEGAListMaterial
Materials and boundary conditions for the electrostatic model in this document:
  Electrodes:
    - 'Cable': id=1, voltage=100000, surfaces=[11, 12, 3, 4, 5, 6]
    - 'Ground': id=2, voltage=0, surfaces=[21, 22]
  Dielectric material:
    - 'Air': id=0, epsR=1, surfaces=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], orientations=[1, 1, 1, 1, -1, -1, 1, 1, 1, 1]
    - 'Epoxyd': id=3, epsR=5, surfaces=[1, 2, 11, 12, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], orientations=[-1, -1, 1, 1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  Floating conductors:
    - 'Foil1': id=4, charge=0, surfaces=[13, 14]
    - 'Foil2': id=5, charge=0, surfaces=[15, 16]
    - 'Foil3': id=6, charge=0, surfaces=[17, 18]
    - 'Foil4': id=7, charge=0, surfaces=[19, 20]

Remark: The surface IDs may differ depending on the order of the commands. You can select VEGA surfaces and check their surface ID via the VEGA Properties Page.

Remark: Instead of using SelName and SelGroup, the user can just click on the VEGA groups. To cherry-pick specific surfaces within a group hold Ctrl-Shift.

Meshing

For the analysis, VEGA surfaces require a mesh. The number of elements and the meshing algorithm can be configured individually for each surface. See VEGASetMeshingParameter for all available options.

As an example, the mesh of the bushing mid-surface is configured with:

SelNone
SelName BushingMid
VEGASetMeshingParameter CombinedQuads Scripted DetailedOptions AdvancedOptions MaxEdgeLength 2.5 MinEdgeLength 1.25 _Enter _Enter

After all options are set, the user is prompted to apply the mesh settings. At this stage, the mesh is previewed on the selected VEGA surfaces.

VEGASetMeshingParameter - set up meshing parameter for a bushing surface

For improved visibility of this screenshot, the Rhino display mode has been set to “Wireframe” and only the bushing boundary layer has been set to visible. To increase the visibility of the mesh-preview, the line-thickness can be increased with VEGASettingsDisplay.

Remark: Surfaces on invisible layers are not listed when calling SelName.

To confirm the settings enter

Yes

Let’s define the meshing settings for the bushing’s remaining outer surfaces

SelNone
SelName BushingTop BushingBottom
VEGASetMeshingParameter CombinedQuads Scripted DetailedOptions AdvancedOptions MaxEdgeLength 3.75 MinEdgeLength 1.875 _Enter _Enter Yes

For the cable and the foils, we use a different meshing scheme (see meshing algorithm for details).

SelNone
SelName Cable
VEGASetMeshingParameter Automatic Scripted PolygonDensity 1 _Enter Yes
SelNone
SelName CableExtensionTop CableExtensionBottom
VEGASetMeshingParameter Automatic Scripted PolygonDensity 4 _Enter Yes
SelNone
SelName Foil1 Foil2 Foil3 Foil4 Ground
VEGASetMeshingParameter Automatic Scripted PolygonDensity 20 _Enter Yes

With

VEGAMeshAll Linear

all VEGA surfaces are meshed with linear quadrilaterals and triangles.

In order to check the meshes the user can select the concerned VEGA surface and call VEGASetMeshingParameter without setting anything again. Another option is to “bake” the meshes into the Rhino document. E.g. for the VEGA group OuterBoundary:

SelNone
SelGroup VEGA-OuterBoundary
VEGABakeMeshes Yes

The individual meshes are placed on dedicated layers with the prefix VEGAMesh_. These layers mimic the layer structure of the meshed surfaces. With the final Yes/No option the user can decide if the individual meshes are grouped or not.

VEGASetMeshingParameter - baked outer boundary mesh

This screenshot displays the baked mesh where the different colors indicate the surface id related to the individual meshes.

Remark: Note that the meshes are non-conforming along surface edges. This is not a bug but an intended feature of VEGA: it enables BEM simulations on non-conforming meshes, provided the VEGA groups are configured correctly.

Analysis

Settings for the analysis can be configured with the VEGASettingsAnalysis command. To invoke the electrostatic solver, call

VEGAAnalyze

The current stage of the analysis is shown in the log window.

Postprocessing

If the analysis has been successfully completed, the results must be imported into Rhino for postprocessing.

VEGAImportResults

Surface results

Surface-wise results like the energy, total charge or voltage are displayed in the VEGA properties page. A colored display of these results may be obtained by setting up via VEGASettingsResults. E.g. for showing the surface voltage:

VEGASettingsResults ShowResults=On ShowColorBar=On ResultType=Voltage Colorsteps=10 _Enter

The next screenshot shows the visualized voltage over the surfaces and the result information provided by VEGA’s Properties panel.

Rhino results display: Voltage

To remove the result visualization call:

VEGASettingsResults ShowResults=Off _Enter

Baking results to a colored Rhino mesh is done with the VEGABakeResults command:

VEGABakeResults Voltage

Settings for coloring of baked meshes are taken from VEGASettingsResults.

When more advanced postprocessing is needed, the best option is to export the results to a VTK file, which can be viewed using ParaView.

VEGAExportResultsToVTK

The default paths and the automatic creation of VTK files is set with the command VEGASettingsAnalysisPostprocessing.

Domain evaluation

The voltage or electric field at any point within the domain can be evaluated by providing the plugin with a mesh, where the quantities are computed at the vertices of an evaluation mesh. In our case, we define a planar evaluation domain by a closed polyline

SelNone
Polyline

with points

4, 0, 14 
13, 0, 14
13, 0, -14 
4, 0, -14 
9, 0, -3 
9, 0, 3 
4, 0, 14

and generate a surface mesh with approximately 200 quadrilaterals

SelLast
MeshPolyline
SelLast
QuadRemesh TargetQuadCount=200 Delete Input Objects=true

Remark: The SelLast command picks the previous selected objects. In our example, these are the polyline and the intermediate surface mesh enclosed by the polyline, respectively.

To evaluate the result at the mesh vertices, select the mesh and call:

VEGASetEvaluationMesh
VEGAEvaluate

After evaluation, you can display the domain voltage at the mesh vertices by

VEGASettingsResults ShowResults=On ShowColorBar=On ResultType=DomainVoltage Colorsteps=1 _Enter
Rhino results display: Domain voltage

To bake these results to the Rhino document call

VEGABakeResults DomainVoltage 

Paraview

The output of the surface results to a VTK file (default filename is VEGAPostProcess.vtk) is done with:

VEGAExportResultsToVTK

If turned on in VEGASettingsAnalysisPostprocessing, the results inside the domain are written to a VTK file during VEGAEvaluate (the default filename is VEGAPostProcess.post.vtk).

The following screenshot shows the voltage decay of the bushing as well as the electric field at the evaluation mesh in ParaView.

Voltage decay in bushing

VEGA Properties Page

PropertiesPage VEGA

VEGAPropertiesPage Opens Rhinos properties panel and switches to the VEGA properties page

The VEGA Properties Page in Rhino displays information about VEGA plugin data in Rhino’s properties panel. After running an analysis, you can also view results related to VEGA surfaces here. To access it, select any VEGA surface and run the Rhino command PropertiesPage. Then, choose VEGA or click on the VEGA logo.

The following screenshot shows the properties of the selected VEGA group for Foil 4 of the high-voltage-bushing example:

Screenshot of the VEGA properties page

Commands

Global

VEGAHelp

Help Lets the user open documentation and examples

Info
Plugin version and developer information.
Documentation
Opens this file.
Examples
Opens the folder containing example scripts in Python.
Commands
Lists all available commands.

For an overview, start at the top of this document.

VEGAReset

VEGAReset Resets the electrostatic model

Clears the VEGA database in the document and resets the plugin to its initial state.

Electrostatic Material

The electrostatic model is composed of distinct material domains. These domains can be electrodes, floating conductors, or dielectric media. The commands below set up the material properties and boundary conditions for these domains. Once materials are defined, VEGA surfaces can be assigned to specify each domain’s geometric boundaries.

VEGAAddMaterial

VEGAAddMaterial Adds and defines a material in the electrostatic model.

Adds an electrode, a dielectric material, or a floating conductor to the VEGA database by subsequently calling the corresponding commands:

VEGAEditMaterial

VEGAEditMaterial Modifies the properties of an existing material region in the electrostatic model.

Updates the properties of an electrode, a dielectric material, or a floating conductor stored in the VEGA database by subsequently calling the corresponding commands:

VEGARemoveMaterial

VEGARemoveMaterial Deletes a material region from the electrostatic model.

Removes an electrode, a dielectric material, or a floating conductor entry from the VEGA database by subsequently calling the corresponding commands:

⚠️ Important Usage Remark: - To delete a material, all its assigned VEGA surfaces must be removed from it by the command VEGARemoveFromMaterial.

VEGAListMaterial

VEGAListMaterial Lists all material regions in the electrostatic model.

Displays all electrodes, dielectric media, and floating conductors stored in the VEGA database. For each entry, the assigned VEGA surface IDs are shown together with their orientation relative to the surface normal: - +1: Normal vector points outward from the domain - -1: Normal vector points inward toward the domain - 0: Orientation not specified

VEGA Groups and Surfaces

A VEGA group is a collection of surfaces that represent a connected part of the analysis model. Groups can be either: - Closed: Surfaces that entirely enclose a volume - Open: Connected surfaces that don’t enclose a volume

VEGA Group Properties: - VEGA groups differ from conventional Rhino groups by automatically detecting and storing connectivity information along shared edges, which is needed for analysis. - VEGA groups are stored as a Rhino group with a unique name, such that they can be selected with the SelGroup command. - In closed and open VEGA groups, no more than two surfaces share an edge. However, you may join groups to allow edges where more than two surfaces are connected.

VEGA Surfaces:

Each surface added to a VEGA group automatically becomes a VEGA surface; that is, it is registered in the VEGA database with a unique ID and contains connectivity information to other VEGA surfaces.

⚠️ Important Usage Remarks:

  1. Preserve group integrity: Do not modify geometry objects once they have been added to a VEGA group. While VEGA surfaces point to the original geometric object, the stored connectivity data becomes invalid.

  2. Solids: Currently, only surfaces (not solids) can be added to VEGA groups. Convert solids to surfaces first, e.g.:

    • Box → Use Explode to separate faces
    • Sphere → Use Split at an Isocurve (spheres cannot be exploded)

VEGAAddClosedGroup

VEGAAddClosedGroup Registers a closed domain to the electrostatic model.

Select all surfaces that define the closed domain. They are automatically added to a named group in Rhino and the edges shared between them are detected. The user must then define if the surface normals point outward or inward to the closed domain.

If a surface has been already added to a VEGA group, the user is asked to overwrite the connectivity information.

VEGAAddOpenGroup

VEGAAddOpenGroup Registers open surfaces to the electrostatic model.

The user has to select a single or multiple surfaces that do not enclose a volume completely. If multiple surfaces are selected, they are automatically grouped, and the shared edges are automatically detected. Open groups may be part of electrodes or floating conductors.

It is possible to select single surfaces of a closed group and assign them to other material, e.g., for applying a voltage or defining the electric potential UU to them.

If a surface has been already added to a group, the user is asked to overwrite the enriched geometry information.

VEGAJoinGroups

VEGAJoinGroups Joins two VEGA groups in the electrostatic model along common edges

The primary purpose of this command is to allow for model edges where more than two VEGA surfaces meet, which is prohibited when adding closed or open VEGA groups.

Therefore, the user selects first two VEGA groups and then one or more edges they share. All VEGA surfaces along these edges are updated to connect with the surfaces of the other VEGA group as well. The VEGA groups themselves remain separate.

Assigning VEGA Groups and Surfaces to Materials

Once materials are defined and VEGA groups are created, the VEGA surfaces must be assigned to materials to complete the electrostatic model setup. The commands below manage these assignments.

Note that these VEGA surfaces must have been added as a closed or open group.

When only a part of a VEGA group shall be assigned to a material, press Ctrl + Shift when selecting the VEGA surfaces.

VEGAAssignToMaterial

VEGAAssignToMaterial Assigns VEGA surfaces to an electrode, a dielectric material or a floating conductor

Lets the user choose to assign VEGA surfaces to an electrode, a dielectric material, or a floating conductor, which subsequently calls the corresponding command:

VEGARemoveFromMaterial

VEGARemoveFromMaterial Removes VEGA surfaces from an electrode, a dielectric material or a floating conductor

Lets the user remove VEGA surfaces from an electrode, a dielectric material, or a floating conductor, which subsequently calls the corresponding command:

VEGASetExteriorDomain

VEGASetExteriorDomain Defines the exterior region in the electrostatic model.

The exterior domain represents the infinite dielectric material outside the model, typically air with εr=1\varepsilon_r=1. The material air is included in the electrostatic model by default.

To define the exterior domain, select all VEGA surfaces that form the outer boundary of the model and specify the outward normal direction pointing toward the exterior. These surfaces should form a closed boundary surrounding the electrostatic model.

Meshes

VEGA meshes provide the geometry description of the electrostatic model throughout the analysis. VEGA meshes are based on Rhino meshes, but contain connectivity data of element edges along shared VEGA surface edges. In contrast to Rhino meshes, VEGA meshes can also be higher order.

Meshing workflow: 1. Set up all VEGA groups and assign them to materials. 2. Define the mesh parameters of all VEGA surfaces. 3. Start the meshing process.

VEGASetMeshingParameter

VEGASetMeshingParameter Sets the meshing properties for selected VEGA surfaces

This command lets the user set which algorithm is used to create an analysis mesh for the selected VEGA surfaces. Algorithm parameters like mesh width and element type and shape are set up here.

If you want to apply the settings to whole VEGA groups, pre-select them via SelGroup before calling VEGASetMeshingParameter.

Mesh Algorithms

Rhino offers the following meshing algorithms which are utilized by VEGA:

Automatic
The default analysis-mesh settings of Rhino are taken as a basis, typically allowing quadrilaterals and triangles.
Triangles
Creates triangle-only meshes.
CombineQuads
First a triangular surface mesh is created and then these triangles are recombined into quadrilateral elements if possible.
QuadRemesh
Uses Rhino’s mesh generator for quadrilaterals.

Mesh Setup

Except for the QuadRemesh algorithm, the user may set up the meshing options with a Simple or Advanced GUI dialog or Scripted. The latter is particularly useful when calling VEGA commands from a Python script.

VEGAMeshAll

VEGAMeshAll Meshes all VEGA surfaces

This command meshes all VEGA surfaces respecting the provided meshing parameter. The user has to set the mesh order to Linear or Quadratic.

Linear meshes are default Rhino meshes, while quadratic meshes are generated utilizing degree elevation of linear meshes and a subsequent fitting to the surface geometry. Since the data of quadratic meshes is not represented by Rhino objects, they cannot be displayed in Rhino but may be exported to a VTK-file

VEGABakeMeshes

VEGABakeMeshes Creates a Rhino mesh which represents the mesh of selected VEGA surfaces

Analysis

Here, we describe the key commands to run an electrostatic analysis using the default analysis settings. These settings can be adopted by the command VEGASettingsAnalysis.

VEGAAnalyze

VEGAAnalyze Performs the electrostatic analysis

Before starting the analysis, make sure that the following steps have been completed:

VEGAAnalyze calls the BEM (Boundary Element Method) solver INDES for the analysis. It logs the solver process to the Rhino console. Have a look there to check if the analysis succeeded or something went wrong.

VEGAAnalyzeCancel

VEGAAnalyzeCancel Cancels the analysis

Signals the solver to cancel the analysis. Note, that the solver listens to this signal only between the steps indicated in the output log.

VEGAAnalyzeWait

Waits for the analysis to be completed

VEGA starts the analysis in its own thread. Thus, after calling VEGAAnalyze results are not available immediately. VEGAAnalyzeWait is useful if the simulation process is scripted and processing the results is involved.

Results

After a successful analysis, VEGA provides the user with access to the results through several options: - a display conduit in Rhino, - colored meshes created directly in the Rhino document, or - a VTK file in ASCII format, which can be viewed using ParaView.

The plugin can also evaluate the electrostatic field and voltage at interior points, defined by the vertices of a Rhino mesh set by the user. Evaluation points can be specified before or after the analysis; in the latter case, VEGA performs only a quick evaluation step without rerunning the full analysis.

VEGAImportResults

VEGAImportResults Imports results of the analysis into the document

This command reads the result data provided by the electrostatic solver and stores it in the current Rhino document. Region-wise results and metadata are attached to the corresponding VEGA surfaces by means of Attribute User Text, which can be displayed in Rhino by calling the Properties command.

VEGABakeResults

VEGABakeResults Creates a Rhino mesh that is colored with respect to analysis results

Creates colored meshes for one of the following result types:

Voltage
Voltages U[V]U~[V] on the VEGA surfaces
Chargein
Surface charge σ−[C/m2]\sigma^-~[C/m^2] on the inner side of the VEGA surface - i.e., opposite to the outward normal vector
Chargeout
Surface charge σ+[C/m2]\sigma^+~[C/m^2] on the outside of the VEGA surface - i.e., in the direction of the outward normal vector
DomainVoltage
Calculated potential UΓ[V]U_\Gamma~[V] at defined evaluation points
ElectricField
Calculated magnitude of the electric field |𝐄||\mathbf{E}| [V/m][V/m] at defined evaluation points

VEGAExportResultsToVTK

VEGAExportResultsToVTK Exports results to a VTK file

VEGASetEvaluationMesh

VEGASetEvaluationMesh Define evaluation points in the volume

To evaluate the voltage VV and electric field 𝐄\mathbf{E} in a volume or the exterior domain, the user can define evaluation points using the vertices of a Rhino mesh. VEGASetEvaluationMesh can be called either before starting the analysis or afterward. In the latter case, only a quick evaluation step has to be started without rerunning the full analysis.

VEGAEvaluate

VEGAEvaluate Evaluates the voltage and electric field in the volume

The voltage UΩ[V]U_{\Omega}~[V] and the electric field 𝐄\mathbf{E} [V/m][V/m] are evaluated on the evaluation points that have been defined by the user. Note, that the analysis has to be already completed. After that, the command may be called multiple times.

Settings

VEGASettings

VEGASettings View and change settings

Changes the settings for the Display, Analysis and Results.

Additional Commands

VEGASettingsDisplay

Enables or disables a preview of the analysis mesh

The mesh of a VEGA surface can be directly shown in Rhino’s display pipeline by means of a display conduit.

VEGASettingsAnalysis

Access to settings for the analysis with the electrostatic solver

Allows to change General settings, the set up for the Boundary Element Method (BEM), the Solver of the linear system of equations and for the Postprocessing of results.

VEGASettingsAnalysisGeneral

Set the number of threads for the analysis

VEGASettingsAnalysisBEM

Sets up the approximation order and the Fast Multipole Method

FEOrder
order of the approximation of the field values from 0 (constant) to 2 (quadratic).
FMMDegree (for experts)
Degree of the multipole expansion for the Fast Multipole Method (FMM).
Leafsize (for experts)
Maximal size of a nearfield-matrix in context of the FMM.
LeafQuadrature (for experts)
Order of the numerical quadrature for the integration of leaf-entries in context of the FMM.

VEGASettingsAnalysisSolver

Settings for the iterative solver

rTol
Relative tolerance for the norm of the residual of the iterative solver
aTol
Absolute numerical tolerance for the norm of the residual of the iterative solver.
maxIter
Maximal number of iterations for the iterative solution of the linear system of equations.
verbose
Turns the verbosity of the iterative solver on or off.

VEGASettingsAnalysisPostprocessing

Sets up the postprocessing within the analysis step

VTK
Lets the electrostatic solver write an ASCII VTK file during analysis
Filename
Sets the filename of the VTK file.

VEGASettingsResults

Enables and disables the display of the results

Sets up the display of the analysis results in Rhino’s display pipeline by means of a display conduit.

ShowResults
Turns the result display on or off.
ShowColorBar
Shows a 2D color bar.
ColorBarSize
The size of the color bar.
ColorBarPosition
The position of the color bar.
ResultType
The result field to be displayed, e.g. the Voltage U[V]U~[V] on the VEGA surfaces, Chargein - the surface charge σ−[C/m2]\sigma^-~[C/m^2] on the inner side, Chargeout - the surface charge σ+[C/m2]\sigma^+~[C/m^2] on the outer side, the DomainVoltage UΩ[V]U_{\Omega}~[V] and the magnitude of the ElectricField E[V/m]E~[V/m] at the evaluation points.
ColorMin
The color of the minimal result value.
ColorMax
The color of the maximal result value.
Autorange
Sets the range of the display automatically to the minimal and maximal value of the result field. If set to Off, the Min and Max values can be entered by the user.
Colorsteps
The number of colors for the result display

VEGAVisualizeEdgeConnectivity

Introduces labels in the Rhino model to inspect the connectivity data established between VEGA surfaces

This command fetches all surfaces assigned to VEGA groups and introduces a layer called VEGAEdgeConformance. On this layer, connectivity labels are introduced at the mid points of edge segments joined during setting up the VEGA groups and VEGAJoinGroups calls. Each connectivity label Si->Sj shows the parent surface Si, i.e., the surface the edge segment belongs to, and the child surface Sj, i.e., the surface adjacent to the edge segment. The label’s Properties page provides further details.

Technical Background

The Rhino plugin VEGA is a simulation tool for rapid virtual prototyping in electrostatics, focusing on electric field computation of CAD-based device designs. The figure shows an insulator and the corresponding solution of its interior electric field determined by the Finite Element Method (FEM).

Epoxy insulator geometry and the FEM solution for the electric field (GIPRO GmbH) Epoxy insulator geometry and the FEM solution for the electric field (GIPRO GmbH)

The main challenge before applying FEM is the conversion from CAD boundary representations (b-reps) to high quality volumetric meshes. Additionally, CAD b-reps often contain trimmed surfaces whose parametrization do not match the visualized geometry. These issues lead to geometric inconsistencies like small gaps, overlaps and trimming artifacts that make meshing time-consuming and error-prone.
Moreover, in conventional FEM analysis of electromagnetic fields, the surrounding air must be included in the model and its mesh is truncated at artificial boundaries, which introduces errors due to the infinite extent of the fields.

VEGA implements a CAD-integrated simulation approach for virtual prototyping in electrostatics that substantially reduces the meshing effort while maintaining numerical accuracy. The numerical simulation is based on a Boundary Element Method (BEM) formulation that requires only a surface discretization of the model. As a result, volume meshes and the artificial truncation of the infinite exterior domain are completely avoided.

A key feature is the application of a Discontinuous Galerkin BEM formulation that utilizes shape functions that permit non-conforming surface meshes, particularly at interfaces between trimmed NURBS surfaces. The geometric data along these interfaces is enriched by explicit mappings between the participating surfaces, enabling completely independent mesh generation on each surface. This approach significantly simplifies modeling and reduces the sensitivity to the aforementioned CAD inconsistencies.

The plugin is tailored to the design of electrical devices such as insulators, bushings and capacitors with linear dielectric behavior.

The electrostatic field equations follow from Maxwell’s equations by removing time derivatives:

∇×𝐄=0,∇⋅𝐃=ρ,∇×𝐇=0,∇⋅𝐁=0\nabla \times \mathbf{E} = 0, \quad \nabla \cdot \mathbf{D} = \rho, \quad \nabla \times \mathbf{H} = 0, \quad \nabla \cdot \mathbf{B} = 0

Thus, the electric field 𝐄\mathbf{E} and displacement 𝐃\mathbf{D} are decoupled from the magnetic field strength 𝐇\mathbf{H} and the magnetic flux density 𝐁\mathbf{B}. Using the scalar potential uu with

𝐄=−∇u,𝐃=ε𝐄=εrε0𝐄,\mathbf{E} = -\nabla u, \quad \mathbf{D} = \varepsilon \mathbf{E} = \varepsilon_r \varepsilon_0 \mathbf{E},

we obtain Poisson’s equation

$ -( u ) = $

where ε0\varepsilon_0 is the vacuum permittivity, ε\varepsilon the dielectric permittivity and εr=ε/ε0\varepsilon_r = \varepsilon / \varepsilon_0 the relative permittivity, respectively.

On the interface between two regions, the transmission conditions, tangential continuity of 𝐄\mathbf{E} and normal continuity of 𝐃\mathbf{D}, hold. That is, for the scalar potential uu

γD+u−γD−u=0\gamma_D^+ u - \gamma_D^- u = 0

εr+γN+u−εr−γN−u=0\varepsilon_r^+ \, \gamma_N^+ u - \varepsilon_r^- \, \gamma_N^- u = 0

where γD\gamma_D is the so-called Dirichlet trace and γN\gamma_N the Neumann trace limited from outside (++) and inside (−-) of the domain boundary Γ=∂Ω\Gamma = \partial \Omega.

VEGA considers charge-free volumes (ρ=0\rho = 0) and defines the surface charge density

σ=−εγNu\sigma = -\varepsilon \, \gamma_N u

On electrodes, a constant voltage u=Uu = U is applied. VEGA’s electrostatic BEM-solver INDES calculates the unknown surface charge density σ\sigma on electrodes and dielectric interfaces, as well as the unknown voltage on dielectric interfaces. On floating potentials (e.g. foils) the total charge QQ is known and the unknown but constant voltage is calculated.

For further details, please take a look at the references.

References

  1. Andjelic, Z., Wohlmuth, M., Krstajic, B., Steinbigler, H., Milojkovic, S., & Blaszczyk, A. (1992).
    Integral methods for the calculation of electric fields: for application in high voltage engineering. Forschungszentrum Jülich GmbH Zentralbibliothek, Verlag, Scientific series of the International Bureau 10, I, 79 S. (1992)
  2. Münger, C., Börm, S., & Ostrowski, J. (2021).
    Dielectric breakdown prediction with GPU-accelerated BEM. In Scientific Computing in Electrical Engineering: SCEE 2020, Eindhoven, The Netherlands, February 2020 (pp. 137-147). https://doi.org/10.1007/978-3-030-84238-3_14
  3. Marussig, B., Zechner, J., Rüberg, T., Kielhorn, L., & Fries, T. P. (2024).
    Reducing Meshing Requirements for Electrostatic Problems using a Galerkin Boundary Element Method.
    9th European Congress on Computational Methods in Applied Sciences and Engineering (ECCOMAS 2024).
    https://doi.org/10.23967/eccomas.2024.099
  4. Marussig, B., Zechner, J., Rüberg, T., Kielhorn, L., Bošnjak, D., & Fries, T. P. (2025).
    CAD-Integrated Electrostatic Boundary Element Simulations with Non-Conforming Higher-Order Meshes.
    arXiv preprint arXiv:2506.22676.
  5. Blaszczyk, A. (2010).
    Region-Oriented BEM Formulation for Numerical Computations of Electric Fields.
    In: Roos, J., Costa, L. (eds) Scientific Computing in Electrical Engineering SCEE 2008.
    Mathematics in Industry(), vol 14. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-12294-1_10