Size of Mesh Vs. Accuracy
There is a trade-off among the size of the mesh, the desired level of accuracy, and the amount of available computing resources.
The accuracy of the solution depends on the size of each of the individual elements (tetrahedra). Generally speaking, solutions based on meshes using thousands of elements are more accurate than solutions based on coarse meshes using relatively few elements. To generate a precise description of a field quantity, each element must occupy a region that is small enough for the field to be adequately interpolated from the nodal values.
However, generating a field solution involves inverting a matrix with approximately as many elements as there are tetrahedra nodes. For meshes with a large number of elements, such an inversion requires a significant amount of computing power and memory. Therefore, it is desirable to use a mesh fine enough to obtain an accurate field solution but not so fine that it overwhelms the available computer memory and processing power.
To produce the optimal mesh, Maxwell uses an iterative process, called an adaptive analysis, in which the mesh is automatically refined in critical regions. First, it generates a solution based on a coarse initial mesh. Then, it refines the mesh in areas of high error density and generates a new solution. When selected parameters converge to within a desired limit, Maxwell breaks out of the loop.