[Click for the bga-31.fe datafile in a second window.]
This datafile illustrates doing a contact angle with the string model.
Notable features:
A parameter "angle" is used to specify the contact angle, in degrees.
It is initially set to 160 (enough to show an effect here).
The contact angle is implemented by defining an energy quantity
"contact_energy" which accounts for the contact energy between the
solder and the pads. Rather than integrating over the top and bottom
edges, it is set up to give the energy as a function of the vertex
coordinates of the two vertices where the free surface meets the pads.
The angle of the free surface edges at the pads are not 160 degrees,
since the edges represent average surface position over some extent.
However, as refinement increases the angle does approach 160, although
the convergence is only linear.