13.4. Example Electrostatic Field Analyses (h-Method)

13.4.1. Example: h-Method Electrostatic Analysis

This section describes how to perform an electrostatic analysis of a shielded microstrip transmission line consisting of a substrate, microstrip, and a shield. The strip is at a potential V1, and the shield is at a potential V0. The object of the problem is to determine the capacitance of the transmission line.

13.4.1.1. Description

Material Properties
Air: εr = 1
Substrate: εr = 10
Geometric Properties
a = 10 cm
b = 1 cm
w = 1 cm
Loading
V1 = 10 V
V0 = 1 V

13.4.1.2. Assumptions and Modeling

You can calculate the capacitance of the device from electrostatic energy and the applied potential difference as We = 1/2 C (V1-Vo)2 where We is the electrostatic energy and C is the capacitance. To obtain the electrostatic energy, you sum the energies for all the elements in the model in POST1.

Additional postprocessing includes displaying equipotential lines and the electric field as vectors.

13.4.1.3. Expected Results

The target results from this example analysis are capacitance 178.1 pF/m

Step 1: Begin the Analysis

  1. Start Mechanical APDL. To do so, use the procedures described in the Operations Guide.

  2. Choose menu path Utility Menu> File> Change Title. The Change Title dialog box appears.

  3. Enter the title "Microstrip transmission line analysis."

  4. Click OK.

  5. Choose Main Menu> Preferences. The Preferences for GUI Filtering dialog box appears.

  6. Click Magnetic-Nodal and Electric on.

  7. Click OK.

Step 2: Define Parameters

  1. Choose Utility Menu> Parameters> Scalar Parameters. A dialog box appears.

  2. Type in the parameter values shown below, following each entry by pressing ENTER. If you make a mistake, just retype the parameter definition.

    V1 = 1.5
    V0 = 0.5
  3. Click Close to close the dialog box.

Step 3: Define the Element Type

  1. Choose Main Menu> Preprocessor> Element Type> Add/Edit/Delete. The Element Types dialog box appears.

  2. Click Add. The Library of Element Types dialog box appears.

  3. Highlight (click on) "Electrostatic" and "2D Quad 121."

  4. Click OK. The Element Types dialog box shows element type 1 (PLANE121) selected.

  5. Click Close.

Step 4: Define Material Properties

  1. Choose Main Menu> Preprocessor> Material Props> Material Models. The Define Material Model Behavior dialog box appears.

  2. In the Material Models Available window, double-click on the following options: Electromagnetics, Relative Permittivity, Constant. A dialog box appears.

  3. Enter 1 for PERX (Relative permittivity), and click on OK. Material Model Number 1 appears in the Material Models Defined window on the left.

  4. Choose menu path Edit>Copy. Click on OK to copy Material number 1 to Material number 2. Material Model Number 2 appears in the Material Models Defined window on the left.

  5. In the Material Models Defined window, double-click on Material Model Number 2, and Permittivity (constant). A completed dialog box appears.

  6. Replace the value in the PERX field with 10, and click on OK.

  7. Choose menu path Material>Exit to remove the Define Material Model Behavior dialog box.

  8. Click SAVE_DB on the Toolbar.

Step 5: Create Model Geometry and Compress Numbers

  1. Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The Create Rectangle by Dimensions dialog box appears.

  2. Enter the values shown below. (Use the TAB key to move between fields.)

    X1 field: 0Y1 field: 0
    X2 field: .5Y2 field: 0
  3. Click Apply. The Graphics Window displays the first rectangle.

  4. To create a second rectangle, enter the following values:

    X1 field: .5Y1 field: 0
    X2 field: 5Y2 field: 1
  5. Click Apply. The Graphics Window displays the second rectangle.

  6. To create a third rectangle, enter the following values:

    X1 field: 0Y1 field: 1
    X2 field: .5Y2 field: 10
  7. Click Apply. The Graphics Window displays the third rectangle.

  8. To create a fourth rectangle, enter the following values:

    X1 field: .5Y1 field: 1
    X2 field: 5Y2 field: 10
  9. Click OK. The Graphics Window displays all four rectangles.

  10. To glue all areas together, choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Glue> Areas. A picking menu appears.

  11. Click Pick All.

  12. Choose Main Menu> Preprocessor> Numbering Ctrls> Compress Numbers. A dialog box appears.

  13. Set the "Item to be compressed" field to "Areas."

  14. Click OK.

