-
Notifications
You must be signed in to change notification settings - Fork 5
/
Solid.mo
38 lines (35 loc) · 7.21 KB
/
Solid.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
within TILMedia;
model Solid "Solid model with T as independent variable"
replaceable model SolidType = TILMedia.SolidTypes.BaseSolid constrainedby
TILMedia.SolidTypes.BaseSolid "type record of the solid"
annotation(choicesAllMatching=true);
constant SI.Density d = solid.d "Density";
input SI.Temperature T "Temperature" annotation(Dialog);
SI.SpecificHeatCapacity cp "Heat capacity";
SI.ThermalConductivity lambda "Thermal conductivity";
constant SI.SpecificHeatCapacity cp_nominal=solid.cp_nominal
"Specific heat capacity at standard reference point";
constant SI.ThermalConductivity lambda_nominal=solid.lambda_nominal
"Thermal conductivity at standard reference point";
protected
SolidType solid(final T=T);
equation
cp = solid.cp;
lambda = solid.lambda;
annotation (defaultComponentName="solid", Icon(graphics={Text(
extent={{-120,-60},{120,-100}},
lineColor={165,165,165},
textString=
"%name"), Bitmap(
extent={{-100,-100},{100,100}},
imageSource=
"iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAEERJREFUeNrsnUFsVMcZxwfHELUYYaAyUgplSdTipKUYqKo4qmAluHCyI+XkCz5WqiqcHnr2sb205tBz1xcfeokttSBVuFmjStBUgF2oAkmJl0BocQLYSmgVAqLv/zwTrZe1d9f7Zt58M/+/9LSWwbvvvZ3f+3/fzDczG549e6YoO5qYmOhLXrqTo6h/ZV4LybGnxbe7lRwV/XO56nVxaGhoVuo9OvmzXxT1fTH36miDP5nBNScHrrk8/rvflG2e3wYCkhkM5ks2xwHHpzCnG016JNCUPQUCEAzqYyCjt51KjkkcCTCLBMQfdxjUT7+jnp7mjHaZct7AJGDgfo3gR8sfNZ4cYwkoswTEL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P2D+oZV3gGhIvJ9YRVnX6QSOEV9OpsOzmzOquDtVzJpTnlVZeOUg2kUKanmvh61sL1EJeUefq5mCUh3ETM8dZnuJTsO+weElIBoSJGhvs81Eo7d9Scq9D7Fqwq2SElSKQq1LuZaSiAZEQxLMICL1nLwYDBQXYtXGpoo9WyFqTkKu6T0genHiIiEJDo6i7YWnY3EQQkI4CAghIRwEhJAQDkFwiAOkBpIptjkxmpIIB+R9N+9a4jiJCHk9zhGcg9S4CW48R9z91duS4RDvIFVOgsEmuAkLHP1QOuHJ1/KR6ADRkBTU8o6nB9g+c0/GB30sPIwuxKoJtyo6eR9nG80v39DJeCWUCwrGQRhyMaSigzTvJviiEHKxK9i+cI8LIcIRrIPQTegadJDW3YS5Sba5RiF0OKJwkBo3QRI/qjxfVd5jYafi0QSMciwXHBUgVaAMa1D2sM03pVsajFJsFx4lIASFYBAQgkIwCEjmoKDHayTiHAU5xlgMyTcBaQ+UggYFzhJ69zC6a0sajAq/fQKyHlcBKKGtrIIBvhLdgoBkBUq3Wt4Nq6gE7YpV4xRltVzQOSlx8hIBkQVMUcNS9DhnmdFQlGMauyAgfgPTp5ZH7l2X3aPMvKKBmCUQBEQCNAYWvHbrV6V/12qX8i0NAITV7xf1ayWBYZZ3m4DEkOMYgGaZIxAQivJeHbwFFEVAKIqAUBQBoSgCQlEEhKIICEUREIoiIBRFQCiKIiAURUAoioBQFAGhKAJCUQSEoggIRREQiiIgFEVAKIoiIBRFQCiKgFAUAaEoAkJRBISiCAhFERCKIiAURREQiiIgFEVAKIqAUBQBoSgCQlEEhKIICEUREIqKWP8XYACeCXuABKALWQAAAABJRU5ErkJggg==",
fileName="modelica://TILMedia/Resources/Images/Icon_Solid_T.png")}),
Protection(access=Access.packageDuplicate),
Documentation(info="<html>
<p>
The solid model calculates the thermopyhsical property data with given input: temperature (T) and the model SolidType.<br>
The interface and the way of using, is demonstrated in the Testers -> <a href=\"modelica://TILMedia.Testers.TestSolid\">TestSolid</a>.
</p>
</html>"));
end Solid;