In this configuration the OpAmp works as a Non-inverting amplifier.
The gain:
G = (1+Rf/Rg) or
G = (Rf+Rg)/Rg
Output:
Vout = Vin*(1+Rf/Rg)
Ps.: Rf is the resistor in the feedback loop.
Ps2 .: This simulation use DC signals because it's easier to see the numerical results and check with the formula. You can change to sine or square wave if prefer.