how to calculate the current in this circuit ( opamp)
In this circuit the op amp will drive its output up or down until the - input is at the same voltage as the + input (or until the output hits one of the supply rails). The + input is connected to ground, so the - input will become 0V and R will have 10V across it. 10V / 2k = 5mA.