Step 6: Apply Attributes to Model Regions and Prepare for Meshing

  1. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  2. Change the top button from "Nodes" to "Areas."

  3. Change the button just below it to "By Num/Pick."

  4. Click OK. A picking menu appears.

  5. Pick areas 1 and 2 by clicking on them. (Areas 1 and 2 are the two areas at the bottom of the Graphics Window.) The picked areas should change color.

  6. Click OK.

  7. Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. Click Pick All. The Area Attributes dialog box appears.

  8. Set the "Material number" field to 2.

  9. Click OK.

  10. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  11. Check that the top two buttons are set to "Areas" and "By Num/Pick."

  12. Click Sele All, then click OK. A picking menu appears.

  13. Click Pick All.

  14. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  15. Change the top button from "Areas" to "Lines."

  16. Change the button below it to "By Location."

  17. Click the Y Coordinates button on.

  18. In the "Min, Max" field, enter 1.

  19. Click Apply. The program should respond by displaying a message about "2 lines" in the output window.

  20. Click the Reselect and X Coordinates buttons on.

  21. In the "Min, Max" field, enter .25.

  22. Click OK. The program should respond by displaying a message about "1 line" in the output window.

Step 7: Mesh the Model

  1. Choose Main Menu> Preprocessor> Meshing> Size Cntrls> Lines> All Lines. The Element Sizes on All Selected Lines dialog box appears.

  2. In the "No. of element divisions" field, enter 8.

  3. Click OK.

  4. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  5. Check that the top button is set to "Lines."

  6. Change the second button to "By Num/Pick."

  7. Click the From Full button on.

  8. Click Sele All, then click OK. A picking menu appears.

  9. Click Pick All.

  10. Choose Main Menu> Preprocessor> Meshing> MeshTool. The MeshTool appears.

  11. Click the Smart Size button on.

  12. Set the SmartSizing slider to 3.

  13. Click the Tri shape button on.

  14. Check that the Mesh button is set to "Areas."

  15. Click the MESH button. A picking menu appears.

  16. Click Pick All. The Graphics Window shows you the meshed model.

  17. Click Close to close the MeshTool.

Step 8: Apply Boundary Conditions and Loads

  1. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  2. Change the top button to "Nodes."

  3. Set the button just below it to "By Location."

  4. Click the Y Coordinates and From Full buttons on.

  5. In the "Min, Max" field, enter 1.

  6. Click Apply.

  7. Click the X Coordinates and Reselect buttons on.

  8. In the "Min, Max" field, enter 0,.5.

  9. Click OK.

  10. Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Electric> Boundary> Voltage> On Nodes. A picking menu appears.

  11. Click Pick All. The Apply VOLT on Nodes dialog box appears.

  12. In the "Value of voltage (VOLT)" field, enter V1.

  13. Click OK.

  14. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  15. Check that the two top buttons are set to "Nodes" and "By Location."

  16. Click the Y Coordinates and From Full buttons on.

  17. In the "Min, Max" field, enter 0.

  18. Click Apply.

  19. Click the Also Sele button on.

  20. In the "Min, Max" field, enter 10.

  21. Click Apply.

  22. Click the X Coordinates button on.

  23. In the "Min, Max" field, enter 5.

  24. Click OK.

  25. Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Electric> Boundary> Voltage> On Nodes. A picking menu appears.

  26. Click Pick All. The Apply VOLT on Nodes dialog box appears.

  27. In the "Value of voltage (VOLT)" field, enter V0.

  28. Click OK.

Step 9: Scale the Areas

  1. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  2. Check that the top button is set to "Nodes," the next button is set to "By Num/Pick," and the "From Full" button is set on.

  3. Click the Sele All button, then click OK. A picking menu appears. Click Pick All.

  4. Choose Main Menu> Preprocessor> Modeling> Operate> Scale> Areas. A picking menu appears.

  5. Click Pick All. The Scale Areas dialog box appears.

  6. In the "RX, RY, RZ Scale Factors" fields, enter the following values:

    RX field: .01
    RY field: .01
    RZ field: 0
  7. In the "Items to be scaled" field, set the button to "Areas and mesh."

  8. In the "Existing areas will be" field, set the button to "Moved."

  9. Click OK.

  10. Choose Main Menu> Finish.

Step 10: Solve the Analysis

  1. Choose Main Menu> Solution> Solve> Current LS. The Solve Current Load Step dialog box appears, along with a pop-up window listing the load step options.

  2. Review the pop-up window contents, then click Close.

  3. Click OK on the dialog box to start the solution. A pop-up message notifies you when solution is complete. Click Close.

  4. Choose Main Menu> Finish.

