Resistively and capacitively shunted Josephson junctions model for unconventional superconductors