Femtet2026.0 Help/Manual
 

Home / Show Results / VTU output data structure of Femtet

VTU output data structure of Femtet

This page describes the basic structure of VTU (VTK XML UnstructuredGrid) files output by Femtet and explains the meaning of each data item.

Femtet can output analysis result fields in VTU format. A VTU can be used with VTK-compatible visualization software (e.g., ParaView) and for data processing in Python.

There are two ways to create VTY files.

  • [Tools]-[Output Results Field to a VTU]
  • Command [CFemtet.OutputResultFieldVTU] in Femtet Macros
Note
VTU is using meshing data format. Stores node coordinates, element connectivity, nodal results, element results, body IDs, material names, and other related data.

1. General Configuration

Note : Even when 2nd-order Elements are used in the analysis, the mesh is exported in VTU as 1st-order Elements. The information at the middle nodes are not saved in VTU file.

VTU output data Block of Femtet is as follows.

Block Contents
FieldData Contains all metadata of file, a body attribute name table, and a material name table.
Points Contains all node coordinates.
Cells Contains all elements connectivity information, offsets, element types.
PointData Contains analysis result related all nodes.
CellData Stores element results, body IDs.
<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian">   <UnstructuredGrid>     <Piece NumberOfPoints="1008" NumberOfCells="458">       <FieldData> ... </FieldData>       <Points> ... </Points>       <Cells> ... </Cells>       <PointData> ... </PointData>       <CellData> ... </CellData>     </Piece>   </UnstructuredGrid> </VTKFile>

2. FieldData : all metadata of file

FieldData contains not related nodes or elements.

Name of DataArray Note
Producer VTU File Output source information ex : Femtet
FileVersion Femtet Version of VTU format
BodyAttrNameTable BodyID Table mapping to body attribute names.
MaterialNameTable BodyID Table mapping to material names.
<FieldData>   <DataArray type="String" Name="Producer"    NumberOfTuples="1" format="ascii">     Femtet   </DataArray>   <DataArray type="String" Name="FileVersion"    NumberOfTuples="1" format="ascii">     1.0.0   </DataArray>   <DataArray type="String" Name="BodyAttrNameTable"    NumberOfTuples="2" format="ascii">     VOL1     VOL2   </DataArray>   <DataArray type="String" Name="MaterialNameTable"    NumberOfTuples="2" format="ascii">     002_Au     500_SUS301   </DataArray> </FieldData>
In this example, BodyID=0 indicates VOL1 / 002_Au, and BodyID=1 indicates VOL2 / 500_SUS301.

3. Points : Node coordinates

Points contains all node coordinates. NumberOfComponents="3"indicates node coordinates consist of x y z value.

<Points>   <DataArray type="Float32" NumberOfComponents="3"    format="ascii">     5 20 50     5 17.5 50     ...   </DataArray> </Points>
Items Notes
type="Float32" Coordinate values are stored as 32-bit floating-point numbers.
NumberOfComponents="3" Indicates three coordinates (X, Y, Z) per node.
NumberOfPoints="1008" This example contains 1008 nodes.

4. Cells : Element connectivity

Cells stores node IDs and element types for each element.

Name of DataArray Note
connectivity Sequence of node IDs defining each element. Node ID refers node number in the list of Points.
offsets Cumulative offsets indicating the end position of each element within the connectivity.
types Element type of VTK. In this example, 10 shows tetrahedral elements (VTK_TETRA).
<Cells>   <DataArray type="Int32" Name="connectivity"    format="ascii">     983 979 952 961 ...   </DataArray>   <DataArray type="Int32" Name="offsets"    format="ascii">     10     20     ...   </DataArray>   <DataArray type="UInt8" Name="types"    format="ascii">     10     10     ...   </DataArray> </Cells>

5. PointData : Results associated with nodes.

PointData contains the result data on each nodes. Outputs scalar nodal results (e.g., temperature, potential), displacements, and displaced coordinates.

