To do this, you can use the "Free Variable Load" load type. It allows you to define a load that acts variably over the perimeter by specifying a rotation axis. Also, it is possible to separate the perimeter into several segments.
Furthermore, this load can be used to generate a load that is variable in height. In the model file provided, an example of a load with both variables is applied.