If you take a look at fluid dynamics, you might start with a number rho that describes the density of the fluid, a simple scalar function of position. This appears to be where you are trying to start from.
But a simple description of density vs position is not enough to describe the general state of a fluid. One must add in the fact that the fluid elements can be moving in any given direction - this is often done via the concept of streamlines.
So now one has a number rho at any point, and three numbers to describe the streamline at that point (the velocity components of the streamline in the x,y, and z directions will do).
One quickly find that even this is not a sufficient number of properties to classify the state of a fluid, for a fluid also exerts pressure, and this is yet another variable besides density and velocity. Pressure can exist in both moving and non-moving fluids.
When one wrap all of these effects up into one big convenient package, one comes up with the description of a fluid by a stress-energy tensor. The classical stress-energy tensor is a 3x3 matrix.
GR simply builds on these classical foundations, and describes the density and motion of matter via a stress-energy tensor. The stress-energy tensor is generalized from three dimensions to four, as GR is a theory of space-time, not just a theory of space. This extension is really fairly trivial, though.
The net result is a tensor which involves ten quantites that are defined at any point. The density of the fluid is one, the density multipled by the streamline velocity give three more (this is just the average momentum of the fluid at that point in space-time), and the pressures in the x,y, and z directions give three more. This is a somewhat simplified description of 7 out of the 10 quantities that exist at every point in space-time which are included in the stress-energy tensor. I'm not sure how to simply describe the other three at this point.
GR relates the stress-energy tensor to the curvature of space-time at that point, via the simple formula
G_uv = 8 Pi T_uv
The quantity on the left is the Einstein curvature tensor, 8 Pi is a constant, and T_uv is the stress-energy tensor of the matter / energy distribution.
It is unlikely that your formula will be the same as GR if you cannot show that it can be written in equivalent tensor notation. Probably you have not given much thought to how your solution transforms under a change of coordinate, for instance.
.