Magnetopause

Shape: A paraboloid (a rotated parabola about the x-axis),
Functional form: The bow shock is formed at the points ( x mp , ρ mp ) where
x mp = x o + λ o 2 - μ 2 2
y mp = λ o . μ . cos(φ)
z mp = λ o . μ . sin(φ)
ρ mp = y mp 2 + z mp 2
Here λ, μ and φ are parabolic coordinates and xo is the focus. The surface of the magnetopause is on the λ = λo = constant value. The object is at (x,y,z) = (0,0,0) and the x-axis points from the center of the object toward the Sun.
Derivation of the free parameters: The subsolar point of the magnetopause, i.e. the value of x at the point where the magnetopause crosses the x-axis is derived from the pressure balance equation by assuming that the dynamic pressure, Pdyn,
P dyn = κ . m p . U sw 2 . n sw , is balance by the magnetic pressure in the magnetosphere, p B = B 2 2. μ that is,
P dyn = p B
Here kappa, κ , is a given dimensionless parameter which its value is close to one, mp is the mass of a proton, USW is the speed of the solar wind, and nSW is the density of the solar wind.
MORE TEXT HERE

Bowshock

Shape: A cone,
Functional form: The bow shock is formed at the points ( x BS , ρ BS ) where
r BS = L BS 1 + ecc BS . cos(θ)
x BS = r BS . cos(θ) + x o BS
y BS = r BS . sin(θ)
ρ BS = y BS 2 + z BS 2
Here rB is the distance from the focus at x = xo on the x-axis which points from the center of the object toward the Sun. θ is the angle between the x-axis and the direction of the point on the bow shock. The eccBS is the eccentricity and and LBS is the semi-latus rectum.
Derivation of the free parameters:
MORE TEXT HERE

Reference: Kallio, E., and H. Koskinen, A semiempirical magnetosheath model to analyze the solar wind-magnetosphere interaction, J. Geophys. Res, 105, 27,469-27,479 , 2000