Create Analysis Group

Create Analysis Group

This section introduces how to create an analysis group.

Design Ideas of Analysis Group

adv_flow1

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ϕ\begin{aligned} \\ &E_r = E_x sin\theta cos\phi+ E_y sin\theta sin\phi + E_z cos\theta\\ &E_\theta = E_x cos\theta cos\phi+ E_y cos\theta sin\phi - E_z sin\theta\\ &E_\phi = - E_x sin\phi + E_y cos\phi \end{aligned}

adv_coordinate_transform.png

Creating an Analysis Group

1.Set coordinate origin of analysis group;

adv_analysis_group1.png

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

adv_analysis_group2.png

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

adv_analysis_group3.png

4.Create names of parameter variables and result variables;

adv_analysis_group4.png

5.Edit corresponding scripts in Script window.

adv_analysis_group5.png

Testing Results

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

adv_analysis_group_result.png