ATPBatlab
Helper tool for batch ATP simulations, parametric analyses and dataset generation using MATLAB. ATP-Batlab is designed to read a template ATP file supplied by the user and extract the model variables defined in the $PARAMETER section. A friendly GUI enables the user to specify ranges or conditional values for each variable set in ATP/ATPDraw. Then, the program will refactor the original ATP template and write the requested case files, changing the $PARAMETER values as per user entry. A Windows script (batch file) is created to run and post-process all cases at once. The result files may be kept in PL4 format, written to MATLAB matfiles or converted into COMTRADE.
ATP. Batch files. MATLAB. Batlab. Got it?
- Parametric simulations made easy: you can vary component values, switch statuses, circuit node where a disturbance occurs, fault location along a line and basically whatever can be declared as a $PARAMETER in ATP.
- Values can be set as hard-coded data or MATLAB functions, numeric or string. You can specify several variables, the program will write all the possible input combinations.
- Conditionally-defined variables, according to other $PARAMETER values, are possible - all you gotta do is define a valid expression that returns a boolean outcome.
- Post-processing features: save the outputs as PL4, matfiles or ASCII COMTRADE.
- Run recovery features: you are in the middle of a thousand-cases batch and the power goes out... Ironic, but fear not: the batch is programmed to recover from where it stopped. Also, progress is recorded to logfiles. You are welcome.
- ATP-Batlab is distributed with a GUI designed to aid data entry. You can save your projects in matfiles and recover them for later use.
The use of the program is relatively straightforward if you are able to work with $PARAMETER values in ATP. Create your model normally in ATPDraw. Specify the values you want to vary as $PARAMETER variables in ATPDraw (make sure that the internal parser of ATPDraw is DISABLED). Hit ATP → Sub-process → Make ATP file. This is your template file. Launch the file 'atpbatlab.mlapp' from MATLAB workspace and load the newly-created ATP file. All valid $PARAMETERS will be parsed and displayed in the 'Model variables' window. The field 'Newvalues' contains the values you want to specify. Set numeric data as row vectors ([1 2 3]), string data as cell arrays ({'str1' 'str2' 'str3'}) or any MATLAB function returning these data types. You can save your work by clicking 'Save input session' or recover an existing project by clicking 'Load input session'. You will be prompted to specify a JobID and this is mandatory. The JobID is a text string which will be used to identify all the output files and folders. For instructions on the conditional variables, hover the mouse over the corresponding window in the 'Refactor' tab. Right-click over a $PARAMETER for shortcuts. Define what tasks you want to perform and hit Run!
- General view:
- Screenshot of the 'Refactor' tab:
ATP-Batlab requires the external binary Pl42mat.exe to perform conversions from the ATP PL4 format into matfiles. Pl42mat is intellectual property of prof. Massimo Ceraolo from University of Pisa (http://ceraolo-plotxy.ing.unipi.it/default.htm). In addition, ATP-Batlab uses the 'allcomb.m' routine developed by Jos (10584), available from File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/10064-allcomb-varargin . These codes are properties of the respective authors, with all due credits given. Observe any restrictions and licensing/usage requirements in the aforementioned websites.
We appreciate the interest in our work and we invite the interested users to use our codes as necessary, as long as they are not embedded in any commercial software, which is strictly prohibited. If you use the ATP-Batlab as a part of scientific research, we kindly ask you to refer to our published papers:
-
M. A. B. Ribeiro, C. M. Moraes, A. G. Martins-Britto and K. M. Silva, "Assessment of Different Frequency-Dependent Line Models for EMT Simulations of HVDC Systems," 2023 Workshop on Communication Networks and Power Systems (WCNPS), Brasilia, Brazil, 2023, pp. 1-7, doi: 10.1109/WCNPS60622.2023.10344430.
-
L. A. Ribeiro, G. Cunha, A. G. Martins-Britto, E. P. A. Ribeiro, F. V. Lopes, “Impact of transmission line modeling aspects on TW-Based fault location studies,” in Electric Power Systems Research, 196(2):107204, doi: 110.1016/j.epsr.2021.107204.
Cita come
Amauri Martins-Britto (2024). ATPBatlab (https://github.com/amaurigmartins/Batlab/releases/tag/1.0.0), GitHub. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
functions
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0 |