This example demonstrates the basics of working with Agros2D. The resulting model can be found /data/electrostatic_planar_capacitor.a2d.
Capacitor is a passive electrical component, which consists of electrodes that are separated by a dielectric and have different electrical potential. It is used to store electric charge. The basic type of the capacitor is a plate capacitor.
For more information visit http://en.wikipedia.org/wiki/Capacitor.
Select “New” in the menu “File” and enter problem properties.
Fig. 1.: Editing of a problem
Nodes
Select “Operate on nodes” in the menu “Problem” and place 6 points with coordinates [0.1, 0.0], [0.2, 0.0], [0.0, 0.2], [0.0, 0.3], [0.1, 0.2] and [0.2, 0.3]. You can move mouse to requested place and press left button together with Ctrl key, or by pressing Alt+N and entering the node coordinates.
Edges
Select “Operate on edges” in the menu “Problem” and draw 6 edges according to the definition area. Press Ctrl key and select start and end node of the line, or press Alt+E and select these points from a list.
Labels
Select “Operate on labels” in menu “Problem” and place block label into an inner area. To place label you can use left mouse button together with Ctrl key or pressing Alt+L and entering the label point coordinates.
Fig. 2.: Editing of a geometry
Select “New boundary condition” from the menu “Problem”, or press Alt+B and gradually define three boundary conditions.
Select “New material” from the menu “Problem”, or press Alt+M and define dielectric material embedded between the electrodes.
Select “Mesh area” from the menu “Problem”.
Select “Solve problem” from the menu “Problem”, or press Alt+S.
Select “Volume integrals” in menu “File” and mark area “Dielectric”. In panel “Volume integral” find value of “Energy” in group “Electrostatic field”.
Fig. 3.: Calculation of energy
Capacity of the capacitor can be calculated according to formula

which can be adjusted to

Select “Chart” in menu “Tools”. This opens a window for plotting charts. As a starting coordinates enter point [0.1, 0.2] and as ending coordinates point [0.2, 0.3]. Select “X” in “Horizontal axis” and select “Plot”.
Fig. 4.: Chart plotting