Project

General

Profile

VariablesWithMesh » History » Version 1

Ted Sume, 11/13/2019 02:58 PM

1 1 Ted Sume
# VariablesWithMesh
2
3
# Variables that are combined with their meshes
4
5
Particle data is often written out in such a way that the points and velocities (or other internal particle variables) are in one array. This page describes the metadata for this situation. 
6
7
**Jump to**
8
9
* [Variables and their metadata](https://ice.txcorp.com/vizschema/wiki/Variables) 
10
* [Variables that are combined with their meshes](https://ice.txcorp.com/vizschema/wiki/VariablesWithMesh)
11
* [Data ordering](https://ice.txcorp.com/vizschema/wiki/DataOrdering)
12
* [Variables defined in terms of other variables](https://ice.txcorp.com/vizschema/wiki/DerivedVariables) 
13
* [Multidomain metadata](https://ice.txcorp.com/vizschema/wiki/MultiDomainMetaData)
14
* [Other metadata](https://ice.txcorp.com/vizschema/wiki/OtherMetaData)
15
16
**Particle data**
17
```
18
Dataset "electrons" {
19
  Att vsType = "variableWithMesh"             // Required string
20
  Att vsNumSpatialDims = 3                    // Either this or vsSpatialIndices is required
21
  Att vsLimits = "mylimits"                   // Optional string
22
  Att vsTimeGroup = "mytime"                       // Optional string
23
  Att vsIndexOrder = "compMinorC"             // Optional string, defaults to "compMinorC", denoting whether
24
                                              // the variable index or the data index varies most rapidly.
25
  DATASPACE [n0, n1]                          // Required float array
26
  Att vsLabels = "x, y, z, dx, dy, dz"        // Optional string
27
}
28
```
29
* vsNumSpatialDims indicates the number of variables that are spatial positions. These are in the first positions. 
30
* vsLimits indicates a [visualization region](https://ice.txcorp.com/vizschema/wiki/OtherMetaData) 
31
* vsTimeGroup indicates a time group for this data 
32
* vsIndexOrder is "compMinor" by default, which means that the variable index is last. If "compMajor", then the variable index is first. 
33
* vsLabels gives user-friendly names for the components of this variable. See [Variables](https://ice.txcorp.com/vizschema/wiki/Variables) for more information. 
34
35
**Specifying the Number of Spatial Dimensions**
36
37
A VariableWithMesh allows two different methods to specify the number of spatial dimensions. 
38
The first is the attribute vsNumSpatialDims. If given, it is assumed that the spatial information is contained in the first components of the variable. If vsNumSpatialDims is "3", the variable will be marked as a 3-d variable, with position information in the first, second, and third components of the variable. 
39
The second is the attribute vsSpatialIndices. This is an integer array that specifies which components of the variable contain spatial information. This attribute is most useful for cases where the position data is interspersed with other data, such as velocity. A classic example of this is synergia, which outputs velocity data between each column of position data. For a synergia file with the components "x, dx, y, dy, z, dz", the user would give a vsSpatialIndices value of [0, 2, 4]. 
40
Note that a value of [0, 1, 2] is equivalent to a vsNumSpatialDims value of 3. In general, the vsSpatialIndices attribute can express all of the same information as vsNumSpatialDims.