FCSys.Quantities.Examples

Examples

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

NameDescription
FCSys.Quantities.Examples.Display Display Demonstrate the display units for the quantities
FCSys.Quantities.Examples.ExampleModel ExampleModel Model that uses all of the quantities

FCSys.Quantities.Examples.Display FCSys.Quantities.Examples.Display

Demonstrate the display units for the quantities FCSys.Quantities.Examples.Display

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model Display "Demonstrate the display units for the quantities"
  extends Modelica.Icons.Example;

  ExampleModel doubleClickMe;

end Display;

FCSys.Quantities.Examples.ExampleModel FCSys.Quantities.Examples.ExampleModel

Model that uses all of the quantities

Information

Extends from FCSys.Icons.Blocks.Continuous (Icon for a continuous-time block).

Parameters

TypeNameDefaultDescription
AccelerationAcceleration1*U.m/U.s^2Acceleration [L/T2]
AmountAmount1*U.CAmount [N]
AmountReciprocalAmountReciprocal1/U.CReciprocal of amount [1/N]
AngleAngle1*U.radAngle [A]
Angle2Angle21*U.srSolid angle [A2]
AreaArea1*U.m^2Area [L2]
AreaSpecificAreaSpecific1*U.m^2/U.molSpecific area [L2/N]
CapacitanceCapacitance1*U.FCapacitance [N2.T2/(L2.M)]
ConductanceElectricalConductanceElectrical1*U.SElectrical conductance [N2.T/(L2.M)]
ConductivityElectricalConductivityElectrical1*U.S/U.mElectrical conductivity [N2.T/(L3.M)]
ContinuityContinuity1*U.N/U.AContinuity [L.M/(N.T)]
CurrentCurrent1*U.ACurrent [N/T]
CurrentAreicCurrentAreic1*U.A/U.m^2Areic current [N/(L2.T)]
CurrentAreicAbsoluteCurrentAreicAbsolute1*U.A/U.m^2Absolute areic current [N/(L2.T)]
CurrentRateCurrentRate1*U.A/U.sRate of current [N/T2]
DensityDensity1*U.C/U.m^3Density [N/L3]
DiffusivityMassSpecificDiffusivityMassSpecific1*U.g*U.m^2/((U.mol*U.s))Product of diffusivity and specific mass [L2.M/(N.T)]
EnergyEnergy1*U.JEnergy [L2.M/T2]
FluidityFluidity1/(U.Pa*U.s)Fluidity [L.T/M]
ForceForce1*U.NForce [L.M/T2]
ForceSpecificForceSpecific1*U.V/U.mSpecific force [L.M/(N.T2)]
FrequencyFrequency1*U.rad/U.sFrequency [A/T]
InductanceInductance1*U.HInductance [L2.M/N2]
LengthLength1*U.mLength [L]
LengthReciprocalLengthReciprocal1/U.mReciprocal of length [1/L]
LengthSpecificLengthSpecific1*U.m/U.CSpecific length [L/N]
MagneticFluxMagneticFlux1*U.WbMagnetic flux [L2.M/(A.N.T)]
MagneticFluxAreicMagneticFluxAreic1*U.TAreic magnetic flux [M/(A.N.T)]
MagneticFluxReciprocalMagneticFluxReciprocal1/U.WbReciprocal of magnetic flux [A.N.T/(L2.M)]
MassMass1*U.kgMass [M]
MassSpecificMassSpecific1*U.micro*U.g/U.CSpecific mass [M/N]
MassVolumicMassVolumic1*U.kg/U.m^3Volumic mass [M/L3]
MobilityMobility1*U.C*U.s/U.gMobility [N.T/M]
MomentumRotationalMomentumRotational1*U.J*U.s/U.radRotational momentum [L2.M/(A.T)]
NumberNumber1Number [1]
NumberAbsoluteNumberAbsolute1*U.J/(U.mol*U.K)Absolute number [1]
PermeabilityPermeability1*U.H/U.mPermeability [L.M/N2]
PermittivityPermittivity1*U.F/U.mPermittivity [N2.T2/(L3.M)]
PermittivityReciprocalPermittivityReciprocal1*U.m/U.HReciprocal of permittivity [L3.M/(N2.T2)]
PotentialPotential1*U.VPotential [L2.M/(N.T2)]
PotentialAbsolutePotentialAbsolute1*U.KAbsolute potential [L2.M/(N.T2)]
PotentialPerWavenumberPotentialPerWavenumber1*U.V*U.m/U.radPotential per wavenumber [L3.M/(A.N.T2)]
PotentialRatePotentialRate1*U.V/U.sRate of potential [L2.M/(N.T3)]
PowerPower1*U.WPower [L2.M/T3]
PowerAreaPowerArea1*U.W*U.m^2Power times area [L4.M/T3]
PowerAreicPowerAreic1*U.W/U.m^2Areic power [M/T3]
PowerAreicPerPotential4PowerAreicPerPotential41*U.W/(U.m^2*U.K^4)Areic power per 4th power of potential [M.T5/L8]
PowerRadiantPowerRadiant1*U.'cd'Radiant power [L2.M/(A2.T3)]
PressurePressure1*U.PaPressure [M/(L.T2)]
PressureAbsolutePressureAbsolute1*U.PaAbsolute pressure [M/(L.T2)]
PressureRatePressureRate1*U.Pa/U.sRate of pressure [M/(L.T3)]
PressureReciprocalPressureReciprocal1/U.PaReciprocal of pressure [L.T2/M]
ResistanceElectricalResistanceElectrical1*U.ohmElectrical resistance [L2.M/(N2.T)]
ResistanceThermalResistanceThermal1*U.K/U.WThermal resistance [T/N]
ResistivityResistivity1*U.m/U.AResistivity [L.T/N]
TimeTime1*U.sTime [T]
TimeAbsoluteTimeAbsolute1*U.sAbsolute time [T]
TimeLineicTimeLineic1*U.s/U.mLineic time [T/L]
VelocityVelocity1*U.m/U.sVelocity [L/T]
Velocity2Velocity21*U.SvSquared velocity [L2/T2]
VelocityAmountVelocityAmount1*U.A*U.mVelocityAmount [L.N/T]
VolumeVolume1*U.m^3Volume [L3]
VolumeRateVolumeRate1*U.m^3/U.sRate of volume [L3/T]
VolumeSpecificVolumeSpecific1*U.m^3/U.CSpecific volume [L3/N]
VolumeSpecificAbsoluteVolumeSpecificAbsolute1*U.m^3/U.CAbsolute specific volume [L3/N]
VolumeSpecificRateVolumeSpecificRate1*U.m^3/(U.C*U.s)Rate of specific volume [L3/(N.T)]
WavenumberWavenumber1*U.rad/U.mWavenumber [A/L]

