def add_harmonic_contribution(input_dict, E_sampling, Cv_sampling):
    """ adds the constant harmonic contribution to the energy and the heat capacity """
    input_dict['E'] += E_sampling
    input_dict['Cv'] += Cv_sampling
    return
