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.
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}$