mtiller / ModelicaBook

Source for my new Modelica Book
https://mbe.modelica.university
Other
95 stars 68 forks source link

Wrong units in Rod_ForLoop #454

Open quorx opened 2 years ago

quorx commented 2 years ago

The units for ConvectionCoefficient should be "W/(m2.K)"

model Rod_ForLoop "Modeling heat conduction in a rod using a for loop"
  type Temperature=Real(unit="K", min=0);
  type ConvectionCoefficient=Real(unit="W/K", min=0);
  type ConductionCoefficient=Real(unit="W.m-1.K-1", min=0);
  type Mass=Real(unit="kg", min=0);
  type SpecificHeat=Real(unit="J/(K.kg)", min=0);
  type Density=Real(unit="kg/m3", min=0);
  type Area=Real(unit="m2");
  type Volume=Real(unit="m3");
  type Length=Real(unit="m", min=0);
  type Radius=Real(unit="m", min=0);

  constant Real pi = 3.14159;
...
mtiller commented 2 years ago

You are correct. Thanks!

quorx commented 2 years ago

I have found your book to be the best resource out there for learning Modelica.

Great work and thanks!