modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
472 stars 169 forks source link

Fluid names for density and viscosity #966

Open modelica-trac-importer opened 7 years ago

modelica-trac-importer commented 7 years ago

Reported by rfranke on 17 Jan 2013 19:39 UTC Modelica.Fluid generally uses the names rho for density and mu for dynamic viscosity. See e.g.:

Modelica.Fluid.Machines.Pump
Modelica.Fluid.Pipes.BaseClasses.FlowModels
Modelica.Fluid.Fittings.BaseClasses.massFlowRate_dp_and_Re

The models

Modelica.Fluid.Interfaces.PartialPressureLoss
Modelica.Fluid.Fittings.SimpleGenericOrifice

internally use the names d and eta instead. These alternative names are not used in Fluid because:

The uses if d and eta for density and dynamic viscosity shall be replaced with rho and mu, respectively.

Even though these names are only used internally, a renaming in MSL3.2.1 might break compatibility, e.g. for models extending from Modelica.Fluid.Interfaces.PartialPressureLoss.


Migrated-From: https://trac.modelica.org/Modelica/ticket/966

modelica-trac-importer commented 7 years ago

Modified by dietmarw on 18 Jan 2013 07:57 UTC

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 1 Aug 2015 21:36 UTC Milestone renamed

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 1 Aug 2015 21:39 UTC Milestone renamed

beutlich commented 5 years ago

@rfranke Modelica.Fluid.Interfaces.PartialPressureLoss uses the names d_a, d_b, eta_a and eta_b. Same idents are also used in Modelica.Fluid.Fittings.BaseClasses.Bends.CurvedBend.{massFlowRate, pressureLoss}, Modelica.Fluid.Fittings.BaseClasses.Bends.EdgedBend.{massFlowRate, pressureLoss} and Modelica.Fluid.Fittings.BaseClasses.Orifices.ThickEdgedOrifice.{massFlowRate, pressureLoss} as function arguments. Shall they be renamed as well?

Furthermore, eta is used in Fluid.Dissipation for dynamic viscosity. Shall it be replaced as well?

beutlich commented 5 years ago

No reply from library officers -> removing milestone.