INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Simulink: How to optimise simulation model for annual simulation?

Simulink: How to optimise simulation model for annual simulation?

(OP)
Hi,

I am working with simple energy model composed of a PV, loads and battery.
The model is fed by measured data (sample rate one minute).
The battery model (input AC power set-point, output AC power) was tested separately and it includes a power control algorithm (PI) and max. voltage control. The test of this sub-model was done with a sample rate of one second and it looks OK.
The complete model (all three models) is working fine if the simulation time is not long. If I carry out a annual simulation it took hours.
I have to mention that I have used a discrete solver, with variable steps size.
If I fix the sample time to one minute, and also adjust the sample rate of the two PI controller, the controllers go mad.

Can somebody give some advise?

Cheers,

RS

RE: Simulink: How to optimise simulation model for annual simulation?

Here's one simple approach

I'd keep your clock to 1 hz, then try running it for one 1 2 4 and 8 months, and plotting solve time.


If the solution time is linear with simulation time then you need to make your model faster (you knew that) whereas if it suddnely slows down then you may have a data management problem.

Alternatively have a look at the step size it is using during a run, and see if you can identify the event that is forcing it to go to a tiny step size.

It may be worth adding a big-ass capacitor to smooth loads, since pV systems are integrators the short term behvaior is of little interest. The exception is if you have real load histories ,and lead acids, where peukelt's law imposes a very significant penalty for high current draw.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close