DimensionedFunction1: Permit setting argument-dimensions of inline functions
Both argument and value dimensions can be set for inline-constructable
function1-s. For example, this inline table function:
massFlowRate table [CAD] [g/s]
(
(0 0.46)
(0.17 1.9)
(0.31 4.8)
);
Is equivalent to this dictionary specification:
massFlowRate
{
type table;
xDimensions [CAD];
dimensions [g/s];
values
(
(0 0.46)
(0.17 1.9)
(0.31 4.8)
);
}
In the inline form, the argument/x-dimensions come first, and the value
dimensions second. If there only one dimension set provided, then this
is assumed to be the value dimensions.
This commit is contained in:
@ -203,11 +203,12 @@ DimensionSets
|
||||
// Scaled units. Supported in dimensionedType and
|
||||
// UniformDimensionedField. Not supported in DimensionedField or
|
||||
// GeometricField.
|
||||
cm [m] 1e-2;
|
||||
g [kg] 1e-3;
|
||||
mm [m] 1e-3;
|
||||
cm [m] 1e-2;
|
||||
km [m] 1e3;
|
||||
ms [s] 1e-3;
|
||||
us [s] 1e-6;
|
||||
ms [s] 1e-3;
|
||||
}
|
||||
|
||||
USCSCoeffs
|
||||
|
||||
Reference in New Issue
Block a user