Skip to content

Commit

Permalink
pre-commit to run modelica-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Nov 28, 2023
1 parent 3dee62e commit 30930cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ within {{ project_name }}.Plants.{{ model_name }};
start=TExt0_start)
"Average borehole wall temperature in the borefield"
annotation (Placement(transformation(extent={{100,34},{120,54}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput Q_flow(final unit="W")
Buildings.Controls.OBC.CDL.Interfaces.RealOutput Q_flow(
final unit="W")
"Rate at which heat is extracted from soil"
annotation (Placement(transformation(extent={{100,-50},{120,-30}}),
iconTransformation(extent={{100,-64},{140,-24}})));
annotation (Placement(transformation(extent={{100,-50},{120,-30}}),iconTransformation(extent={{100,-64},{140,-24}})));
{% endraw %}{{ project_name }}.Plants.GroundTemperatureResponse groTemRes(
{% raw %}final tLoaAgg=tLoaAgg,
final nCel=nCel,
Expand Down Expand Up @@ -215,8 +215,8 @@ equation
annotation (Line(points={{31,30},{36,30},{36,44},{48,44}},color={0,0,127}));
connect(AveTBor.y,TBorAve)
annotation (Line(points={{71,44},{110,44}},color={0,0,127}));
connect(gaiQ_flow.y, Q_flow)
annotation (Line(points={{1,80},{12,80},{12,60},{94,60},{94,-40},{110,-40}}, color={0,0,127}));
connect(gaiQ_flow.y,Q_flow)
annotation (Line(points={{1,80},{12,80},{12,60},{94,60},{94,-40},{110,-40}},color={0,0,127}));
annotation (
Icon(
coordinateSystem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ within {{ project_name }}.Plants.{{ model_name }};
start=TExt0_start)
"Average borehole wall temperature in the borefield"
annotation (Placement(transformation(extent={{100,34},{120,54}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput Q_flow(final unit="W")
Buildings.Controls.OBC.CDL.Interfaces.RealOutput Q_flow(
final unit="W")
"Rate at which heat is extracted from soil"
annotation (Placement(transformation(extent={{100,-50},{120,-30}}),
iconTransformation(extent={{100,-64},{140,-24}})));
annotation (Placement(transformation(extent={{100,-50},{120,-30}}),iconTransformation(extent={{100,-64},{140,-24}})));
{% endraw %}{{ project_name }}.Plants.GroundTemperatureResponse groTemRes(
{% raw %}final tLoaAgg=tLoaAgg,
final nCel=nCel,
Expand Down Expand Up @@ -215,8 +215,8 @@ equation
annotation (Line(points={{31,30},{36,30},{36,44},{48,44}},color={0,0,127}));
connect(AveTBor.y,TBorAve)
annotation (Line(points={{71,44},{110,44}},color={0,0,127}));
connect(gaiQ_flow.y, Q_flow)
annotation (Line(points={{1,80},{12,80},{12,60},{94,60},{94,-40},{110,-40}}, color={0,0,127}));
connect(gaiQ_flow.y,Q_flow)
annotation (Line(points={{1,80},{12,80},{12,60},{94,60},{94,-40},{110,-40}},color={0,0,127}));
annotation (
Icon(
coordinateSystem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ model GroundTemperatureResponse
"File name of g-function data file in MAT format";
parameter Integer nTimTot=76
"Total length of g-function vector";
Boolean writegFun "True if g-function was succesfully written to file";
Boolean writegFun
"True if g-function was succesfully written to file";
Modelica.Blocks.Interfaces.RealOutput delTBor(
unit="K")
"Temperature difference current borehole wall temperature minus initial borehole wall temperature"
Expand Down Expand Up @@ -145,11 +146,12 @@ initial equation
ttsMax=ttsMax,
sha=SHAgfun,
forceGFunCalc=forceGFunCalc);
*/
algorithm
Modelica.Utilities.Files.createDirectory("tmp");
Modelica.Utilities.Files.createDirectory("tmp/temperatureResponseMatrix");
writegFun := Modelica.Utilities.Streams.writeRealMatrix(
*/algorithm
Modelica.Utilities.Files.createDirectory(
"tmp");
Modelica.Utilities.Files.createDirectory(
"tmp/temperatureResponseMatrix");
writegFun := Modelica.Utilities.Streams.writeRealMatrix(
fileName="tmp/temperatureResponseMatrix/TStep.mat",
matrixName="TStep",
matrix=timSer,
Expand Down

0 comments on commit 30930cc

Please sign in to comment.