Click or drag to resize

doubleArrayBaseType Complex Type

Array with semicolon separated values of type double

Namespace: Empty

Schema: Empty

Base Type
Content Type
ItemFacet ValueDescription
Restriction string
      Facet Pattern((\s+)?[-+]?(\d+)?(\.)?(\d+)?(([eE][-+]?)?\d+)?(\s+)?|(\s+)?(NaN)(\s+)?)(;(((\s+)?[-+]?(\d+)?(\.)?(\d+)?(([eE][-+]?)?\d+)?(\s+)?)|(\s+)?(NaN)(\s+)?))*
Usages
Attributes
NameTypeRequiredDescription
Attribute externalDataDirectorySimple Type string
Attribute externalDataNodePathSimple Type string
Attribute externalFileNameSimple Type string
Attribute mapTypeSimple Type string
Remarks

In CPACS arrays are used to exchange values in full-factorial parameter spaces, for example to describe the aerodynamic coefficients depending on Mach number and altitude.

Thus, the dimensions of the array are spanned by the input vectors. See the following example where two input vectors are defined. For clarification the entries of the array result from the multiplication of the index values of the corresponding input vectors:

Input vectors
<inputVector1>1;2;3</inputVector1>
<inputVector2>4;5;6;7</inputVector2>
Resulting 3x4 array
<array>4;5;6;7;8;10;12;14;12;15;18;21</array>

Any entries of type double separated by semicolons are valid, e.g.:

Example 1: valid double array
<doubleArrayTest>123.456;+123.456;-1.234e56;-.45E-6;NaN;0</doubleArrayTest>
Example 2: valid double array with only one entry
<doubleArrayTest>123.456</doubleArrayTest>
Example 3: invalid double array due to comma separation
<doubleArrayTest>123.456,+1234.456</doubleArrayTest>
Example 4: invalid double array due to string entry
<doubleArrayTest>123.456;mainWingUID</doubleArrayTest>
Example 5: invalid double array due invalid double values
<doubleArrayTest>1234.4E 56;-1.234e5.6</doubleArrayTest>

Please note that the syntax of arrays in the current CPACS version correspond exactly to the syntax of vectors. There is no special character indicating the dimensions. Thus, the input vectors have to be determined from the documentation of the corresponding elements and splitting of the one-dimensional vector has to be done manually.