If I fill a plastic ziploc-shaped bag with water, the cross section profile should be sort of teardrop shaped (assuming we ignore the edge effects of the bag being sealed on the sides as well as the top and bottom). The bag should "sag"/get wider until to get the center of gravity as low as possible. Initially, getting wider will let more water towards the bottom but eventually this is offset by the bottom of the bag moving up (because the sides are fixed length).
Is there a common function that describes the shape the cross-section of the bag makes?
I would guess the bottom is a parabola, since gravity likes to make parabolas. Then I would guess the top is linear because its under tension. But I have no idea what the transition region might look like and whether you could put those two together into a nice function.


I did not know the elastica differential equation of the teardrop shape before Narasimham's answer. The equation is applicable if the bag is not as tall and with little enough water that the top will actually have partial vacuum (think Superman sucking on a a straw) and will be pushed flat by the atmosphere. At the other extreme, if you add as much water in the inside as you can fit, then pressure overcomes gravity and the shape becomes a circle, which is a solution of the elastica equation. For a nice read on elastica: Raphael Linus Levien's PhD thesis From Spiral to Spline: Optimal Techniques in Interactive Curve Design.
There is a closed-form solution to the elastica equation, the syntractrix of Poleni:
$$y = \sqrt{4 - x^2} - \log\left(\frac{\sqrt{4 - x^2} + 2}{x}\right)$$
Or as a parametric curve with unit velocity $\left(\frac{dx}{ds}\right)^2+\left(\frac{dy}{ds}\right)^2=1$:
$$\begin{gather}x = \frac{2}{\cosh(s)}\\y = s - 2\tanh(s)\end{gather}$$
Figure 1. Syntractrix of Poleni.
$y = 0$ at the tip of the tail at $x = 0.57683981788998291629$ (solved numerically) and at the round end at $x = 2$. In terms of $s$ these points are at $s = \pm1.9150080481545374814$ and $s = 0$. The arc length of the teardrop part (both sides) is $2\times1.9150080481545374814$. The tip of the tail is duller than 90°: approximately 112.95°.
The teardrop can be simulated with a 2-d physics engine such as matter.js. With the right filling particle count, the droplet follows the shape of the syntractrix (Fig. 1) quite closely (Fig. 2).
Figure 2. Simulation of a particle system: start (top) and after running for some time (bottom). The simulation was started with a compressed cloud of circle particles of random sizes surrounded by a circular pearl necklace (turquoise) with the centers of successive pearls (circles) constrained to a certain distance. The top pearl was fixed in place and the system was allowed to settle with gravity. For comparison, the syntractrix of Poleni (red) is shown.
You can run the simulation by obtaining matter.min.js and by putting this source code into the body of an HTML file:
I actually have difficulties getting a more droopy teardrop from the simulation as a void begins to form on top of the particles (Fig. 3). However I don't think Poleni's syntractrix is the right shape for the droplet filled so that there is no pressure at the tip of the tail, because the sign of the curvature of Poleni's syntractrix is the same everywhere on it and doesn't go to zero at the tip of the tail.
Figure 3. Reducing the number of filling particles (
M) from 730 to 700 (left, also you can view the simulation here) and 670 (right) forms a progressively larger void at the tip. The simulation was run for several hours of real world time.Logs surrounded by a long log boom pulled by a tug boat also organize similarly, for example: http://www.histoireforestiereoutaouais.ca/en/wp-content/uploads/2013/08/c15-11.jpg.