Step 11: Store Analysis Results

  1. Choose Main Menu> General Postproc> Element Table> Define Table. The Element Table Data dialog box appears.

  2. Click Add. The Define Additional Element Table Items dialog box appears.

  3. In the "User label for item" field, enter SENE

  4. In the scrollable lists in the "Results data item" field, highlight "Energy." (When you highlight "Energy" in the list on the left, "Elec energy SENE" will be highlighted in the list on the right automatically.)

  5. Click OK.

  6. Click Add.

  7. In the "User label for item" field, enter EFX.

  8. In the "Results data item" field, highlight "Flux & gradient" and "Elec field EFX." (You may have to scroll up to find the correct selections.)

  9. Click OK.

  10. Click Add.

  11. In the "User label for item" field, enter EFY.

  12. In the "Results data item" field, highlight "Flux & gradient" and "Elec field EFY."

  13. Click OK. The Element Table Data dialog box now shows the SENE, EFX, and EFY items defined.

  14. Click Close to close the dialog box.

  15. Click SAVE_DB on the Toolbar.

Step 12: Plot Analysis Results

  1. Choose Utility Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.

  2. Set the "Numbering shown with" field to "Colors only."

  3. Click OK.

  4. Choose Main Menu> General Postproc> Plot Results> Contour Plot> Nodal Solu. The Contour Nodal Solution Data dialog box appears.

  5. In the "Item to be contoured" field, highlight "DOF solution" and "Elec poten VOLT."

  6. Click OK. The Graphics Window displays a contour plot of equipotential lines.

  7. Choose Main Menu> General Postproc> Plot Results> Vector Plot> User-defined. The Vector Plot of User-defined Vectors dialog box appears.

  8. In the "Item" field, enter EFX.

  9. In the "Lab2" field, enter EFY

  10. Click OK. The Graphics Window displays a vector plot of the electric field.

Step 13: Perform Capacitance Calculations

  1. Choose Main Menu> General Postproc> Element Table> Sum of Each Item. An informational dialog box appears.

  2. Click OK. A pop-up window shows you all element table entries and their values.

  3. Click Close to close the pop-up window.

  4. Choose Utility Menu> Parameters> Get Scalar Data. The Get Scalar Data dialog box appears.

  5. In the "Type of data to be retrieved" field, highlight "Results data" and "Elem table sums."

  6. Click OK. The Get Element Table Sum Results dialog box appears.

  7. In the "Name of parameter to be defined," field, enter W.

  8. Set the "Element table item" field to "SENE."

  9. Click OK.

  10. Choose Utility Menu> Parameters> Scalar Parameters. The Scalar Parameters dialog box appears.

  11. Type in the following values, pressing ENTER after typing each value:

    C = (w*2)/((V1-V0)**2)
    C = ((C*2)*1e12)
  12. Click Close.

  13. Choose Utility Menu> List> Status> Parameters> Named Parameter. The Named Parameter Status dialog box appears.

  14. In the "Name of parameter" field, highlight C.

  15. Click OK. A pop-up window displays the value of the C parameter (capacitance).

  16. Click Close to close the pop-up window.

Step 14: Finish the Analysis

  1. To finish the analysis, choose Main Menu> Finish.

  2. Click QUIT on the Toolbar.

  3. Choose an exit option and click OK.

13.4.1.4. Command Method

You can perform the example analysis of the microstrip transmission line using the APDL commands shown below instead of GUI menu choices. All text prefaced by an exclamation point (!) is a comment.

/BATCH,LIST
/PREP7
/TITLE, MICROSTRIP TRANSMISSION LINE ANALYSIS
ET,1,PLANE121                       ! USE 2D 8-NODE ELECTROSTATIC ELEMENT
V1=1.5                              ! DEFINE STRIP POTENTIAL
V0=0.5                              ! DEFINE GROUND POTENTIAL
MP,PERX,1,1                         ! FREE SPACE RELATIVE PERMITTIVITY
MP,PERX,2,10                        ! SUBSTRATE RELATIVE PERMITTIVITY
RECTNG,0,.5,0,1
RECTNG,.5,5,0,1
RECTNG,0,.5,1,10
RECTNG,.5,5,1,10
AGLUE,ALL
NUMCMP,AREA
ASEL,S,AREA,,1,2  

