Hi people, when I thaught I had solved this, I realized I keep stuck in this. I have built a variable resistance resistor, combining a voltage-controlled voltage source (VCVS) with a voltage-controlled current source (VCCS).
The equation that leads the resistance value is:
R=(CVp/(CI2-2*CVp/(2*CR1+CR2*cos(CF1*pi*V(node 1,node 2)))))/K) , where CVp,CI2,CVp,CR1,CR2 and CF1 are constants.
So, the VCVS feeds the VCCS with the equation:
((CVp/(CI2-(2*CVp/(CR1+(CR2*COS(CF1*pi*V(G)))))))/K)
and the VCCS creates a current trough this operation:
V(G)/(V(EaG, GND)+1u) ,
where V(G) is the voltage that controls the resistor, EaG is the node that connects the VCVS with the VCCS. GND is the ground.
The input and output of this two-elements subcircuit connects this "variable resistor" with the rest of the circuit.
The problem is that the results I obtain from my circuit don´t match with the published results, from which I copied this design.
I strongly think the problem is due to this variable resistance. So, Does anyone see any mistake, or can suggest some improve?
Thanks all, have a nice day.