Modelica definition

model ExampleModel "Model that uses all of the quantities"
  extends FCSys.Icons.Blocks.Continuous;

  // Generated from FCSys/Resources/quantities.xls, 2013-11-4
  parameter Q.Acceleration Acceleration=1*U.m/U.s^2 "Acceleration";
  parameter Q.Amount Amount=1*U.C "Amount";
  parameter Q.AmountReciprocal AmountReciprocal=1/U.C "Reciprocal of amount";
  parameter Q.Angle Angle=1*U.rad "Angle";
  parameter Q.Angle2 Angle2=1*U.sr "Solid angle";
  parameter Q.Area Area=1*U.m^2 "Area";
  parameter Q.AreaSpecific AreaSpecific=1*U.m^2/U.mol "Specific area";
  parameter Q.Capacitance Capacitance=1*U.F "Capacitance";
  parameter Q.ConductanceElectrical ConductanceElectrical=1*U.S 
    "Electrical conductance";
  parameter Q.ConductivityElectrical ConductivityElectrical=1*U.S/U.m 
    "Electrical conductivity";
  parameter Q.Continuity Continuity=1*U.N/U.A "Continuity";
  parameter Q.Current Current=1*U.A "Current";
  parameter Q.CurrentAreic CurrentAreic=1*U.A/U.m^2 "Areic current";
  parameter Q.CurrentAreicAbsolute CurrentAreicAbsolute=1*U.A/U.m^2 
    "Absolute areic current";
  parameter Q.CurrentRate CurrentRate=1*U.A/U.s "Rate of current";
  parameter Q.Density Density=1*U.C/U.m^3 "Density";
  parameter Q.DiffusivityMassSpecific DiffusivityMassSpecific=1*U.g*U.m^2/((U.mol
      *U.s)) "Product of diffusivity and specific mass";
  parameter Q.Energy Energy=1*U.J "Energy";
  parameter Q.Fluidity Fluidity=1/(U.Pa*U.s) "Fluidity";
  parameter Q.Force Force=1*U.N "Force";
  parameter Q.ForceSpecific ForceSpecific=1*U.V/U.m "Specific force";
  parameter Q.Frequency Frequency=1*U.rad/U.s "Frequency";
  parameter Q.Inductance Inductance=1*U.H "Inductance";
  parameter Q.Length Length=1*U.m "Length";
  parameter Q.LengthReciprocal LengthReciprocal=1/U.m "Reciprocal of length";
  parameter Q.LengthSpecific LengthSpecific=1*U.m/U.C "Specific length";
  parameter Q.MagneticFlux MagneticFlux=1*U.Wb "Magnetic flux";
  parameter Q.MagneticFluxAreic MagneticFluxAreic=1*U.T "Areic magnetic flux";
  parameter Q.MagneticFluxReciprocal MagneticFluxReciprocal=1/U.Wb 
    "Reciprocal of magnetic flux";
  parameter Q.Mass Mass=1*U.kg "Mass";
  parameter Q.MassSpecific MassSpecific=1*U.micro*U.g/U.C "Specific mass";
  parameter Q.MassVolumic MassVolumic=1*U.kg/U.m^3 "Volumic mass";
  parameter Q.Mobility Mobility=1*U.C*U.s/U.g "Mobility";
  parameter Q.MomentumRotational MomentumRotational=1*U.J*U.s/U.rad 
    "Rotational momentum";
  parameter Q.Number Number=1 "Number";
  parameter Q.NumberAbsolute NumberAbsolute=1*U.J/(U.mol*U.K) "Absolute number";
  parameter Q.Permeability Permeability=1*U.H/U.m "Permeability";
  parameter Q.Permittivity Permittivity=1*U.F/U.m "Permittivity";
  parameter Q.PermittivityReciprocal PermittivityReciprocal=1*U.m/U.H 
    "Reciprocal of permittivity";
  parameter Q.Potential Potential=1*U.V "Potential";
  parameter Q.PotentialAbsolute PotentialAbsolute=1*U.K "Absolute potential";
  parameter Q.PotentialPerWavenumber PotentialPerWavenumber=1*U.V*U.m/U.rad 
    "Potential per wavenumber";
  parameter Q.PotentialRate PotentialRate=1*U.V/U.s "Rate of potential";
  parameter Q.Power Power=1*U.W "Power";
  parameter Q.PowerArea PowerArea=1*U.W*U.m^2 "Power times area";
  parameter Q.PowerAreic PowerAreic=1*U.W/U.m^2 "Areic power";
  parameter Q.PowerAreicPerPotential4 PowerAreicPerPotential4=1*U.W/(U.m^2*U.K^4)
    "Areic power per 4th power of potential";
  parameter Q.PowerRadiant PowerRadiant=1*U.'cd' "Radiant power";
  parameter Q.Pressure Pressure=1*U.Pa "Pressure";
  parameter Q.PressureAbsolute PressureAbsolute=1*U.Pa "Absolute pressure";
  parameter Q.PressureRate PressureRate=1*U.Pa/U.s "Rate of pressure";
  parameter Q.PressureReciprocal PressureReciprocal=1/U.Pa 
    "Reciprocal of pressure";
  parameter Q.ResistanceElectrical ResistanceElectrical=1*U.ohm 
    "Electrical resistance";
  parameter Q.ResistanceThermal ResistanceThermal=1*U.K/U.W 
    "Thermal resistance";
  parameter Q.Resistivity Resistivity=1*U.m/U.A "Resistivity";
  parameter Q.Time Time=1*U.s "Time";
  parameter Q.TimeAbsolute TimeAbsolute=1*U.s "Absolute time";
  parameter Q.TimeLineic TimeLineic=1*U.s/U.m "Lineic time";
  parameter Q.Velocity Velocity=1*U.m/U.s "Velocity";
  parameter Q.Velocity2 Velocity2=1*U.Sv "Squared velocity";
  parameter Q.VelocityAmount VelocityAmount=1*U.A*U.m "VelocityAmount";
  parameter Q.Volume Volume=1*U.m^3 "Volume";
  parameter Q.VolumeRate VolumeRate=1*U.m^3/U.s "Rate of volume";
  parameter Q.VolumeSpecific VolumeSpecific=1*U.m^3/U.C "Specific volume";
  parameter Q.VolumeSpecificAbsolute VolumeSpecificAbsolute=1*U.m^3/U.C 
    "Absolute specific volume";
  parameter Q.VolumeSpecificRate VolumeSpecificRate=1*U.m^3/(U.C*U.s) 
    "Rate of specific volume";
  parameter Q.Wavenumber Wavenumber=1*U.rad/U.m "Wavenumber";
  // -------- end from FCSys/Resources/quantities.xls

end ExampleModel;