AATT,2            
ASEL,ALL                           ! SET AREA ATTRIBUTES FOR AIR
LSEL,S,LOC,Y,1
LSEL,R,LOC,X,.25
LESIZE,ALL,,,8
LSEL,ALL
SMRTSIZE,3
MSHAPE,1                           ! Triangle mesh              
AMESH,ALL
NSEL,S,LOC,Y,1                     ! SELECT NODES ON MICROSTRIP
NSEL,R,LOC,X,0,.5 
D,ALL,VOLT,V1                      ! APPLY STRIP POTENTIAL
NSEL,S,LOC,Y,0 
NSEL,A,LOC,Y,10 
NSEL,A,LOC,X,5                     ! SELECT EXTERIOR NODES
D,ALL,VOLT,V0                      ! APPLY GROUND POTENTIAL
NSEL,ALL
ARSCALE,ALL,,,.01,.01,0,,0,1       ! SCALE MODEL TO METERS
FINISH
/SOLUTION    
SOLVE
FINISH
/POST1
ETABLE,SENE,SENE                   ! STORE ELECTROSTATIC ENERGY
ETABLE,EFX,EF,X                    ! STORE POTENTIAL FIELD GRADIENTS
ETABLE,EFY,EF,Y
/NUMBER,1
PLNSOL,VOLT                        ! DISPLAY EQUIPOTENTIAL LINES
PLVECT,EFX,EFY                     ! DISPLAY VECTOR ELECTRIC FIELD (VECTOR)
SSUM                               ! SUM ENERGY
*GET,W,SSUM,,ITEM,SENE             ! GET ENERGY AS W
C=(W*2)/((V1-V0)**2)               ! CALCULATE CAPACITANCE (F/M)

C=((C*2)*1E12)                     ! FULL GEOMETRY CAPACITANCE (PF/M)
*STATUS,C                          ! DISPLAY CAPACITANCE
FINISH  

13.4.2. Example: Capacitance Calculation

The following is an example of how to perform a capacitance matrix calculation by issuing APDL commands. You can also perform the analysis through the GUI menus.

For details on extracting capacitance from multi-conductor systems, see Extracting Capacitance from Multi-conductor Systems in this manual.

13.4.2.1. Description

Two long cylinders sit above an infinite ground plane. The objective is to compute the self and mutual capacitance coefficients between the conductors and ground.

13.4.2.2. Modeling

The ground plane and the Infinite elements share a common boundary at the outer radius of the model. The Infinite elements by nature can only represent a zero potential at the infinite location. Since the ground plane shares a common boundary with the infinite elements, they together represent the ground conductor. The nodes of the ground plane are sufficient to represent the ground conductor since the infinite element nodes are internally grounded by the program. By grouping the other two cylindrical conductor node sets into node components as well, you arrive at a 3-conductor system.

Figure 13.5: Model Areas of Capacitance Example Problem displays the model areas and Figure 13.6: Elements of Capacitance Example Problem displays the finite elements.

Figure 13.5: Model Areas of Capacitance Example Problem

Model Areas of Capacitance Example Problem

Figure 13.6: Elements of Capacitance Example Problem

Elements of Capacitance Example Problem

13.4.2.3. Results

The computed ground and lumped capacitance results for this example problem are as follows:

(Cg)11 = 0.454E-4 pF(Cl)11 = 0.354E-4 pF
(Cg)12 = -0.998E-5 pF(Cl)12 = 0.998E-5 pF
(Cg)22 = 0.454E-4 pF(Cl)22 = 0.354E-4 pF

13.4.2.4. Command Listing

You can perform this example capacitance matrix calculation using the Mechanical APDL commands shown below. Text prefaced by an exclamation point (!) is a comment.

/batch,list
/prep7
/title, Capacitance of two long cylinders above a ground plane

a=100                    ! Cylinder inside radius (μm)
d=400                    ! Outer radius of air region
ro=800                   ! Outer radius of infinite elements


et,1,121                 ! 8-node 2D electrostatic element
et,2,110,1,1             ! 8-node 2D Infinite element
emunit,epzro,8.854e-6    ! Set free-space permittivity for μMKSV units
mp,perx,1,1


cyl4,d/2,d/2,a,0         ! Create mode in first quadrant
cyl4,0,0,ro,0,,90
cyl4,0,0,2*ro,0,,90

aovlap,all
numcmp,area
smrtsiz,4
mshape,1                 ! Mesh air region
amesh,3

lsel,s,loc,x,1.5*ro
lsel,a,loc,y,1.5*ro
lesize,all,,,1
type,2
mshape,0
mshkey,1
amesh,2                  ! Mesh infinite region
arsymm,x,all             ! Reflect model about y axis
nummrg,node
nummrg,kpoi

csys,1

nsel,s,loc,x,2*ro
sf,all,inf               ! Set infinite flag in Infinite elements

local,11,1,d/2,d/2
nsel,s,loc,x,a
cm,cond1,node            ! Assign node component to 1st conductor
local,12,1,-d/2,d/2
nsel,s,loc,x,a
cm,cond2,node            ! Assign node component to 2nd conductor					
csys,0
nsel,s,loc,y,0
cm,cond3,node            ! Assign node component to ground conductor
allsel,all
finish
/solu
cmatrix,1,'cond',3,0     ! Compute capacitance matrix coefficients	
finish