accelerating: inlet height = 0.2m, outlet height = 0.1m

decelerating: inlet height = 0.1m, outlet height = 0.2m

How would I go about setting up the accelerating and decelerating heights?

accelerating: inlet height = 0.2m, outlet height = 0.1m

decelerating: inlet height = 0.1m, outlet height = 0.2m

How would I go about setting up the accelerating and decelerating heights?

can you provide some more background on whether this is something your'e supposed to do with cfd or something that you need to calculate manually?

is the flow moving from left to right in the picture? like amit says, it seems like all you need to do is model a 2d model with solidworks dimensions, set a flow rate at one end and a pressure opening on the other

It seems to me that the problem isn't a difference of heights, but rather a dynamic cross-section in the direction of flow. Why not simply model it as given and set up a 2D flow? You can align the bottom wall with one of your primary axes and set gravity in that direction if you want to take height into account as well, but given that flow rate I'm guessing it's going to be negligible compared to the dynamic pressure.