linear contact between two nodes can be defined using cgap elements. Then you can set in properties under compression high stiffness and in tension no stiffness. If you use then sol101 you must specified cgap as contact.
Also you can explore options with cbush elements
I hope this is what you were looking for your problem