simulation time in hours
23 views (last 30 days)
Show older comments
Hi Please i need help on how to simulate a model that runs for 120 hours simulation time. I need the x-axis label to be in hours. The most important thing is that the behaviour i want to capture from the model can only be revealed after about 100 hours. I have read several similar contributions but did not answer my query. I know the simulation time in simulink is in seconds unit. If i multiply 120 by 3600 to get seconds, it seems too large. I tried to run it on my system and i could not complete it due to the duration of the simulation. Also, my computer froze when i tried it. Please I want something similar to the x-axis of the attached file.
Thank you.
5 Comments
dpb
on 21 Feb 2021
Well, that's likely owing to the modeling trying to do too much -- as noted, I "know nuthink!" really of Simulink so don't know what you can do about the timestep control in the solver(s).
I see it is reactor dynamics, being an old NE meself, I could see potential there for models to have difficulties in solving the long-term problem owing to the dynamics of the reactor system being modeled finely so that short timesteps are needed to represent the dynamics even though that's not the overall intent of the model.
How have/are you modeling the reactor dynamics here?
Answers (2)
KaMATLAB
on 21 Feb 2021
Edited: KaMATLAB
on 21 Feb 2021
6 Comments
dpb
on 21 Feb 2021
I'm afraid I can't help much more with Simulink specifics...I was asking what kind of time step does your simulation show when it is running? I presume you get some indication of time as it runs somewhere, but I have no knowledge whatsoever of the user interface, sorry.
Jonas
on 22 Feb 2021
Edited: Jonas
on 22 Feb 2021
I am not particularly certain how your model behaves dynamically, and if it is made in the discrete time space or continuous time space, but you should investigate and try out the Solver settings.
If you have a model where you want high accuracy for moments where the model state changes quickly, but want low accuracy on times where little is happening in your model and you want to progress more quickly, you should use a Variable Step Solver. Try out various error tolerance settings
If your model contains parameters with a unit in seconds, you can leave the model simulating in seconds. If you want the model to simulate quicker you should increase the discrete step time, this is mostly related to having a Fixed Step Solver.
Choosing a solver in Simulink is actually a very important aspect so it may be good to learn about it regardless.
If your model is highly dynamic but you still want to simulate long simulation times, the only solution is to upscale your processing power.
9 Comments
dpb
on 23 Feb 2021
Edited: dpb
on 23 Feb 2021
"I want to plot Xenon profile in each node after several hours to indicate that it is actually suppressed. ..."
Pay particular attention to axial flux redistribution -- I don't know your reactor design or operating limits, but one has to be VERY careful with large PWRs with the part-length axial-power-shaping control rods (APSRs) to ensure don't ever let the core flux peak get ahead of their leading position--either top or bottom. If that were to happen, then moving them in the direction of the peak in an attempt to suppres it will, instead, "push it ahead of them" as they advance with the resultant risk of exceeding allowable operational power-peaking limits and thus DNBR or centerline fuel-melt peaking limits.
Needless to say, such a situation isn't desireable.
See Also
Categories
Find more on Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!