<PointData Scalars="WATT_TEMPERATURE[deg]-Scalar-Mode0">   <DataArray type="Float32" Name="WATT_TEMPERATURE[deg]-Scalar-Mode0"    format="ascii">     100     100     ...   </DataArray> </PointData>
Example Contents
WATT_TEMPERATURE[deg]-Scalar-Mode0 Temperature data on node.
Total number of data in PointDatais the same number of NumberOfPoints.

6. CellData : Results associated with elements and BodyID

CellData contains the results data associated with elements. Vector results (e.g., heat flux, temperature gradient), tensor results (e.g., stress), and element BodyID are output.

<CellData Vectors="WATT_HEAT_CURRENT[W/m2]-Vector-Mode0">   <DataArray type="Float32" Name="WATT_HEAT_CURRENT[W/m2]-Vector-Mode0"    NumberOfComponents="3" format="ascii">     1.1641532e-10 -1.1641532e-10 -630000     0 5.8207661e-11 -630000     ...   </DataArray>   <DataArray type="Int32" Name="BodyID"    format="ascii">     0     0     ...     1     1   </DataArray> </CellData>
Name of DataArray Contents
WATT_HEAT_CURRENT[W/m2]-Vector-Mode0 Heat flux vectors associated with elements. NumberOfComponents="3" shows result data has X/Y/Z components.
WATT_TEMPERATURE_GRADIENT[deg/m]-Vector-Mode0 Heat gradient vectors associated with elements.
BodyID ID representing the body to which the element belongs. Corresponds to the name table in FieldData.
Each array in CellData contains the same number of values as NumberOfCells.

7. Mapping between BodyID and the name table

BodyIDis output per element. Body attribute names and material names are stored in the name table within FieldData.

BodyID BodyAttrNameTable MaterialNameTable
0 VOL1 002_Au *
1 VOL2 500_SUS301 *

If an element's BodyID is 1, the element corresponds to body attribute nameVOL2 and material name 500_SUS301.

8. How to read result names

Result names in Femtet generally follow this format.

Label names in [Solver_physical_Properties] is the same as in [User Defined Field] Seting.

[Solver name]_[physical Properties]_[Data Type]_[Mode Number]
Example Note
WATT_TEMPERATURE[deg]-Scalar-Mode0 Thermal analysis : Scalar temperature result, unit: deg, mode number 0 (for a transient analysis, the result at 0 s).
WATT_HEAT_CURRENT[W/m2]-Vector-Mode0 Thermal analysis : Heat flux vectors result, unit: W/m2, mode number 0 (for a transient analysis, the result at 0 s).
-Scalar- Single component of Scalar Values
-Vector- Three components of Vector Values In ParaView, it may be displayed as Magnitude, but internally the data retains X/Y/Z components.
-Tensor- Nine components of Tensor Values The component order is typically xx, xy, xz, yx, yy, yz, zx, zy, zz.

9. How to check in ParaView

Color by BodyID.

  1. Open a VTU file in ParaView.
  2. Select Apply
  3. Select BodyID from the Coloring drop down menu.

Show specific bodies by BodyID

  1. Select a target Data.
  2. Select Filters -> Threshold.
  3. Scalars are set with BodyID.
  4. Specify the range of BodyID values to display. For example, to display only BodyID 0 set both the lower and upper bounds to 0.

Check the Vector Components

In ParaView, vector fields are often shown by their magnitude as default even coloring is requested. To view X/Y/Z components, select the corresponding vector component in the Coloring settings.

Note
BodyAttrNameTable and MaterialNameTable in FieldData are not displayed directly in ParaView’s standard Coloring or Threshold controls. For coloring and extraction, use the BodyID stored in CellData.

10. Details of data number

Data Number of values
Points NumberOfPoints pcs This example contains 1008 nodes.
PointData NumberOfPoints pcs This example, each array contains 1008 nodes.
Cells/types NumberOfCells pcs This example contains 458 nodes.
CellData NumberOfCells pcs This example, each array contains 458 nodes.
FieldData Overall file information. These are do not directly correspond to the number of nodes or elements.