Skip to content

Commit

Permalink
Added script to export FMUs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dag Brück committed Feb 12, 2024
1 parent 99727be commit a21dcb4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions examples/DC-Motor2023/models/sse_edrive/Export FMUs.mos
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Script to export FMUs from library.
// Script generated by Dymola.

OutputCPUtime = false;
translateModelFMU(
"sse_edrive.stimuli",
false,
"stimuli_model",
"2",
"cs",
false,
0,
fill("", 0));
translateModelFMU(
"sse_edrive.emachine",
false,
"emachine_model",
"2",
"cs",
false,
0,
fill("", 0));
translateModelFMU(
"sse_edrive.mass_damper",
false,
"edrive_mass",
"2",
"cs",
false,
0,
fill("", 0));
3 changes: 2 additions & 1 deletion examples/DC-Motor2023/models/sse_edrive/test.mo
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ equation
subPlot=201,
colors={{28,108,200}},
timeUnit="s",
displayUnits={"N.m"})} "Plot KPI"),
displayUnits={"N.m"})} "Plot KPI", file(description="Export FMUs for SSP") =
"Export FMUs.mos" "Export FMUs"),
experiment(StopTime=1, __Dymola_Algorithm="Dassl"));
end test;

0 comments on commit a21dcb4

Please sign in to comment.