def fixedValue(value, U2):
    """  Dirichlet boundary condition

    Assume that value of variable at boundary condition is fixed.
    Please see any numerical analysis text book for details.
    
    Return: float
    """
    
    Ug = 2 * value - U2 
    return Ug