Hello,
I want to set the current source I1 as a function of node "VO", how can I do as a parameter? such that I1=60/(Vo+1)? View attachment SCHEMATIC1 _ PAGE1.pdf
**** INCLUDING SCHEMATIC1.net ****
* source BASSOSIMS
C_C1 N14434 VO 1u TC=0,0
R_R1 0 N14434 .5 TC=0,0
R_R2 N14403 N14423 .1 TC=0,0
L_L1 N14423 VO 100u IC=0
I_I1 VO 0 DC {60/(V(VO)+1)}
---------------------$
ERROR(ORPSIM-16318): Missing or invalid expression
V_V2 N14403 0
+PULSE 150 130 0 10n 10n 10m
You should use Voltage Controlled Current Source ( VCCS )
Syntax :
Linear Voltage-Controlled Current Sources
General form:
GXXXXXXX N+ N- NC+ NC- VALUE
Examples:
G1 2 0 5 0 0.1MMHO
N+ and N- are the positive and negative nodes, respectively. Current flow is from the positive node, through the source, to the negative node. NC+ and NC- are the positive and negative controlling nodes, respectively. VALUE is the transconductance (in mhos)
If you prefer schematic entry, you can use GVALUE with a respective behavioral expression. Or more generally an ABM block (e.g. ABM1) in combination with a voltage controlled current source G.
- - - Updated - - -
Convergence issues are just expectable with a division operation. Need to add value constraints or modify the behavioral expression.