tolly8210
Newbie level 4
- Joined
- Mar 22, 2013
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,360
This sort of thing is fairly easy with SIMETRIX SIMplis. That's the free SPICE simulation software I use.Any suggestion or implementation experience?
The schematic menu Place|Analog Behavioural|Non-linear Transfer Function brings up the following dialog
Specify the number of input voltages and currents you require. All voltage inputs are single-ended and all input currents are differential. In the expression box, you must specify an equation relating the output to the inputs.......
Probably/maybe. If you want to model: V=R1*I+R2*I^3, you would need to use an arbitrary source with one current input and one voltage output.Not sure whether the method you proposed can be capable of modeling this system.
Probably/maybe. If you want to model: V=R1*I+R2*I^3, you would need to use an arbitrary source with one current input and one voltage output.
Then for example, if R1 = -7ohms and R2 = 3 ohms, the expression you enter would be: -7*I(V1)+3*I(V1)^3
Experiment:
I assume you want to model it as a 2 terminal device with that equation giving the relationship between the current through it and the voltage across it, so I used a differential voltage output and connected to itself like this:
Driven with a 2 Amp rms sine wave source, the voltage across it looks like this:
Here's a graph of voltage vs current:
As you can see, the trouble with this example is that the same voltage can correspond to three different currents. So the calculations may not converge, depending what it's connected to and how it's driven.
BTW: you mentioned this is to model a mechanical system. Is it possible to have negative damping in a mechanical system? I know negative stiffness is fairly easy to implement, but I've never heard of negative damping.
- - - Updated - - -
Anyway, it seems to work for the kind of oscillator you mentioned.
(Yes, I'm bored and having fun with this. :grin
Yes, it's the "IC" component above "Vout". It indicates an initial condition of 0.1V at the top of the capacitor.BTW, you add some initial condition (equivalent to mechanical disturbance) for capacitor (or inductor), right? otherwise, the oscillation will not start.
Yes, it's the "IC" component above "Vout". It indicates an initial condition of 0.1V at the top of the capacitor.
Rather post it here so others can see it and comment too. I prefer not to give out my email address anyway.
The primary inductance is equivalent to an inductor connected across the primary winding of the transformer. Real transformers do have inductance so it's fair to include it in the "ideal transformer" model.
Anyway, I see there's also a "ideal DC transformer" without inductance. If you use that instead, it may solve the problem.
Sounds like an "artificial" problem. An ideal transformer has a parallel inductance in usual understanding. How is the transformer modelled in Matlab?
Yes, that was my assumption do. So where is the "transformer" in the differential equation?In matlab, just need to write the state space form of the differential equations of the system
Yes, but a transformer is a bidirectional device, it's not defined in the differential equation (no equation for currents).n*V,
n represents the transformer turn ratio
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?