Graham Dudgeon (2021). Distribution System Model in Simscape : European Test Feeder (https://www.mathworks.com/matlabcentral/fileexchange/66991-distribution-system-model-in-simscape-european-test-feeder), MATLAB Central File Exchange. Retrieved .
Thanks for the support! I am able to run it now.
I have also built and run the single segment model successfully in R2021a (Update 1). Please try deleting all the files and directories created during your last attempt, restart MATLAB, and try again. Before you press 'play', go to Configuration Parameters -> Model Reference -> Rebuild -> and then select 'Always'. This will automatically trigger the model reference build. After the models are built you can set Rebuild -> Never (unless you make changes, then set it back to Always).
Hi Pedro and Quan,
I have built and run the 4-segment model successfully in R2021a (Update 1) with no changes to the scripts. Before you press 'play', go to Configuration Parameters -> Model Reference -> Rebuild -> and then select 'Always'. This will automatically trigger the model reference build. After the models are built you can set Rebuild -> Never (unless you make changes, then set it back to Always).
Let me know if you have further issues and also what MATLAB version you are using. Type 'ver' in the command line.
I'll now take a look at the single segment build.
I'm sorry you are having issues with the model build, and thanks for bringing this issue to my attention. I'll look into this and report back as soon as I can.
I have successfully created the 1 segment model, however when I run it I have the following error:
Error loading external input data into root-level Inport IEEE_MR/inputs in model 'IEEE_MR'.
The external inputs specified for the block diagram indicate that the port dimensions should be . Instead, the port dimensions are being set to .
Do you know what might be the problem?
I have the exact same problem as you. I was wondering if you have manage to solve it and how you did it?
Since I see Graham hasn't responded for quite some time.
In Configuration Settings, go to Model Referencing and select 'If any changes detected' in the Rebuild drop-down. This will rebuild the models.
Hi Graham, thank you for sharing.
Follow your steps:
This will create a model called 'IEEE_European_LV_COMPLETE'
The system is set up to run with Ts = 1, and load changes every 60s for a 24hr period.
To run the model, open and run 'IEEE_MR'. This is the top-level model that uses model reference to connect to 'IEEE_European_LV_COMPLETE'. Model reference is used so that we need only compile 'IEEE_European_LV_COMPLETE' once.
Once the model is compiled, in 'IEEE_MR' go to Configuration Parameters -> Model Referencing -> Rebuild and select 'Never'. Subsequent runs will not rebuild the model.
However, I have a problem when runs the "IEEE_MR" file:
Unable to update models referenced by 'IEEE_MR'.
The model 'IEEE_MR' has the Rebuild parameter on the Model Referencing pane of the Configuration Parameters dialog box set to Never. However, the following referenced models are out-of-date for the following reasons. Consider resetting the Rebuild parameter to a value other than Never.
Model reference simulation target (IEEE_European_LV_COMPLETE_msf.mexw64) for model IEEE_European_LV_COMPLETE is out of date because IEEE_European_LV_COMPLETE_msf.mexw64 does not exist.
Do you know how to solve it?
Thank you for your detailed model. How can I get the voltage, phase angle and current values of each bus on 1-minute basis? Thank you!
When you run create_European_LV_4segments.m to generate the four segment model, you will generate the different load inputs. Check out lines 108-118.
Change the scripts as necessary to load the correct data.
thank you for the model, but when trying to run init_European_LV_1SEG.m,
I get the message:
Undefined function or variable 'load_inputs1'.
Error in rampInputs (line 7)
ll = zeros(numel(t)*2,size(load_inputs1,2)+size(load_inputs2,2)+size(load_inputs3,2)+size(load_inputs4,2));
Error in init_European_LV_1SEG (line 16)
Any suggestions for the solution? When I check the data files, there are no load_inputs1, 2 or 3, only one file named load_inputs
Also, in the function init_European_LV_1SEG.m, in line 7, the inital code is: load('IEEE_European_LV_COMPLETE.mat'),
but there is not that named .mat file available, but a bit diffrent: IEEE_European_LV_COMPLETE_input_data.mat
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!