doubleArrayBaseType

complexType · restriction stringArrayBaseType · value xsd:string

Array with semicolon separated values of type double

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:

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

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

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

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.

Attributes

NameTypeConstraintsUseDefaultDescription
@externalDataDirectoryxsd:stringoptionalDirectory of the external data file
@externalDataNodePathxsd:stringoptionalPath of the node inside the external data file
@externalFileNamexsd:stringoptionalName of the external data file
@mapTypexsd:stringoptionalarray fixedMapping type of the data, fixed to array

Value constraints

ConstraintValue
patternThe value must match this regular expression.((\s+)?[-+]?(\d+)?(\.)?(\d+)?(([eE][-+]?)?\d+)?(\s+)?|(\s+)?(NaN)(\s+)?)(;(((\s+)?[-+]?(\d+)?(\.)?(\d+)?(([eE][-+]?)?\d+)?(\s+)?)|(\s+)?(NaN)(\s+)?))*

Used by

In a dataset · 8 paths

In the schema · 8 declarations

TypeName
aeroPerformanceIncrementMapTypedcd
aeroPerformanceIncrementMapTypedcl
aeroPerformanceIncrementMapTypedcmd
aeroPerformanceIncrementMapTypedcml
aeroPerformanceIncrementMapTypedcms
aeroPerformanceIncrementMapTypedcs
operationLimitIncrementsTypedeltaAngleOfAttackMax
operationLimitIncrementsTypedeltaAngleOfAttackMin