Chapter 3
XML Session File

The Nektar++ native file format is compliant with XML version 1.0. The root element is NEKTAR which contains a number of other elements which describe configuration for different aspects of the simulation. The required elements are shown below:

1<NEKTAR> 
2  <GEOMETRY> 
3    ... 
4  </GEOMETRY> 
5  <EXPANSIONS> 
6    ... 
7  </EXPANSIONS> 
8  <CONDITIONS> 
9    ... 
10  </CONDITIONS> 
11  ... 
12</NEKTAR>

The different sub-elements can be split across multiple files, however each file must have a top-level NEKTAR tag. For example, one might store the geometry information separate from the remaining configuration in two separate files as illustrated below:

geometry.xml

1<NEKTAR> 
2  <GEOMETRY> 
3    ... 
4  </GEOMETRY> 
5</NEKTAR>

conditions.xml

1<NEKTAR> 
2  <CONDITIONS> 
3    ... 
4  </CONDITIONS> 
5  <EXPANSIONS> 
6    ... 
7  </EXPANSIONS> 
8  ... 
9</NEKTAR>

Note: When specifying multiple files, repeated first-level XML sub-elements are not merged. The sub-elements from files appearing later in the list will, in general, override those elements from earlier files.

For example, the NekMesh utility will produce a default EXPANSIONS element and blank CONDITIONS element. Specifying a custom-written XML file containing these sections after the file produced by NekMesh will override these defaults.

The exception to this rule is when an empty XML sub-element would override a non-empty XML sub-element. In this case the empty XML sub-element will be ignored. If the custom-written XML file containing CONDITIONS were specified before the file produced by NekMesh, the empty CONDITIONS tag in the latter file would be ignored.

 3.1 Geometry
  3.1.1 Vertices
  3.1.2 Edges
  3.1.3 Faces
  3.1.4 Element
  3.1.5 Curved Edges and Faces
  3.1.6 Composites
  3.1.7 Domain
 3.2 Expansions
 3.3 Refinements
 3.4 Conditions
  3.4.1 Parameters
  3.4.2 Time Integration Scheme
  3.4.3 Solver Information
  3.4.4 Variables
  3.4.5 Global System Solution Algorithm
  3.4.6 Boundary Regions and Conditions
  3.4.7 Functions
  3.4.8 Quasi-3D approach
 3.5 Filters
  3.5.1 Phase sampling
  3.5.2 Aerodynamic forces
  3.5.3 Benchmark
  3.5.4 Cell history points
  3.5.5 Checkpoint cell model
  3.5.6 Checkpoint fields
  3.5.7 Electrogram
  3.5.8 Offset Phase
  3.5.9 Hilbert Transform Phase based on FFTW
  3.5.10 Error
  3.5.11 Integral
  3.5.12 Integral
  3.5.13 FieldConvert checkpoints
  3.5.14 History points
  3.5.15 Kinetic energy and enstrophy
  3.5.16 Mean values
  3.5.17 Modal energy
  3.5.18 Moving body
  3.5.19 Moving average of fields
  3.5.20 One-dimensional energy
  3.5.21 Reynolds stresses
  3.5.22 Time-averaged fields
  3.5.23 ThresholdMax
  3.5.24 ThresholdMin value
  3.5.25 Maximun/minimun fields
  3.5.26 Python script
  3.5.27 Body-fitted velocity fields
  3.5.28 Lagrangian points Tracking
 3.6 Forcing
  3.6.1 Absorption
  3.6.2 Body
  3.6.3 Synthetic turbulence generator
  3.6.4 MovingReferenceFrame
  3.6.5 Programmatic
  3.6.6 Noise
 3.7 Coupling
  3.7.1 File
  3.7.2 Cwipi
 3.8 Expressions
  3.8.1 Variables and coordinate systems
  3.8.2 Performance considerations
 3.9 Movement
  3.9.1 Non-conformal meshes
  3.9.2 Sliding Mesh