def write_bc(bcdict, bc="bc.dyn"):
    """write node BCs

    Args:
        bcdict: dict of node BCs, with DOF values
        bc:  (Default value = "bc.dyn")

    Returns:
        0
    """

    with open(bc, 'w') as bcf:
        bcf.write("$ Generated using bc.py\n")
        bcf.write('*BOUNDARY_SPC_NODE\n')
        for i in bcdict:
            bcf.write(f'{i},0,')
            bcf.write(f'{bcdict[i]}\n')
        bcf.write('*END\n')

    return 0