I'm trying to use variables with names as D(0,0,0), D(1,1/2,+1/2,), etc. But I don't know how to do it.
Such constructions would make things very awkward for me but you must have some special purpose in mind for doing so. If you would mention something about the "why", your chances of getting the exact help you need would be greatly increased.