Volume of a set in phase space. How many dimensions? Suppose I have a $6N$ dimensional space with points looking like this: 
$$(r_x^{(1)},r_y^{(1)},r_z^{(1)}, p_x^{(1)}, p_y^{(1)}, p_z^{(1)},...,r_x^{(N)},r_y^{(N)},r_z^{(N)}, p_x^{(N)}, p_y^{(N)}, p_z^{(N)})$$
This is a phase space for a system of $N$ particles. In this space, I define a set by the following conditions:
$$\sum_{k=1}^{N} \left( \left[ p_{x}^{(k)} \right] ^2 +\left[ p_{y}^{(k)}  \right]^2 +\left[ p_{z}^{(k)} \right]^2 \right) =const>0 .$$
$$0\le r_{x}^{(k)} \le l ; \quad 0\le r_{y}^{(k)} \le l ; \quad 0\le r_{z}^{(k)} \le l ; \quad k=1,2,...,N; \quad l=const>0.$$
What is the dimension of this object? How to calculate its "volume"? I was thinking that the first equation specifies a sphere in $3N$ dimensions, which itself is a $3N-1$ dimensional object, but now I'm confused on how to treat the remaining conditions.
PS. Would it be helpful to first consider a similar problem, but with the first condition replaced by 
$$0<\sum_{k=1}^{N} \left( \left[ p_{x}^{(k)} \right] ^2 +\left[ p_{y}^{(k)}  \right]^2 +\left[ p_{z}^{(k)} \right]^2 \right) \le const?$$
I've seen such procedures done in some textbooks but I don't really understand why not work with the problem directly.
Update: What would be the units of this set be? I'm assuming the $r$'s have units of length and $p$'s of momentum.
 A: Anything specifying a range on a continuous parameter does not typically reduce the dimensionality of the system. If there exist points 'in the middle of' all the ranges, they are locally unaware of the boundary, and hence locally the dimensionality is unaffected.
You have exactly one proper constraint on the motion, which is the total energy condition $\sum \mathbf p^2=E^2=\text{const.}$ There are $6N$ degrees of freedom. Hence your system is $6N-1$ dimensional.
The phase space volume is currently infinite since $r_y,r_z$ can take arbitrarily negative values. If you bound them below by zero then you have a $3N-1$ dimensional sphere of radius $E$ mutiplied by a $3N$ dimensional cube of side length $l$. The total phase space volume is the product of the volumes of these two objects, since they are independent. Note that by the volume of the sphere I mean the surface area in $3N$ dimensions, the intrinsic volume of the sphere as a $3N-1$ ddimensional manifold.
The units of the volume are $(\text{momentum})^{3N-1} (\text{length})^{3N}$
A: I think it'll be helpful to first think of 1 dimensional physical space which for your case of $N$ non interacting particles is actually $2N$ dimensions (position and momentum). In this space, the conditions read:
$$p_i = c_i,\ r_i \in[0,l]$$
So the dimension of this space is simply $N$ (since $p$ is constant i.e. zero dimensional). Now let's move to $2D$ physical space ($4N$ phase space). This time we have:
$$p_{i1}^2 + p_{i2}^2 = c_i^2,\ r_i \in[0,l]$$
We only have on constraint, so this is a $4N-1$ dimensional space. What is this space? if we consider one particle and ignore one of the $r_i$'s, this is a hollow cylinder in $3D$ space, embedded in a $4D$ space. Now let's return to physical $3D$ space, It should be obvious that the dimension of the space is $6N-1$.
