Application of a variational technique to wedge flow with variable properties.