Set
This method specifies power orders using the mass, length, time (MLT) system. When you add your plugin function, you must specify the unit dimensions of the physical quantity that is returned by your function, and for any arguments used by your function. The unit dimensions are specified through the instance of class Measure
.
Calling convention:
void Set (int expMass, int expLen, int expTime, int expTemp, int expCharge, int expAngle, int expDeltaTemp, int expLuminousIntensity, int expAmountOfSubstance)
Argument | Data type | Description |
---|---|---|
expMass | int | Power of mass units. |
expLen | int | Power of length unit. |
expTime | int | Power of time unit. |
expTemp | int | Power of temperature unit. |
expCharge | int | Power of charge unit. |
expAngle | int | Power of angle unit. |
expDeltaTemp | int | Power of delta temperature unit. |
expLuminousIntensity | int | Power of luminous intensity unit. |
expAmountOfSubstance | int | Power of amount of substance unit. |
The order of MLT units for the Set
method is mass (M), length (L), time
(t), temperature (T), charge, angle, delta temperature (ΔT), luminous intensity, and
amount of substance as described in CaeUtils_Exp_FunctionUtils.hxx.
The following example shows how to specify the heat transfer coefficient units in the MLT system, Mt-3ΔT-1, in your plugin function:
Measure meas;
meas.Set(1,0,-3,0,0,0,-1,0,0);