Can we change op amp of a circuit and still work?
I am testing AD822 op amp with a simple inverting

![op amp](https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Op-Amp_Inverting_Amplifier.svg/300px-Op-Amp_Inverting_Amplifier.svg.png)

Rin I use 10K Rf I use 20K, Vin is square wave of 5v, Vout I am getting a flat signal.

Is correct Vout should be a square wave of 10v if my V+ is more than 10v from a power supply?

My Vin signal 0v is connected to power supply v--, which is also connected to v-- pin of op amp.

My +pin of op amp is connected to ground terminal of power supply