Output in Matlab analysis tool is inverted

hello
I am trying to linearize part of my invert model then replace the nonlinear model with linear one to check accuracy of linearization at operating point. The input to linear part is voltage and outputs are angle and currents. Both currents and voltages are in dq0 reference frame. In output of linear model the currents are inverted but angle is the same. I have attached the output of both linear and non-linear model. Kindly if someone tell me what is happening?

5 Comments

Can you share your model and the key steps to create the analysis?
imran
imran on 15 Jan 2016
Edited: imran on 15 Jan 2016
Yeah sure here is the model. what i want to do is linearize subsystem inv_dq and i am using linear analysis tool to do it by first finding the trim point and then linearizing around it. then use that linearize model instead on inv_dq as shown in file 'test_linear' and trying to achieve the same steady point results. To run the model you have to first execute the m file parameters.To run teh linear model you have to first copy the linearize model to matlab workspace and the change the lienar system to ssdata. Thanks for your help
Can you add more info on how you trim the model - what operating point you use to linearize around?
imran
imran on 18 Jan 2016
Edited: imran on 18 Jan 2016
1.I obtain the trim point for which all states are in steady state as explained in this documentation here. With unknown values and no output and input values for trim point specifications.
2. After i get the trim point I used this method to linearize the block ' inv_dq' in the file 'test.mdl'
3. After getting teh lineariz model i replaced it with a state space model in 'linear_model.mdl'.and then compare the both results.

Sign in to comment.

Answers (0)

Categories

Asked:

on 6 Jan 2016

Commented:

on 22 Jan 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!