...
- Go to the DM documentation and answer the following questions:
How many IDSs have been defined ?
Answer:
Info 46
Where can I find the toroidal flux profile calculated by my equilibrium code ?
Answer: In the equilibrium IDS, search for “toroidal flux”, found at path time_slice(:)/profiles_1d/phi
- What are its units ?
- Answer: Wb
- Does it vary during the pulse ?
- Answer: Yes, it is dynamic
- How many dimensions does it have ?
- Answer: 1D (float)
- What are its axes ?
- Answer: time_slice(:)/profiles_1d/psi
- Assume I have retrieved a full equilibrium structure in my Fortran program, what syntax would I use for this variable ?
- Answer: equilibrium%time_slice(:)%profiles_1d%phi
Arrays of structure
- Arrays of structures are used when a list of objects have nodes of different sizes, in order to avoid creating large sparse arrays
- Two kinds of arrays of structure are distinguished:
- Case 1: The structure contains asynchronous nodes, e.g. PF coils may be acquired with different timebases. See pf_active/coil is a vector, in Fortran: pf_active%coil(i1). For each coil, the current is a “data+time” structure, i.e. each coil current has its own timebase:
- pf_active%coil(i1)%current%data(itime)
- pf_active%coil(i1)%current%time(itime)
- These Case 1 AoS are used essentially in IDSs representing tokamak subsystems
- Case 1: The structure contains asynchronous nodes, e.g. PF coils may be acquired with different timebases. See pf_active/coil is a vector, in Fortran: pf_active%coil(i1). For each coil, the current is a “data+time” structure, i.e. each coil current has its own timebase:
- Two kinds of arrays of structure are distinguished:
- Case 2: The coordinate of the array of structure is a timebase. An index of the array of structure represents a time slice. As a consequence, the structure contains only dynamic and synchronous nodes, e.g. equilibrium/time_slice(itime). This time slice representation allows the size of the children to vary as a function of time (e.g. variable grid size).
- These Case 2 AoS are used essentially in IDSs representing abstract physical quantities.
...