Create Analysis Group #
This section introduces how to create an analysis group.
Design Ideas of Analysis Group #

The following example elaborates on design idea of analysis group, which converts electric field vector in rectangular coordinate system into electric field vector in spherical coordinate system.
Theoretical Analysis #
Convert electric field vector in rectangular coordinate system from 2D monitor into that in spherical coordinate system. Conversion formula for electric field vector in rectangular coordinate system to that in the spherical coordinate system is known as:
Er=Exsinθcosϕ+Eysinθsinϕ+EzcosθEθ=Excosθcosϕ+Eycosθsinϕ−EzsinθEϕ=−Exsinϕ+Eycosϕ

Creating an Analysis Group #
1.Set coordinate origin of analysis group;

2.Add variables required to create a monitor (or source). Monitor records simulation data that can be input data for post-processing;

3.Create a script that can generate/create a monitor (or source), and edit and run script program;

4.Create names of parameter variables and result variables;

5.Edit corresponding scripts in Script window.

Testing Results #
Compare vector diagrams (a) about the electric field and decomposed vector diagrams (b) about the electric field:


