Multiplier Current Output

Hi,

I’m trying to simulate Average current mode Mode Boost PFC, In this circuit is a multiplier and divider

out = A*B/C (A,B,C are voltages , Out is a current)

2 Questions:
How would you model this ?
Can your write a C function with current output ?

You can use a C block to perform the math. If you require a current output, you can use a B-source to convert the output voltage from the C block into a current. The C block output is voltage with ROUT=1000 (can be changed).

However, your equation can be simply implemented with a B-source alone. To read a current, you can use a 0V voltage source approach. For B current source, press “B” two times for that.

1 Like