XFlow2022 Golden UserGuide
XFlow2022 Golden UserGuide
2 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
Table of Contents
1 Legal Notices 9
2 Introduction 11
2.1 Using ...................................................................................................................................
this guide 11
2.2 ................................................................................................................................... 12
Conventions
2.2.1 Style
................................................................................................................................................................... 12
2.2.2 Units
................................................................................................................................................................... 13
2.2.3 Coordinate
...................................................................................................................................................................
system 13
2.2.4 Constants
................................................................................................................................................................... 14
3 Getting Started 15
3.1 ...................................................................................................................................
Graphical User Interface 15
3.1.1 Windows
...................................................................................................................................................................
management 16
3.1.1.1 Position.................................................................................................................................................
and size 16
3.1.1.2 Show/Hide
................................................................................................................................................. 16
3.1.1.3 Shortcuts
................................................................................................................................................. 17
3.1.2 Project
...................................................................................................................................................................
Manager 18
3.1.3 Main
...................................................................................................................................................................
menu 19
3.1.4 Toolbar
................................................................................................................................................................... 21
3.1.5 Project
...................................................................................................................................................................
Tree 24
3.1.5.1 Editing ................................................................................................................................................. 25
3.1.5.2 Functions
................................................................................................................................................. 26
3.1.5.2.1 User-defined
...........................................................................................................................................
variables 30
3.1.5.2.2 Tabular
...........................................................................................................................................
data 31
3.1.5.2.3 Unstructured
...........................................................................................................................................
Mesh 33
3.1.5.3 Trees management
................................................................................................................................................. 34
3.1.5.4 Search in
.................................................................................................................................................
Project Tree 34
3.1.6 Message
...................................................................................................................................................................
View 35
3.1.6.1 Simulation
.................................................................................................................................................
progress 36
3.1.6.2 Warnings
................................................................................................................................................. 39
3.1.6.3 Errors ................................................................................................................................................. 40
3.1.7 Graphic
...................................................................................................................................................................
View 41
3.1.7.1 Legend ................................................................................................................................................. 44
3.1.7.2 Gizmos ................................................................................................................................................. 45
3.1.8 Function
...................................................................................................................................................................
Viewer 46
3.1.9 Transform
...................................................................................................................................................................
Tool 48
3.1.10 Time
...................................................................................................................................................................
controls 48
3.2 ...................................................................................................................................
Executing XFlow 49
3.3 Project...................................................................................................................................
modes 50
3.4 XFlow ...................................................................................................................................
files 53
3.5 ................................................................................................................................... 56
Preferences
3.5.1 Engine
................................................................................................................................................................... 57
3.5.2 Geometry
................................................................................................................................................................... 58
3.5.3 Graphic
...................................................................................................................................................................
View 59
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 3
3.5.3.1 Environment
................................................................................................................................................. 60
3.5.3.2 Lights ................................................................................................................................................. 61
3.5.3.3 Performance-Quality
................................................................................................................................................. 62
3.5.4 Project
...................................................................................................................................................................
Tree 65
3.5.5 Application
................................................................................................................................................................... 66
4 Geometry 69
4.1 Create...................................................................................................................................
entity 69
4.2 Import...................................................................................................................................
and export geometry 73
4.3 Select ...................................................................................................................................
geometry 76
4.3.1 Selection
...................................................................................................................................................................
in Graphic View 76
4.3.2 Selection
...................................................................................................................................................................
in Project Tree 77
4.4 ................................................................................................................................... 78
Visualisation
4.4.1 Visualisation
...................................................................................................................................................................
material 79
4.4.2 Visualisation
...................................................................................................................................................................
mode 81
4.4.3 Back-face
...................................................................................................................................................................
culling 82
4.4.3.1 Surface .................................................................................................................................................
normals 82
4.4.3.1.1 Reorientate
...........................................................................................................................................
normals 83
4.4.3.1.2 Reverse
...........................................................................................................................................
orientation 83
4.5 ...................................................................................................................................
Geometry Information 83
4.5.1 Normals
................................................................................................................................................................... 84
4.5.2 Local
...................................................................................................................................................................
axes 85
4.5.3 Geometrical
...................................................................................................................................................................
properties 85
4.5.4 Parametric
...................................................................................................................................................................
hierarchy 86
4.5.5 Dimensions
................................................................................................................................................................... 87
4.5.6 Check
...................................................................................................................................................................
holes 88
4.6 Modify...................................................................................................................................
geometry 89
4.6.1 Translation
................................................................................................................................................................... 89
4.6.2 Rotation
................................................................................................................................................................... 91
4.6.3 Scale
................................................................................................................................................................... 93
4.6.4 Symmetry
................................................................................................................................................................... 94
4.6.5 Duplicate
................................................................................................................................................................... 95
4.6.6 Replace
................................................................................................................................................................... 96
4.6.7 Split................................................................................................................................................................... 97
4.6.8 Merge
................................................................................................................................................................... 97
4.6.9 Repair
...................................................................................................................................................................
geometry 98
4.6.9.1 Hole filling
.................................................................................................................................................
tool 98
4.7 ...................................................................................................................................
Delete geometry 102
4 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5.2 ................................................................................................................................... 121
Environment
5.2.1 Domain
...................................................................................................................................................................
type 125
5.2.2 Gravitational
...................................................................................................................................................................
potential 127
5.2.3 External
...................................................................................................................................................................
acceleration laws 127
5.2.4 Initial
...................................................................................................................................................................
conditions 128
5.2.5 Volumetric
...................................................................................................................................................................
Heat Source 130
5.2.6 Reference
...................................................................................................................................................................
length 130
5.2.7 Reference
...................................................................................................................................................................
area 131
5.2.8 Reference
...................................................................................................................................................................
velocity 132
5.2.9 Water
...................................................................................................................................................................
channel 133
5.2.9.1 Waves................................................................................................................................................. 134
5.2.10 Liquid
...................................................................................................................................................................
regions 136
5.3 ................................................................................................................................... 138
Materials
5.3.1 Name
................................................................................................................................................................... 139
5.3.2 Type
................................................................................................................................................................... 139
5.3.3 Molecular
...................................................................................................................................................................
weight 139
5.3.4 Speed
...................................................................................................................................................................
of sound 139
5.3.5 Reference
...................................................................................................................................................................
density 139
5.3.6 Operating
...................................................................................................................................................................
temperature 139
5.3.7 State
...................................................................................................................................................................
equation 140
5.3.8 Viscosity
...................................................................................................................................................................
models 140
5.3.8.1 Newtonian
.................................................................................................................................................
fluid 141
5.3.8.2 Non-Newtonian
.................................................................................................................................................
fluid 142
5.3.9 HTC
...................................................................................................................................................................
Estimation 144
5.3.10 Thermal
...................................................................................................................................................................
conductivity 145
5.3.11 Specific
...................................................................................................................................................................
heat capacity 145
5.3.12 Adiabatic
...................................................................................................................................................................
index 146
5.3.13 Reference
...................................................................................................................................................................
pressure 146
5.3.14 Interactions
................................................................................................................................................................... 146
5.4 ................................................................................................................................... 147
Geometry
5.4.1 Entities
................................................................................................................................................................... 148
5.4.1.1 Behaviour
................................................................................................................................................. 150
5.4.1.2 Boundary
.................................................................................................................................................
conditions 152
5.4.1.2.1 Wall ...........................................................................................................................................
boundary condition 153
5.4.1.<
%NUMBERING4%>.<
%NUMBERING5%>.<
%NUMBERING6%>
......................................................................................................................................
Virtual moving wall boundary 156
5.4.1.2.2 Inlet ...........................................................................................................................................
boundary conditions 156
5.4.1.2.3 Outlet
...........................................................................................................................................
boundary conditions 157
5.4.1.2.4 Other...........................................................................................................................................
boundary conditions 158
5.4.1.2.5 LODI........................................................................................................................................... 159
5.4.1.3 Surfaces
................................................................................................................................................. 161
5.4.1.4 Children
................................................................................................................................................. 162
5.4.1.5 Thermal
.................................................................................................................................................
boundary conditions 162
5.4.1.6 Conjugate
.................................................................................................................................................
heat transfer 163
5.4.1.7 Structural
.................................................................................................................................................
coupling 167
5.4.2 Arbitrary
...................................................................................................................................................................
reference frame 168
5.4.3 Cables
................................................................................................................................................................... 170
5.4.4 Joints
................................................................................................................................................................... 173
5.5 ................................................................................................................................... 174
Simulation
5.5.1 Time
................................................................................................................................................................... 175
5.5.2 Lattice
...................................................................................................................................................................
discretization 183
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 5
5.5.3 Store
...................................................................................................................................................................
data 190
6 Computation 199
6.1 ................................................................................................................................... 199
Run computation
6.1.1 Generate
...................................................................................................................................................................
launch scripts 200
6.1.2 Generate
...................................................................................................................................................................
co-sim configuration file 200
6.1.3 Advanced
...................................................................................................................................................................
computation 201
6.1.3.1 Serial computation
................................................................................................................................................. 201
6.1.3.2 Distributed
.................................................................................................................................................
computation 204
6.2 ...................................................................................................................................
Computation progress 208
6.3 Stop ...................................................................................................................................
computation 209
6.4 ...................................................................................................................................
Process manager 210
6.5 ...................................................................................................................................
File-based computation control 211
7 Post-Processing 213
7.1 ...................................................................................................................................
Load/unload simulation data 213
7.2 ...................................................................................................................................
Post-Processing tree 213
7.2.1 General
................................................................................................................................................................... 216
7.2.1.1 Data ................................................................................................................................................. 216
7.2.1.2 Interpolation
................................................................................................................................................. 217
7.2.1.3 Show ................................................................................................................................................. 218
7.2.2 Cutting
...................................................................................................................................................................
planes 222
7.2.2.1 3d field................................................................................................................................................. 224
7.2.2.2 Vectors................................................................................................................................................. 225
7.2.2.3 Surface.................................................................................................................................................
Field distribution 225
7.2.2.4 Domain.................................................................................................................................................
structure 227
7.2.2.5 Markers
................................................................................................................................................. 229
7.2.3 Isosurfaces
................................................................................................................................................................... 230
7.2.4 Stream
...................................................................................................................................................................
tracers 231
7.2.4.1 Passive................................................................................................................................................. 233
7.2.4.2 DPM ................................................................................................................................................. 236
7.2.4.2.1 Modeling
...........................................................................................................................................
discrete phase 239
7.2.5 Plot
...................................................................................................................................................................
lines 239
7.2.6 Sensors
................................................................................................................................................................... 240
7.2.7 Surface
...................................................................................................................................................................
integrals 242
7.2.8 Volume
...................................................................................................................................................................
integrals 245
7.2.9 Custom
...................................................................................................................................................................
fields 247
7.2.10 Entities
................................................................................................................................................................... 247
7.2.11 Cameras
................................................................................................................................................................... 248
7.2.12 Views
................................................................................................................................................................... 249
7.3 ...................................................................................................................................
Visualisation fields 250
7.4 ...................................................................................................................................
Import/Export post-processing setup 252
7.5 ................................................................................................................................... 252
Animation
7.5.1 Basic
...................................................................................................................................................................
animation 252
7.5.2 Advanced
...................................................................................................................................................................
animation 254
7.5.3 Keyframes
...................................................................................................................................................................
animation 257
7.6 ...................................................................................................................................
Function Viewer 259
7.7 ...................................................................................................................................
Export data 264
6 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation 271
8.1 ...................................................................................................................................
Import ADAMS simulation 271
8.2 ................................................................................................................................... 272
FMI Standard
8.3 ................................................................................................................................... 276
CSS Co-simulation
8.3.1 Abaqus
................................................................................................................................................................... 278
8.3.2 Simpack
................................................................................................................................................................... 284
8.4 ................................................................................................................................... 292
Nastran
8.4.1 2-way
...................................................................................................................................................................
OpenFSI 292
8.4.2 1-way
...................................................................................................................................................................
Thermal 300
Index 325
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 7
8 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
1 Legal Notices
1 Legal Notices
SIMULIA XFlow is © 2011 - 2021 Dassault Systèmes España, SLU.
Trademarks
XFlow, 3DEXPERIENCE, the Compass logo and the 3DS logo, CATIA, SOLIDWORKS, ENOVIA,
DELMIA, SIMULIA, GEOVIA, EXALEAD, 3D VIA, BIOVIA, NETVIBES, and 3DEXCITE are
commercial trademarks or registered trademarks of Dassault Systèmes, a French “société
européenne” (Versailles Commercial Register # B 322 306 440), or its subsidiaries in the U. S. and/
or other countries. All other trademarks are owned by their respective owners. Use of any Dassault
Systèmes or its subsidiaries trademarks is subject to their express written approval.
DS Offerings and services names may be trademarks or service marks of Dassault Systèmes or its
subsidiaries.
Legal Notices
XFlow and this documentation may be used or reproduced only in accordance with the terms of the
software license agreement signed by the customer, or, absent such an agreement, the then current
software license agreement to which the documentation relates.
This documentation and the software described in this documentation are subject to change without
prior notice.
Dassault Systèmes and its subsidiaries shall not be responsible for the consequences of any errors or
omissions that may appear in this documentation.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 9
10 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
2 Introduction
2 Introduction
XFlow™ is a powerful Computational Fluid Dynamics (CFD) software designed for engineering analysis. It
uses a proprietary, particle-based, fully Lagrangian approach which can easily handle traditionally complex
problems such as aerodynamics, aero-acoustics, moving parts, free surface flows and fluid-structure
interaction.
Meshless approach to CFD: The meshless approach within XFlow is particle-based and fully Lagrangian,
which means that classic fluid domain meshing is not required. Also surface complexity is not a limiting
factor. XFlow can handle moving bodies and deformable parts, and is tolerant to the quality of the input
geometry.
Particle-based kinetic solver: XFlow features a novel particle-based kinetic algorithm that resolves the
Boltzmann and the compressible Navier-Stokes equations. The solver features state-of-the-art Large Eddy
Simulation (LES) modelling, and advanced non-equilibrium wall models.
Single consistent wall model: XFlow uses a unified non-equilibrium wall function in order to model the
boundary layer. This wall model works in all cases, meaning it is not necessary to select between different
algorithms and deal with the different limitations of each scheme.
Adaptive wake refinement: The XFlow engine automatically adapts the resolved scales to the user's
requirements, refining the quality of the solution near the walls and dynamically adapting to the wake while the
flow develops.
Advanced modelling capabilities: XFlow is capable of handling large and complex models, and greatly
simplifies the setup of analysis with moving parts, hierarchical structures, enforced or rigid body motion, and
contact modelling.
Advanced analysis capabilities: The XFlow solver also features thermal analysis, conjugated heat transfer,
transonic and supersonic flows, flow through porous media, non-Newtonian flows, and complex boundary
conditions including the porous jump and fan models.
Near-linear scalable performance: XFlow is fast and efficient, even on a standard desktop PC. It is fully
parallelized for multi-core technology with near-linear scalability.
Easy-to-use interface: XFlow provides a unique and novel interface and working environment for the user,
including pre-processor, solver and post-processor fully integrated in the same environment, state-of-the-art
visualization, and configurable layout.
This guide should be used in conjunction with the Tutorial Guide (recommended for new users) and the
Validation Guide.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 11
2.2 Conventions
2.2 Conventions
In this guide the following conventions are used:
Style
Units
Coordinate system
Constants
2.2.1 Style
Typographical conventions are used to facilitate the reading:
Menu options are indicated in bold black.
Names of windows are in italics.
Items and options in the Project Tree are indicated in Verdana font.
Child items in the Project Tree are indicated with an arrow bullet, as:
Child item
Links are underlined in blue.
Keys are indicated in bold blue.
Cascading menus are represented as: Menu1 > Menu2 > Menu3
Examples are enclosed in tables:
Example:
Additional explanations and recommendations are enclosed in a message box, as for example:
Tip: Explains an easy way to do a task or just to improve the work flow.
Please note: Contains a brief explanation on what must be taken into account for an specific task.
12 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
2 Introduction
2.2.2 Units
Units should be given in accordance with the International System of Units (SI), as shown in the table below:
Please note: Angles are given in degrees, while angular velocities are given in radians per second.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 13
2.2 Conventions
2.2.4 Constants
Standard constants used by XFlow are listed in the table below:
14 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
3 Getting Started
In this chapter a short Getting Started guide is presented, covering the following topics:
How to open XFlow: See Executing XFlow
How to use XFlow: See Project modes.
Introduction to the common XFlow file extensions: See XFlow files
How to customize XFlow: see Preferences
As it is shown in the figure above, the GUI is composed of the following elements:
1. Main menu
2. Toolbar
3. Project tree
4. Message view
5. Graphic view
6. Function viewer
7. Transform tool
8. Time controls
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 15
3.1 Graphical User Interface
GUI window
GUI windows can be moved, resized and shown or hidden; some of them can even be managed using
shortcuts.
The windows can be resized by dragging their borders while clicking the left mouse button.
The windows can be moved to a different location just by a drag-and-drop, clicking (left mouse button) on
the title bar. XFlow will highlight the positions where the window can fit, it can be either over an existing
window, at a new location or detached.
When a window is moved on another existing window, XFlow will merge them and tabulations will appear at
the bottom of the window to switch from one to another:
Once the user has customized the layout, it can be saved in a *.lay file:
Main menu > Views > Layout > Save layout
3.1.1.2 Show/Hide
A list of the different available windows will appear if you click the right mouse button on the title bar or the
toolbar of the interface as shown above. This list allows the user to show/hide windows by ticking/unticking the
corresponding checkbox .
16 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Please note: The GUI layout allows only one instance of the Project Tree, Message View and Transform
tool windows, while the Graphic View and Function Viewer windows can be present more than once.
Consequently, closing the Project Tree, the Message View or the Transform tool is equivalent to hide them;
they can be later recovered as explained above.
3.1.1.3 Shortcuts
Shortcuts by function
File
Ctrl + n New project
Ctrl + l Load project
Ctrl + s Save project
Ctrl + i Import geometry
Ctrl + e Export (selected) geometry
Ctrl + k Create/Delete keyframe (In keyframe mode)
Alt + k Edit keyframe mode
Alt + r Remove all keyframe (In keyframe mode)
Analysis information
Alt + U Hide time and number of elements info from the Graphic View
F Fit to screen. If a geometry is selected (either from the Graphic View or the
Project Tree) it will fit to the geometry.
Mouse shortcuts
Left mouse button Applies the selection mode chosen in the Toolbar selection filter, in
Graphic View
Pan in Function Viewer
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 17
3.1 Graphical User Interface
Please note: The above shortcuts corresponds to the standard keyboard configuration of Microsoft
Windows. Linux users might need to press Ctrl+Shift instead of Alt. If this is the case, the user can
change the "Movement key" to Alt in the "Window Preferences" of the Linux distribution.
The Project Manager is a window that automatically opens when XFlow starts up in order to get started with a
project.
Tip: You can hide this window at start-up by switching off the "Show on XFlow startup" button.
Template project
The template project allows to load either a blank project with all default options, some predefined set of
project setup for some typical workflows or a custom project setup. The predefined templates are intended to
guide the user in setting up a project faster, however inputs should be reviewed and modified in agreement to
the intended simulation.
18 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Existing project
This shows a list of recently opened project and is a shortcut to quickly reload a project on which you worked
recently.
File >
> New project: To create a new project.
> Load project: To open an existing project file.
> Recent projects: To open a project that has recently been opened.
> Project manager: To open the project manager
> Save project: To save the current project.
> Save project as...: To save the current project at the specified path.
> Exit: To quit and close XFlow.
Geometry >
> Create object: To create a cylinder, sphere, cone, torus, box, prism or NACA 4digits.
> Import a new geometry: To import a geometry from a file.
> Export geometry: To export a geometry of the current project to an external file.
> Selection filter: To change the selection mode: view only, object, shell, face, mesh, edge and vertex.
> Show/hide holes: To show/hide the holes (open edges) present in the geometry.
> Dimensions: To show/hide the dimensions of the selected geometry.
> Symmetry: To create a symmetric object from the one selected.
> Duplicate: To duplicate the selected object.
> Split in connected shapes: To split an object in its parts.
> Split in shapes according to orientation: To split an object in its parts.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 19
3.1 Graphical User Interface
Post-Processing >
> Create cutting plane: To create a new cutting plane.
> Create isosurface: To create a new isosurface.
> Create stream tracer: To create a new stream tracer.
> Create custom field: To create a user-defined field for the post-process.
> Numerical analysis: To create tools to measure numerical data.
> Create sensor: To create a new sensor.
> Create plot line: To create a new plot line.
> Create surface integral: To create a new surface integral.
> Create volume integral: To create a new volume integral.
> Set probe by mouse: To create a new probe in a location set using the mouse selection.
> Set sensor by mouse: To create a new sensor in a location set using the mouse selection.
> Import from file: To import sensors and probes location from file.
> Sensors: To import sensors location from file.
> Probes: To import probes location.
> Individually: To import probes location from file individually.
> Grouped: To import probes location from file grouped.
> Create camera: To create a new camera.
> Create clipping plane: To create a clipping plane.
> Animation: To create a sequence of images with the evolution of the results.
> Look up value: To get the local value of the visualization field at the point given by the mouse position.
> Import post-processing setup: To import a predefined post-processing layout and setup from an .xfpp
file.
> Export post-processing setup: To export the current post-processing layout and post-processing
setup to an .xfpp file.
Options >
> Setup progressive wave boundary conditions: To set a progressive wave in the inlet boundary
condition and the corresponding consistent initial free surface field, in free surface external flows.
> Import ADAMS simulation: To import a kinematic from MSC.ADAMS. Only available in Labs mode.
> User-defined variables: To create user-defined variables that can be used in the laws definitions.
> Preferences: To set up the engine settings and the appearance variables of the GUI.
3DEXPERIENCE >
20 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
> Load 3DEXPERIENCE Model: To load a model from the 3DEXPERIENCE platform.
> Save Model to 3DEXPERIENCE: To save a model into the 3DEXPERIENCE platform.
> Create 3DEXPERIENCE Model Revision: To create a new revision of a model from the
3DEXPERIENCE platform.
> Save results to 3DEXPERIENCE: To upload simulation results on the 3DEXPERIENCE platform.
> Import product/part from 3DEXPERIENCE: To load a geometry from the 3DEXPERIENCE platform.
> Reset the 3DEXPERIENCE Connection: To reset 3DEXPERIENCE platform credentials and
collaborative space.
Please note: The options involving the 3DEXPERIENCE will only be available if the 3DEXPERIENCE and
XFlow role (XXF) are installed.
Window >
> Graphic View >
> Fast view: To allow a quick navigation through the Graphic View when moving the camera's point of
view (orbit, pan or zoom) through a bounding box representation of the geometry objects.
> Zoom window mode: To zoom the area selected by the mouse.
> Layout >
> Save layout: To save the current layout of the GUI into a .lay file.
> Load layout: To load a .lay file to recover a saved layout of the GUI.
> Default layout: To load the XFlow default GUI layout.
> New Graphic View: To create a new floating Graphic View.
> New Function Viewer: To create a new floating Function Viewer.
3.1.4 Toolbar
Toolbar icons provide shorcuts to the most useful utilities of XFlow, otherwise accessible from the Main menu
.
Several toolbars are available in XFlow, each of them can be managed independently by dragging it while
clicking the left mouse button; as the toolbar is dragged over the GUI the positions where it could be placed
are automatically highlighted.
The list of the toolbars will appear if you click the right mouse button on any title bar or toolbar of the
interface. This list allows the user to show/hide groups of toolbar by ticking/unticking the corresponding
checkbox .
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 21
3.1 Graphical User Interface
Toolbar File
Toolbar Geometry
Import a new
Main menu > Geometry > Import a new geometry
geometry
Export geometry Main menu > Geometry > Export geometry
22 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Create cylinder Main menu > Geometry > Create object > Create cylinder
Create sphere Main menu > Geometry > Create object > Create sphere
Create cone Main menu > Geometry > Create object > Create cone
Create torus Main menu > Geometry > Create object > Create torus
Create box Main menu > Geometry > Create object > Create box
Create prism Main menu > Geometry > Create object > Create prism
Create NACA
Main menu > Geometry > Create object > Create NACA (4digit)
(4digit)
Create vertex Main menu > Geometry > Create object > Create vertex
Create reference
Main menu > Geometry > Create object > Create reference frame
frame
Create line Main menu > Geometry > Create object > Create line
Create curve Main menu > Geometry > Create object > Create curve
Create surface Main menu > Geometry > Create object > Create surface
View only Main menu > Geometry > Selection filter > View only
Object filter Main menu > Geometry > Selection filter > Object filter
Shell filter Main menu > Geometry > Selection filter > Shell filter
Face filter Main menu > Geometry > Selection filter > Face filter
Wire filter Main menu > Geometry > Selection filter > Wire filter
Edge filter Main menu > Geometry > Selection filter > Edge filter
Vertex filter Main menu > Geometry > Selection filter > Vertex filter
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 23
3.1 Graphical User Interface
Set probe by Main menu > Post-Processing > Numerical analysis > Set probe by mouse
mouse
Set sensor by Main menu > Post-Processing > Numerical analysis > Set sensor by mouse
mouse
Animation Main menu > Post-Processing > Animation
Keyframe mode Main menu > Post-Processing > Animation > Edit keyframe mode
Toolbar Windows
New Graphic View Main menu > Views > New Graphic View
New Function
Main menu > Views > New Function Viewer
Viewer
Environment: This category contains two main folders: (a) Engine - to select the XFlow engine (
); and (b) Environment - to define the problem boundary conditions, initial solution, and external
forces (+Info).
Materials: In this category the thermophysical properties of the fluid have to be defined (+Info).
Geometry: Geometry objects are shown in this data structure. Here, the objects behavior and
boundary conditions are specified (+Info).
Simulation: Control parameters of the numerical simulation are set up in this branch of the Project
Tree (+Info).
24 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Post-processing: Once the simulation is run, the visualization and post-processing options are
shown here (+Info).
Tip: To hide/show all the folders and nodes of the Project Tree structure, right click on the Project Tree
window and a drop-down menu will appear with the following options: Collapse all; Expand all.
3.1.5.1 Editing
1. Drop-down list: Click on the option name or line to display all the options.
4. Square brackets [ ]: The user can define this sort of field with a number, a function, tabular data from
a file, or a string (e.g. the name of a geometry object). Click between the brackets to make the field
editable.
Law editor:
A law editor can be opened if you click on the following icon . The law editor allows you to use
functions and variables to write laws and to preview them. Available functions and variables will be
suggested automatically as you write them. Valid functions will be highlighted in yellow color, and valid
variables will be highlighted in blue.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 25
3.1 Graphical User Interface
Please note: Input fields accept scientific notation (e.g. 0.00001 = 1e-05) and decimals must be given
with dots and not with commas (e.g. 2.5, not 2,5).
Tip: Standard shortcuts for copy (Ctrl + C), cut (Ctrl + X) and paste (Ctrl + V) can be used to edit the
Project Tree.
3.1.5.2 Functions
In the Project Tree, functions may be defined in the square-brackets editable-fields. The syntax of these
functions should be as follows:
Please note: The laws accept scientific notation (e.g. 0.00001 = 1e-05) and decimals must be given with
dots and not with commas (e.g. 2.5, not 2,5).
Tip: User-defined variables can be created from all the variables and functions presented below.
Tip: Use the Law editor in order to preview your functions. Recognized functions will be highlighted in
yellow, and variables in blue.
System variables
In general, a square-bracket field may be defined as a function of the following variables of the system:
t Time
x Spatial coordinate
y Spatial coordinate
z Spatial coordinate
pi Number pi
vx(x,y,z) x-component of velocity at a discrete point of the domain, given by coordinates (x,y,z)
vy(x,y,z) y-component of velocity at a discrete point of the domain, given by coordinates (x,y,z)
vz(x,y,z) z-component of velocity at a discrete point of the domain, given by coordinates (x,y,z)
vmod(x,y,z) velocity magnitude at a discrete point of the domain, given by coordinates (x,y,z)
sp(x,y,z) static pressure at a discrete point of the domain, given by coordinates (x,y,z)
u(x,y,z) temperature at a discrete point of the domain, given by coordinates (x,y,z)
26 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Please note: The coodinates of the discrete point, where the velocity or static pressure is evaluated,
can be also defined as funcions, e.g: vx(sin(t), 0, 0).
Additionally, for post-processing use, custom fields can be defined as a function of the following
variables:
sp Static pressure
rho Reference density
vmod Module of the velocity
vrt Vorticity
qcrit Q-criterion
cf Skin friction coefficient
ti Turbulence intensity
tp Total pressure
u Temperature
viscosity Effective viscosity
nx x-component of the surface
normal
ny y-component of the surface
normal
nz z-component of the surface
normal
Please note: "rho" states for the reference density defined in Project Tree > Materials > Fluid
> Density and it is thus a constant value.
In case of a free surface flow with two phases (Project Tree > Materials > Fluid > Two phase
model: On), "rho" returns the reference density of the first phase (Project Tree > Materials >
Fluid > Density).
For Rigid body dynamics solids, the following variables are further at the user disposal:
px, py, pz Position in X, Y and Z directions
vx, vy, vz Velocity in X, Y and Z directions
ax, ay, az Acceleration in X, Y and Z directions
eux, euy, euz Rotation angles in X,Y and Z directions
wx, wy, wz Angular velocity in X, Y and Z directions
For non-isothermal cases and non-Newtonian user defined fluid, the user can also gain the access to the
temperature variable:
theta Temperature
For non-Newtonian user defined fluids, the viscosity of the fluid may depend on the shear rate:
gamma Shear rate
In multiphase cases:
vof Volume of liquid phase
When using the Discrete-Phase Model (DPM), it can be distinguished between fluid and particle system
variables as follows:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 27
3.1 Graphical User Interface
particle_x
particle_y Particle position in X, Y and Z directions
particle_z
particle_vx
particle_vy Particle velocity in X, Y and Z directions
particle_vz
particle_t Particle time
particle_vN Particle normal velocity during the collision with
solids
particle_vT Particle tangential velocity during the collision with
solids
particle_vNDriftParticle drift normal velocity during the collision with
solids
particle_vTDriftParticle drift normal velocity during the collision with
solids
particle_diam Particle diameter
fluid_px
fluid_py Fluid position in X, Y and Z directions
fluid_pz
fluid_vx
fluid_vy Fluid velocity in X, Y and Z directions
fluid_vz
fluid_sp Fluid static pressure
fluid_vrt Fluid vorticity
In FMI Standard:
fmu() Input variable for FMU computation
Arithmetic operators:
Functions may involve arithmetic operations such as:
+ Sum
- Difference
* Multiplication
/ Division
^ Raise to power
Scalar functions:
Standard scalar functions are also available:
28 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Interpolation functions:
A continuous function can be defined by discrete points interpolation, as follows:
linearinterpolation(t; {t_0,value_0};
Linear interpolation of discrete points
{t_1,value_1}; ...; {t_n,value_n})
cubicinterpolation(t; {t_0,value_0};
Cubic interpolation of discrete points
{t_1, value_1}; ...; {t_n,value_n})
Conditional statements:
if (condition, statement1, If condition is "true": it returns statement1, else: it returns
statement2) statement2.
To express logical relationships in the conditional statement, it can be done using arithmetic operations of
booleans:
if(a AND b) if (a*b)
if(a OR b) if (a+b)
Examples:
if((x>0), 1, 0) It returns a step function with step width 1 at
x= 0
if((x>0)(x<1), 1, 0) It returns a boxcar function, with value 1 for
x between 0 and 1
if(((x>1)+(x<0)), 1,0) It is 1 for x>1 and for x<0, it is 0 for x
between 0 and 1
Please note: If the arithmetic operation is equal to zero then the statement is FALSE, otherwise it is
TRUE.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 29
3.1 Graphical User Interface
Tip: To use this law, the option "enable boundary condition" of the "geometry" should be disabled (+Info).
Please note: The geometry must be watertight and the normal pointing inside.
Please note: This can only be used with fixed geometries, not rigid body dynamics nor enforced
geometries.
User-defined variable can be created to use for the simulation setup as well as the post-processing. They are
extremely helpful to parameterize the project, and for instance modify at only one place the value of a variable
used in several inputs.
The window is divided into two columns: the variable name on the left side, and the variable value on the right
side. To add a new user-defined variable click on "Add" and a new empty line will show. You can remove any
user-defined variable by clicking on "Remove". User-variables are defined for each projects and are saved in
the XFlow project file. All the functions and variables defined in the Functions chapter can be used in the
variable laws.
An example where the pressure coefficient Cp is defined is depicted on the following picture:
30 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
XFlow allows the user to fill an editable field with brackets [ ] by reading tabular data from a text file (.txt, .dat).
There are three options available:
tabulardata (indep_variable_1, ..., indep_variable_n, "file.
No interpolation
dat")
tabulardatalinearinterpolated (indep_variable_1, ...,
Linear interpolation
indep_variable_n, "file.txt")
tabulardatacubicinterpolated (indep_variable_1, ...,
Cubic Interpolation
indep_variable_n, "file.txt")
tabulardatasincinterpolated (indep_variable_1, ...,
Sinc Interpolation
indep_variable_n, "file.txt", order)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 31
3.1 Graphical User Interface
Please note: Although tabulardata files can be set using relative/absolute paths, it is best practice to
store these in the same folder where the .xfp file is located and set only the filename in the tabulardata
function. This is a requirement when it comes to XFlow automatically copying the files to a different
saving destination folder. Moreover, those are included within the .XFZ compressed XFlow project file
format..
Please note: Last column in the table is always the output value.The independent variables of the
function do not need to be ordered by value in the text file. File names have to be text enclosed in quotes.
Tip: Independent variables of the tabulardata can be a function of the system variables.
Examples: tabulardata(2*x,"file.txt")
Tip: In fields with brackets, it can be operated over a function given as tabular-data. This allows the user
to easily rescale the data.Examples: [10*tabulardata(2*x, "file.txt")]
No interpolation
The syntax is the following:
Linear interpolation
The syntax is the following:
XFlow can interpolate linearly the results between each points of the tabular data file.
Cubic interpolation
The syntax is the following:
XFlow can interpolate the results between each points of the tabular data file using a cubic polynomial
function.
Sinc interpolation
The syntax is the following:
32 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
XFlow can also interpolate a tabular data from a file with a "sinc" function (sinc(X) = sin(X) / X), where
the "order" parameter is the number of the sampling points used in the interpolation kernel of the sinc
function. This "order" parameter can take values between 3 and the maximum number of values available
in the tabular data file.
Please note: Sinc interpolation requires a constant sampling spacing between points of the tabular data
file, i.e. sampling rate must be constant.
Sinc function
Please note: The higher the "order" parameter is, the more accurate the interpolation will be. However, a
computational cost may be observed if this parameter is high.
XFlow allows the user to fill an editable field with brackets [ ] by reading an unstructured mesh from a .vtk or .
vtu file.
To read this file, the syntax would be: unstructuredmesh((x,y[,z]), <file name>.vtu/.vtk,
<field name>, [component])
Example:
0.001*unstructuredmesh((0.1 * x, 0.1 * y),"/home/XFlow/CFDruns/results/CFD_run_export.vtu"
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 33
3.1 Graphical User Interface
A drop-down list will appear if right-clicking (right mouse button) in an empty space of any tree, it shows
the tree management options:
Collapse all: collapses all the elements in the tree
Expand all: expands all the elements in the tree
If any object available in the tree has a visibility icon, the drop-down list will also show:
Set all selected visible: this shows all the object selected
Set all selected invisible: this hides all the object selected
Set all visible: this shows all the objects in the present tree
Set all invisible: this hides all the objects in the present tree
Tip: You must right-click on one of the selected shape line in the tree to access this dialog.
The search bar at the bottom of the Project Tree allows to quickly access an element from any tab based on
its name and / or value:
It is possible to filter the search to the name or.value of the elements within the Project Tree if desired.Find
everywhere will apply the search to all fields in the Project Tree.
Besides, the options of Case sensitive and Whole words only search are also available.
34 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
These messages are saved in the log files saved in the simulation folder.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 35
3.1 Graphical User Interface
The Message View is particularly useful to follow the computation progress as it displays the following
information, for each solver iteration:
Sim.Time (Simulation time)
Stability param. (Stability parameter)
Wall clock time
Num elems (Number of elements)
Simulation progress (percentage)
Simulation time
It is the total amount of physical time simulated already. In other words, it is the addition of the time steps
computed so far.
Stability parameter
The stability parameter allows the user to check the solution's stability. The stability parameter is defined
as:
The stability parameter must satisfy the Courant-Friedrichs-Lewy (CFL, Sv) condition as well as a
compressibility (Sρ) and numerical viscosity (Smu) condition, and thus its value must be less than 1. If it
reaches 1.0, it means that somewhere in the domain one of these conditions is not being satisfied, the
stability of the simulation is thus not ensured and XFlow displays the following message in the Message
View:
“[WARNING] Stability parameter too high, check [pressure/velocity/viscosity] at (X,Y,Z) m or reduce the
time step.”.
The values of the stability parameter can be graphically displayed in the Function Viewer.
36 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Please note: The Stability parameter is only a warning. The value output in the log is the maximum
value within the entire simulation domain. This means a high value of the stability parameter could be
caused by one single element of your fluid domain (element highly stressed between narrow regions,
moving geometries, etc.), and may not be representative of the global stability of the simulation. If that
is the case, the simulation could still be physically valid. The user should open the case and check the
field reported in the warning message at the coordinate indicated in order to check any non-physical
values.
Please note: The Stability parameter is not available when the Supersonic thermal model is enabled.
Number of elements
If the topology of the lattice is not fixed, i.e. the refinement algorithm Adaptive refinement is enabled, the
number of elements in the domain will vary in time. Only in this case, the number of elements at every
solver iteration is displayed in the Message View.
Simulation progress
It indicates the percentage completion of the simulation, i.e. the amount of simulation time already
computed over the total simulation time set.
1 discarded regions
1 identified regions
Generating node map.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 37
3.1 Graphical User Interface
The solver (engine-3d*.exe) now starts and proceed in the pre-processing by loading the fluid
domain generated. All the following messages are saved in the project_name.log file (see XFlow files
):
## SIMULATION START ##
XFlow Build 106.05
Execution line: C:\Program Files\Dassault Systemes\XFlow\engine-3d.exe Project.xfp /maxcpu=4 -
log=2
Computation limited to: 4 cores.
RLM license validation OK
Num cpus detected: 4
Allocating memory...
Processing geometry...
Done!
------------------------------------------------------------------------------
Num levels: 3
------------------------------------------------------------------------------
Level: 0
Num active fluid elements: 119168
------------------------------------------------------------------------------
Level: 1
Num active fluid elements: 24704
------------------------------------------------------------------------------
Level: 2
Num active fluid elements: 111616
------------------------------------------------------------------------------
Processing geometry...
Done!
------------------------------------------------------------------------------
Full domain has 255488 elements.
Equivalent single-resolution domain has 8000000
Equivalent single-resolution domain size is ( 200 x 200 x 200 )
------------------------------------------------------------------------------
The solver sets the boundary conditions, estimates the main reference values and the time step:
Computing boundary conditions map!
------------------------------------------------------------------------------
Coarsest resolved length: 0.2
------------------------------------------------------------------------------
Prandtl number: 0.180259
Reference area: 3.99219 m^2
Reference velocity: 5 m/s
Time step (level 0): 0.001 s
Total simulation time: 0.4 s
------------------------------------------------------------------------------
The solver initializes the fluid domain and saves the initial simulation frame (frame 0):
Saving data...
[[Data file]] 0 done!!! | Frame wall clock time[0]s | Overall wall clock time[0]s | Num
elements[255488]
For every solver iteration the Message View displays the following message:
Sim. time [1.000000e-003]s | Stability param. [1.080849e-001] | Wall clock time [2.543000e+000]
s | Sim. progress [1.00] %
Sim. time [2.000000e-003]s | Stability param. [1.097306e-001] | Wall clock time [2.621000e+000]
s | Sim. progress [2.00] %
...
38 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
3.1.6.2 Warnings
The warning messages are intended to warn and anticipate about any possible issue. It should be considered
but could be omitted if the warning is irrelevant.
Your reference velocity cannot be estimated due to the inlet law. Please
set a custom reference velocity.
This warning appears if the inlet velocity is a non-constant law depending on the variables t, x, y,
z, sp, etc...
The following popup window shows a warning that appears if any of the domain dimensions is not a
multiple of the Resolved scale, leading to a mismatch between the Resolved scale setup by the
user in the Project Tree and the real one used in the simulation.
For instance, these may be of utmost importance in Single Phase external with symmetric lateral
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 39
3.1 Graphical User Interface
boundaries: To ensure symmetry in Z-axis, the resolved scale must be exactly a multiple of the Z-
dimension of the domain.
The following popup window warns the user that the case setup contains a nonzero Fluid gravity and
also a nonzero external acceleration that are cumulative. For instance, if by mistake the user defines
the gravity as an External acceleration law when it is already taken into account in the field
Fluid gravity, he can reset the first one to zero; otherwise the user can neglect the warning.
If connection with the license server is lost or the license server has stopped suddenly, the following
message will show. XFlow will keep running for 5 additional minutes and will then stop if connection
to the license server is not recovered or the license server restarted.
After 5 minutes from the above message, the following message will pop-up and the interface will be
disabled and simulation paused (process is not terminated yet). If the license server is recovered,
XFlow will detect it automatically and the computation will resume or click on "Retry" to reconnect
to the license server. Otherwise the user can save the simulation before quitting.
3.1.6.3 Errors
Error messages are critical and will prevent the simulation from running. They should be considered seriously
in order to carry out the simulation succesfully.
40 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
indicated by [coord(X,Y,Z)] m. The simulation is therefore stopped and the data are saved at the
time step where the incidence happens. You may try to check boundary conditions, lattice
resolution, or simply reduce the time step to avoid it.
project.xfd not found. Please run the domain generator before running the
engine.
Indicates the engine is running without the fluid domain generated (project.xfd). Run the
executable generateDomain3d to generate the fluid domain.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 41
3.1 Graphical User Interface
Mouse navigation
The navigation in this window allows the user to move the camera to change the geometry view.
Predefined views
There are predefined views that correspond to the orthogonal and perspective projections of the model:
42 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Reset
Rotate view left
Top view
Bottom view
Left-hand side view
Right-hand side view
Front view
Back view
Rotate view right
Perspective view
Fit all
Show grid
The available graphic view settings depend on the domain type (Virtual wind tunnel / Generic rectangular
domain):
If no geometry is selected but there are data loaded being visualized, an additional option is available:
If a geometry object is selected, then the Graphic-View menu shows the following options:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 43
3.1 Graphical User Interface
3.1.7.1 Legend
In the Graphic View, the legend range is by default determined by the maximum and minimum values of the
numerical data; to manually modify this range go to:
Main menu > Simulation Data > Analysis settings or .
44 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
To change the visualization range (maximum and minimum) uncheck the "automatic" box, and insert manually
the maximum and minimum values.
Another possible way is to edit the Color Bar directly in the GUI, for this select the color bar by clicking it.
If you click on the maximum and minimum values, you can edit them to limit the range.
Additionally, further options are available to customize the color bar by right clicking on it, once selected.
Set automatic range: If the maximum and minimum values have been edited, this will restore to the
automatic values which will correspond to the minimum and maximum in the fluid domain at that timestep.
Set horizontal / vertical view: Changes the color bar to be either horizontal or vertical.
Tip: The color bar can be resized by clicking the bottom corner of the bar, and dragging either
horizontally, vertically and diagonally.
It can also be resized if you click on it, and scroll with the central mouse button.
Edit properties:
Count: Number of value lables that are displayed next to the color bar
Precision: Decimal precision of the values on the color bar
Color: Sets the color of the color bar text
Gradient: Changes the color maps for the color bar
3.1.7.2 Gizmos
Main menu > Geometry > Selection filter > Object filter
Gizmos are shown when a geometry is selected with the object filter, . Gizmos let the user easily do the
following operations:
translate a geometry object,
rotate a geometry object,
scale a geometry object, and
move cutting planes.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 45
3.1 Graphical User Interface
Different instances of the Function Viewer can coexist to allow the visualization of different functions
simultaneously. A new Function Viewer can be created either by:
46 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
The function viewer appearance is shown in the figure below, where the following features are indicated:
Auto fit function: Resize the X and Y axis to fit the function.
Vertical fit function: Resize the Y axis to fit the function.
Horizontal fit function: Resize the X axis to fit the function.
Input box: To write functions and plot them on the Function Viewer.
X value: X value of the point under the mouse.
Y value: Y value of the point under the mouse.
Function visualization
The user can directly visualize a function by selecting the icon, which will open a law editor (only
when in Setup or Editing mode). Additionally, when the software is in Post-Processing mode, a function
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 47
3.1 Graphical User Interface
that has been set in any of the square brackets [] fields of the Project Tree can be plotted in a law editor
by middle clicking on it.
Tip: All the transformations applied are updated in the Geometry tab of the Project Tree.
The timeline reflects the progress of the calculation and allows the navigation through the results, that have
already been calculated. It has four main components:
1. Frame number
2. Time bar, that indicates the progress of the simulation, i.e. the frames that have been calculated
4. Frame number, indicating the frame that is currently visualized/loaded in the Graphic View. To visualize
another frame, just drag the frame-number buttom along the timeline, click on the frame number or use the
playback controls.
5. Playback controls:
48 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Tip: Since XFlow takes computer resources to display the results in the Graphic View, it is recommended
to locate the frame cursor after the last result saved (i.e. in the blank space on the right hand side of the
timeline) during the computation.
As shown in the figure above, the Project Manager window allows the user to:
Create a new project:
Select Blank project to start a new setup.
Select one of the Templates displayed to load some pre-defined settings for different cases.
Open an existing project:
Choose a recent project among those shown in the "Existing project" list, press the button Open selected
Press th button Browse... and browse the project through the file system
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 49
3.3 Project modes
XFlow has several interface modes depending on the current project state. A summary of the different project
modes is depicted on the following figure:
50 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Setup mode
The setup mode is the regular project mode and corresponds to projects which have not been simulated yet.
Projects in setup mode include new empty projects and projects saved as a new one.
Please note: If a project is saved as a new one and a project with existing data is selected, Editing mode
will be enabled instead of Setup mode in order to avoid conflictive state.
Post-processing mode
The post-processing mode is set for projects that contain simulation data. In this mode, the simulation data
are synchronized with the simulation parameters which means the project is exactly as it was executed.
Simulation parameters cannot be edited in order to maintain synchronization between project and simulation
data. Post-processing mode is enabled automatically when running a simulation, or when loading a project
with simulation data which has not been edited.
Post-processing mode is announced at the top of all the Project Tree tabs except the post-processing tab as
follows:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 51
3.3 Project modes
A menu opens if you click on Post-processing mode in the top of the project tree, and proposes two options
in order to unlock the project tree: save as a new project which will switch to setup mode, or edit the project
which will switch to editing mode.
Editing mode
XFlow enters in Editing mode in order to edit projects which have been simulated already. This mode allows to
modify simulation parameters and run the simulation again hence overwriting previous simulation data. Note
that when the editing mode is enabled, the simulation data cannot be loaded anymore to prevent from
visualizing asynchronous set of data and simulation parameters and hence be in an inconsistent state.
Editing mode is announced at the top of the all the Project Tree tabs except the post-processing tab as
follows:
A menu opens if you click on Editing mode in the top of the project tree, and proposes to restore the original
project file. If accepted, the original project file will be restored and the project reloaded again hence
switching back to post-processing mode and allowing to load the original simulation data.
52 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
The .XFZ file is an archive that gathers all files required to run the simulation, geometries included. It is useful
to send your project to someone or archive it, however it may duplicate geometries if several projects are
created with the same geometry files.
Tip: It is recommended to use the XFP format for better performance in saving/loading project, and to use
the .XFZ format in order to send the project to someone or archive it.
Simulation data are saved in a sub-folder where the project file is located, named as the project, and
containing the log files, fluid domain, numerical data. The volumetric data are saved in a sub-folder named
"data" ; as shown in the figure below:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 53
3.4 XFlow files
Project folder
.XFP Project file in ASCII format that describes the project in XML format. Contains all the
parameters, boundary conditions and links to the geometry files used in the simulation.
.LAY File that stores the layout of the GUI windows.
.NFB XFlow native binary file format for geometries. The STL geometries imported in XFlow are
saved automatically in this format.
.XFZ Archive gathering all files required to run the project: .xfp, .lay, and geometries.
Simulation folder
pre_processor.LOG ASCII text file containing the domain generator output shown in the
Message View window. It describes the octree structure of the lattice.
project_name.LOG ASCII text file containing the solver output shown in the Message View
window. Time steps iterations and information about the simulation are shown, see Simulation
54 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
progress chapter.
.XFD Fluid domain file. It describes the octree structure of the lattice and is required by the solver
to run a simulation.
.XFK Backup file in ASCII format used to recover the project settings of the computation.
numericaldata.BIN Numerical data file used for the graphs are saved in this file. This is a
binary file format.
numericaldata.XML Numerical data structure used for the graphs are saved in this file. This
XML file allows to read the numericaldata.bin.
axisforcesdistributionX/Y/Z.txt Forces distribution/cumulation over all the geometries in X/Y/Z
direction at each time step. These files are generated only when the Save axis force distribution
option is enabled.
Data folder
resume.BIN Resume file used to resume a simulation. It is saved only if the Save resume file
option is enabled.
xfdata00000N.dat.h5 Data file of frame number N containing all the data calculated by XFlow:
o Volumetric data: Static pressure (sp), Velocity modulus (vmod), Vorticity (vrt), Q-criterion
(qcrit), X/Y/Z components of velocity (vx/vy/vz), Turbulence intensity (ti), Temperature
(u), Effective viscosity (vis), Volume of liquid phase (vof)
o Surface data: Skin friction (Cf), Pressure Coefficient (Cp), Y+, P+
o Animated objects: Cables, FSI-NASTRAN, Geometries
o Markers
o Domain structure
o Averaged and Standard deviation data
Tip: The structure and the data of the xfdata00000N.dat.h5 files can be read
and extracted by an HDF reader program such as the open source program
HDFView
Tip: Modified (and unsaved) project files (.XFP) are marked with a star * at the top right-hand side of the
project route in the GUI.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 55
3.5 Preferences
3.5 Preferences
Main menu > Options > Preferences, or toolbar icon
Preferences window
The Preferences window allows the user to customize the appearance of XFlow and the engine settings. It is
divided into four sections:
Engine
Geometry
Graphic View
o Environment
o Lights
o Performance-Quality
Project Tree
Application
56 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
3.5.1 Engine
Main menu > Options > Preferences > Engine
In the Engine section of the Preferences window, the following options can be activated/deactivated:
Number of CPUs: Specifies the number of CPU that will be used in the computation. The maximum
number of CPUs is defined in the license agreement.
Enable advanced computation: Only available in Expert mode.
Engine Socket Port: Port that will be used by the XFlow Process Manager. This can be set to
Automatic (the software will automatically detect and choose an available port) or to User defined.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 57
3.5 Preferences
3.5.2 Geometry
Main menu > Options > Preferences > Geometry
The Geometry section of the Preferences window shows options related to geometries:
STL surface detection: This allows the user to select surfaces of the tessellated geometries such as .
STL and .NFB formats.
Mesh deflection: Parameter (between 0 and 2) that determines the size of the tessellation for
parametric geometries (STEP, IGES). The lower is the parameter the higher is the number of polygons
generated to tessellate the geometry. The higher is the number, the lower is the number of polygons.
Show wires: This option enables/disables the visualization of the wires of the geometries.
58 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
The Graphic View section of the Preferences window shows the following options to improve the visualization
in the Graphic View window:
Rotation mode: Y-axis mode keeps this axis fixed when rotating the camera, while 3D mode does not have
a predefined rotation axis.
XFlow logo colour: It is possible to set XFlow log with any different colour so that it has the desired
contrast with the graphic view background.
Show grid: The grid serves as a visual reference, it may be helpful for doing measurements on the
screen. The three axes are painted in the Graphic View by using lines colored by the corresponding axis
color. The grid size is displayed on the left-hand top corner of the Graphic View. The first number refers to
the size of the big scale, while the second number refers to the dimension of the small scale, as pointed out
in the figure below:
Grid size
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 59
3.5 Preferences
3.5.3.1 Environment
Main menu > Options > Preferences > Graphic View > Environment
Background: It is possible to set the background to one color, two colors or a texture
Environment texture: To browse for a file containing the texture to be shown in the Graphic View
background
Environment vertical axis: To allow for the selection of which axis (and sign) to use as the upward
direction for the imported HDR environments.
Environment horizontal offset: To rotate the background texture in the horizontal plane. Value range:
[0,180] degrees.
Environment multiplier: To multiply the brightness of the environment texture.
Ground wall colour: To customize the ground wall color.
Text and domain box colour: If Automatic is set, the text on the graphic view (Simulation Time, color bar,
etc) is adjusted for easier visualization based on the background color. Alternatively, User defined option
allows to set a specific color.
60 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
3.5.3.2 Lights
Main menu > Options > Preferences > Graphic View > Environment
This controls the lights that illuminate the geometry in the Graphic View. Each light is defined by a point
in space and is directed towards the origin (0,0,0). On this panel one can decide to turn them on/off or
change their position.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 61
3.5 Preferences
3.5.3.3 Performance-Quality
Main menu > Options > Preferences > Graphic View > Environment
This section affects how the Graphic View will behave for real-time visualization and balance performance
with quality. The new visualization techniques of XFlow allow for greater realism and sense of depth, so it is
easier to inspect and see errors in the geometry. However, these options have a definite impact on the
performance and responsiveness of the Graphic View, so the user might want to consider turning some of
them down (or even off).
Renderer: This option allows the user to switch from the current renderer that runs under OpenGL 3.2+ to
a Legacy renderer that runs under OpenGL 1.1. The latter is advised for user that have performance
issues using XFlow 2017 new renderer. Although the performance will be improved, allowing XFlow GUI to
run with most of graphics cards, it will also decreas ethe quality of the visualizations in XFlow GUI.
62 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Anti-aliasing quality: This determines how much post-processing will be applied to remove jagged edges
from the Graphic View. The higher the setting, the smoother the geometry contours will be. The cutting-
edge algorithm used in XFlow has a very little impact on performance, so it can be set to high even with
mid-range graphic cards.
Shadow resolution: Shadows can greatly enhance the perception of depth and the spatial relationship
between shapes. If this option is set to Low, it requires less graphics processing units (GPU) memory and
the shadows are computed faster, but depending on the scene it can lead to shadows with stair-case
border artifacts. On the other hand, the highest setting produces more defined shadows, but they take
longer to calculate and they require more GPU memory.
Note that shadow generated by every light will be recomputed either when the lights or the geometries
in the scene are moved, or when a new frame is loaded.
Finally, it is worth pointing out though that shadow computations can have a great impact in
performance during playback. So it might be interesting to turn them off if the fastest playback possible
is desired. It might also be a good idea to turn the off if your graphics card has little memory.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 63
3.5 Preferences
Example of a shadow with low resolution (left) and with high resolution
(right).
Environment quality: Controls how sharp reflections can look, and how well visualization materials
transition from roughtness 0 to 1. Higher requires more memory and higher viewport loading times.
Transparency quality: High quality makes the transition from opaque to transparent smoother. It also
makes easier to differentiate the front and the back of transparent geometries. It requires more GPU
computation, however.
Bloom quality: Bloom is the effect by which bright points appear to have a halo. XFlow simulates this
effect to increase perceive brightness, but it comes with a performance cost, which can be regulated from
here.
Enable Ambient occlusion: Simulates the effect by which corners are darkened (light comes from fewer
directions). It requires more memory and computation time.
64 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
In the Project Tree section of the Preferences window, the appearance of the Project Tree can be
customized:
Font Size: Small, Normal, Large and XLarge.
Tree colors: There are six options to customize the colors of the Project Tree.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 65
3.5 Preferences
3.5.5 Application
Main menu > Options > Preferences > Application
In the Application section of the Preferences window, the general appearance of XFlow can be customized:
Application Style: XFlow GUI can be executed in two styles (3DX or dark). The default style is 3DX
(background and menus in white color).
Application language: defines the language of application. Language can be set in: English, French,
Spanish, German, and Chinese.
Default project format: format can be selected between uncompressed (.XFP) or compressed (.
XFZ). See XFlow files formats for more details.
Geometry format: default format used for mesh formats of geometries. Either original format (STL) or
native XFlow format (NFB) can be used. NFB format is recommended for better performance.
Application mode: XFlow can be run in Normal mode, Expert mode, or Labs mode.
The Normal mode is the basic mode for which the user has the most basic options and parameters
available.
The Expert mode is similar to Normal mode but additionally include a few more advanced
parameters and features, it is recommended for advanced user.
The Labs mode has the same options available than the Expert mode but includes additional
features that are under development (see Labs mode).
Default directory mode: To set up the default mode to browse files. There are two possibilities:
browse files from the project's directory or from the last directory used.
Check for XFlow updates: XFlow will notify if a latest version is available to download. This option can
be disable in case you do not want XFlow to check for updates.
Maximum cache size: XFlow can store an arbitrary number of simulation frames in memory. Default
and recommended value is 1 frame, however several frames can be cached in memory in order to
speed-up repetitive frame loading (for instance, for loop in tracers, etc.).
Show Homepanel startup: When deactivated, the Project Manager window will not appear when
starting XFlow.
Show save project confirmation dialog: A window will pop-up and request for confirmation to save
the project if a simulation is run and the project has not been saved. The project will automatically be
saved in case this option is disabled.
66 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
3 Getting Started
Open XFlow in fullscreen mode: opens the interface in full screen mode automatically if enabled.
Enable DOE workflow: all the inputs and output fields show a DOE icon in order to make them
available for Design Of Experiment in the Process Composer of the 3DExperience platform. For more
information, refer to the 3DExperience platform documentation.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 67
68 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
4 Geometry
This chapter covers how to manage the geometry objects needed for the simulation, covering the following
topics:
How to create a geometry
How to import /export a geometry
How to select a geometry
visualization modes
How to get information of the geometry
How to modify the geometry
How to split a surface into several boundary patches.
How to delete a geometry
Geometry objects are listed in Project Tree > Geometry (+Info), where their thermophysical properties,
behaviour (e.g. motion) and boundary conditions can be defined.
Create vertex
Main menu > Geometry > Create Object > Create vertex,
A point in space is created by defining its spatial coordinates (x,y,z).
Create line
Main menu > Geometry > Create Object > Create line,
A line can be created from two points (their coordinates have to be entered in a dialog box) or from
existing points (which have to be previously selected, see Geometry selection).
Create curve
Main menu > Geometry > Create Object > Create curve,
A curved line can be created from three or more points previously defined. Hence:
(a) create the points that define the curve, ,
(b) select the points, ,
(c) click the "Create curve" icon, .
Create surface
Main menu > Geometry > Create Object > Create surface,
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 69
4.1 Create entity
1. Its vertices:
(a) define the vertices of the surface, ,
(b) select the vertices sequentially (in clockwise or counterclockwise order), ,
Please note: Depending on the orientation of the surface normal, one may need to move the camera
in order to see the surface (see Back-face culling).
Create Cylinder
Main menu > Geometry > Create object > Create cylinder,
A cylinder is created by specifying the following parameters:
Center of the circle that describes the base
Direction of extrusion
Radius of the circular section (base or top)
Height of the cylinder
Angle of the cylindrical sector (between 0 and 360)
Num azimuthal segments which is the number of elements in the azimuthal direction used to build
the cylinder
Num radial segments which is the number of elements in the radial direction used to build the
cylinder
Num longit. segments which is the number of elements in the longitudinal direction used to build the
cylinder
Cylinder parameters
Create Sphere
Main menu > Geometry > Create object > Create sphere,
70 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Sphere parameters
Create Cone
Main menu > Geometry > Create object > Create cone,
A cone is created by specifying four parameters:
Center of the circle that describes the base
Direction of cone height
Radius of the circular base
Height of the cone
Cone parameters
Create Torus
Main menu > Geometry > Create object > Create torus,
A torus is created by specifying four parameters:
Center of the radius
Direction normal to the torus plane
Major radius, external radius
Minor radius, internal radius
Torus parameters
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 71
4.1 Create entity
Create Box
Main menu > Geometry > Create object > Create box,
A box is created by specifying the coordinates of the upper and lower corners.
Create Prism
Main menu > Geometry > Create object > Create prism,
To create a prism with elliptical basis, according to the following parameters:
Center of the radius
Base plane normal
Direction of the prism height
Minor axis of the elipse
Major axis of the elipse
Prism parameters
72 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
NACA (4 digits)
XFlow can import a geometry from CAD, 3D mesh models and NURBS models.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 73
4.2 Import and export geometry
Target role: geometries can be imported in two categories: Simulation or Post-processing. Simulation
geometries will be imported in the Geometry tab of the project tree and will participate to the simulation,
while the Post-processing geometries will be imported in the Post-processing tab of the project tree and
will be used for post-processing purpose only.
Model units: the user can select the Units system for the imported geometries. This option is only
asked for the STL geometries. The other formats(STP, IGES and NFB) already contain the unit in the
geometry file.
Structure shapes as: the geometry file can be imported in the Geometry tab as only one shape or
several shapes. This is available for parametric geometries only (STEP, IGES) and depends on the
parametric hierarchy.
Model coordinate system: the user can define which is the vertical axis of the imported geometries.
Import as child of: the imported geometry can defined as a child of one of the existing geometries.
Set visualization as: to specify directly the visualization mode of the imported geometry. This is
particularly useful to disable the visualization of the heavy geometries when importing them.
74 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
.STL STL files only describe the surface mesh of a three dimensional object, without
any representation of color, texture or other common CAD model attributes. The
STL format specifies both ASCII and binary representations. Binary files are more
common, since they are more compact.
.STEP / .STP STandard for the Exchange of Product model data defines data models for
boundary representations.
.NFB The native binary file format of geometry in XFlow. This is a mesh format, as for
STL.
Please note: When saving an XFlow project file containing an STL geometry, XFlow will automatically
convert it to the NFB format which is the XFlow native mesh format. This can be changed in the
Preferences > Application > Geometries format, switching to Original format instead of NFB. NFB
format is recommended for performance.
Tip: Recommended formats are STEP and STL. STEP is parametric and therefore flexible for
surfaces definition, but must be tessellated by XFlow when importing. STL is a mesh format and
therefore imported exactly as per the STL file, but surface detection will be based on surface angles
and may be altered compared to STEP geometries.
Tip: Check the orientation of the geometry. Remember that in XFlow Y-direction represents the
height and Z-direction the width.
Please note: When importing a geometry into XFlow external simulation, if the geometry bounding
box is not contained in the fluid domain, this will adapt its dimensions in order to contain the
geometry.
Please note: When importing a .CATProduct the user can chose between keep the hierarchy or
import each geometry separately.
After specifying the model units, the imported geometry is shown in the Graphic View and added as a
Shape into the Geometry section of the Project Tree.
Export geometry
Main menu > Geometry > Export Geometry, or <Ctrl + E>
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 75
4.2 Import and export geometry
The geometry can be exported in the same file formats as when importing: STL, STEP, IGES, BREP and
NFF.
The geometry object to export has to be selected prior to executing the command.
Wire filter: selects the wire of an object. A wire is a sequence of edges connected by their vertices. It
can be open or closed depending on whether the edges are linked or not.
Edge filter: selects the edge of an object. An edge is a single dimensional shape corresponding to a
curve, and bound by a vertex at each extremity.
Vertex filter: selects the vertex of an object. A vertex is a zero-dimensional shape corresponding to a
point in geometry.
The objects, shells and faces can be selected in both Graphic View and Project Tree:
Selection in the Graphic View
Selection in the Project Tree
When the mouse is passed over a geometry, it is highlighted in a soft blue to indicate the object that can be
selected. The object is eventually highlighted in cyan when it is selected.
76 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
(a) Unselected object (b) Mouse on the object (c) Selected object
To select additional objects, hold the Ctrl key while selecting the objects.
To remove objects from the collection of selected objects, hold the Ctrl key and select the objects again.
To cancel the selection, just click on any point of the graphic viewer which is not an object or press the Esc
key.
Object selection: Project Tree > Geometry > Geometries > Shape
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 77
4.3 Select geometry
Face selection: Project Tree > Geometry > Geometries > Shape
4.4 Visualisation
A geometry can be shown/hidden activating/deactivating the combo box shown on the left side of the
Geometry tree, as shown in the figure below:
Once a geometry is shown, XFlow provides different modes and materials to visualize it. To see these
options:
Select the geometry
Click on the Graphic View window with the right button
The Graphic View Menu appears containing (among others) the following options (see picture below):
1. Set visualization material
2. Visualization mode
3. Back-face culling
78 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 79
4.4 Visualisation
Colors can be selected either by choosing from a spectrum or by defining the color numerically, based on
the HSB (hue, saturation, brightness) or RGB (red, green, blue) color models.
visualization materials
Additionally, the user can manually modify parameters related to the geometry material visualization, which
80 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Use a different material for the outside and inside: This toggle allows for using a different material for
the front faces and the back faces. It is useful for isosurfaces in mixing cases and might be useful for
internal analysis (instead of using backface culling we can apply a glass material to the backfaces).
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 81
4.4 Visualisation
Choose among:
> visualization Mode > Shading
> visualization Mode > Wireframe
> visualization Mode > Bounding Box
> visualization Mode > Mesh
If back-face culling is enabled, surfaces which normal points to the camera (user) are shown as opaque
bodies, while those which normal points away from the camera are shown as transparent bodies (only the
wireframe is shown).
When back-face culling is disabled, both sides of the surface will be opaque.
Tip: It is better to enable the culling since this gives useful information about the normal to the surface.
Please note: When culling is enabled only surfaces oriented towards the camera are shown.
In XFlow, it is essential that all the geometry normals point to the fluid, because the fluid domain is
automatically built based on the surfaces normals orientation. The user can see whether the surface normals
point outside or inside the object with the help of the back-face culling. Alternatively, the show > normals
option can be used (+info) to plot vectors representing the normal direction.
In the figure below it is shown the difference between the normals pointing outwards (fluid outside the object,
i.e. external flow) or inwards (fluid inside the object, i.e. internal flow).
82 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
(Select the geometry +) Main menu > Geometry > Reorientate normals,
This command allows the user to homogenize the normals of a geometrical object.
This command changes the direction of the normals of a surface, so that they point in the opposite direction.
If back-face culling is enabled, the opaque side will change to the other side.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 83
4.5 Geometry Information
These options are available either form the Main menu or from the Graphic View menu.
4.5.1 Normals
(Select the geometry +) Graphic View Menu > Show > Normals
The show normals option allows to visualize the orientation of the surface triangle tessellation by means of
vectors. This representation helps in detecting the orientation of surfaces in a shape object and, if required,
inconsistent orientation can be automatically fixed using the Reorientate normals option.
A vector is plot per each geometry vertex, which can clutter the graphic view.
84 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
In moving geometry objects, prescribed position laws, angular laws and external forces and moments are
assumed to be defined with respect to the local axes, whose origin is by default the centre of gravity (CoG
), which is automatically calculated assuming that the object density is constant in space.
Local axes
By default the centre of rotation (CoR) is the local-axes origin. These can be translated away from the CoG
in:
(Select the geometry +) Graphic View Menu > Modify CoG/CoR position
The local-axes origin can later be restored to the center of mass by clicking on .
Tip: It is recommended to modify the CoG/CoR position with the object shape fixed, not with enforced or
rigid body behaviour (see geometry behaviour)
Please note: the CoG/CoR cannot be modified in post-processing mode for simulation geometries as it
would modify the simulated project.
This option shows the following information about the geometry objects:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 85
4.5 Geometry Information
______________________________
[Geometry name]
______________________________
- Number of polygons:
- Number of vertices:
- Surface area:
- Approximate volume:
- Projected Areas:
* in Plane XY:
* in Plane XZ:
* in Plane YZ:
- Bounding box
* Axis X: [x 1,x 2] Size:
* Axis Y: [y 1,y 2] Size:
* Axis Z: [z 1,z 2] Size:
(x1, y1, z1) being the coordinates of the lower corner and (x2, y2, z2) those of the upper corner. Hence, it
allows the user to know the dimensions of the selected object (see also Dimensions).
This option is available only for parametric geometries (STEP, IGES) and shows information about the
parametric hierarchy of the geometry selected:
86 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
______________________________
[Geometry name]
______________________________
SHELL (o:F/R)
.FACE (o:F/R)
..WIRE (o:F/R)
...EDGE (o:F/R)
....VERTEX (o:F/R) [x1, x2, x3]
The glossary is described at the bottom of the window and is the following:
COMPOUND: A group of any of the shapes below.
COMPSOLID: A set of solids connected by their faces. This expands the notions of WIRE and SHELL
to solids.
SOLID: A part of 3D space bounded by shells.
SHELL: A set of faces connected by some of the edges of their wire boundaries. A shell can be open
or closed.
FACE: Part of a surface bounded by a closed wire. Its geometry is constrained (trimmed) by contours.
WIRE: A sequence of edges connected by their vertices. It can be open or closed depending on
whether the edges are linked or not.
EDGE: A single dimensional shape corresponding to a curve, and bound by a vertex at each extremity.
VERTEX: A zero-dimensional shape corresponding to a point in geometry.
4.5.5 Dimensions
This command shows/hides the bounding box dimensions and lower corner coordinates of the selected
geometry object.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 87
4.5 Geometry Information
Geometry dimensions
To check the geometry to see if it contains holes due to non-matching patches, set the display in Bounding
Box visualization mode and:
Select the geometry > Main menu > Geometry > Show/Hide holes,
The Bounding box visualization mode makes the holes visible, highlighted by white lines, as shown in the
figure above.
Tip: In models composed of several parts with the same boundary conditions it is recommended to first
merge all parts in a single object.
88 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Additionally, the Toolbar Geometry Operations provides the tools to modify the object shape, according to
the following operations:
Symmetry
Duplicate
Split
Merge
Heal
Please note: The changes in the object are shown in wireframe mode while manipulating the Transform
Tool. To apply the changes, press "Apply all" button.
Please note: The changes done using the Transform Tool are not saved with the project. To keep the
changes, it is recommended to create a new merged shape of this object:
Select it, press Main menu > Geometry > Create mesh shape and delete the original object.
4.6.1 Translation
Translation operation can be performed either from the Project Tree , the Transform Tool or the Graphic
View.
Project Tree
Project Tree > Geometry > Shape > Behaviour
In the data structure of a given geometry (Shape), its position can be modified as shown in the figure
below.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 89
4.6 Modify geometry
Transform Tool
To modify the position of the geometry object:
Select the object (Shape)
Transform Tool > Transformation > Translation: Set the displacement length by
coordinates X, Y, Z (global axes).
Graphic View
A geometry can be translated in the Graphic View using the translation Gizmos shown when selecting the
geometry object, . The following two translation operations are allowed:
1. Translation in one direction (X, Y, Z) by:
dragging the corresponding Gizmo axis, or
clicking on the corresponding Gizmo axis and setting the translation distance (in meter) in the
translation dialogue-box, e.g X = 1m, Y = 0m, Z=0m) .
2. Translation in a plane (X-Y, X-Z, Y-Z) by:
dragging the corresponginh Gizmos plane, or
clicking on a Gizmo axis and setting two translation distances (in meter) in the dialogue box,
e.g: X = 1m, Y = 1m, Z=0m.
3. Translation in any direction by:
clicking on a Gizmo axis and setting three translation distances (in meter) in the dialogue box,
e.g: X = 1m, Y = 1m, Z=1m.
90 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Graphic View - Selected geometry showing its Gizmos and the translation dialogue-box
4.6.2 Rotation
An object can be rotated either from the Project Tree, the Transform Tool or the Graphic View.
Project Tree
Project Tree > Geometry > Shape > Behaviour
In the data structure of a given geometry (Shape), its orientation can be modified as shown in the figure
below.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 91
4.6 Modify geometry
Transform Tool
To rotate a geometry object, follow these steps:
Select the object (Shape)
Transform Tool > Pivot-Axis > Pivot: Coordinates of the origin of the rotation axis (relative
to object local axes)
Transform Tool > Pivot-Axis > Rotation axis: Direction of the rotation axis
Transform Tool > Transformation > Angle: Angle of rotation around a fixed axis, defined
by Pivot and Rotation axis.
Notice that when selecting a geometry object, its geometrical center of gravity (assuming mass uniformly
distributed) is automatically displayed in the Pivot-Rotation > Pivot field.
Graphic View
A geometry can be rotated in the Graphic View using the rotation Gizmos shown when selecting the
geometry object, .:
1. Rotation around an axis (X, Y, Z) by doing the following:
dragging the corresponding Gizmo arc, or
clicking on a Gizmo arc and setting the rotation angle (in degrees) in the rotation dialogue-
box, e.g X = 90º, Y = 0º, Z=0º.
92 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Graphic View - Selected geometry showing its Gizmos and the rotation dialogue-box
4.6.3 Scale
The size of an geometry can be scaled in the Transform Tool or the Graphic View.
Transform tool
Graphic View
A selected geometry, , can be scaled in the Graphic View by clicking on the center of the Gizmo axes
and setting a relative scaling value in the scaling dialogue-box.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 93
4.6 Modify geometry
Graphic View - Selected geometry showing its Gizmos and the scaling dialogue-box
4.6.4 Symmetry
This command allows the user to make a mirrored copy of the selected geometry with respect to a plane
defined by three points (vertex).
The name of the new Shape is the name of the original object plus the suffix "-Symm".
94 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
When creating a Symmetric geometry the user will be prompted to choose the target of the newly created
geometry, which can either be:
Simulation: the geometry can be used for the simulation setup (only available when not in Post-
processing mode).
Post-processing: the geometry can be used only for post-processing tasks.
4.6.5 Duplicate
This command creates a copy of the selected geometry/face/group of faces. The new Shape will have the
same position and orientation as the original one.
The name of the new Shape is the name of the original object plus the suffix "-Dup". If the original geometry
is duplicated several times, then the resulting Shapes will be numbered according to: "original-Dup-000001,
original-Dup-000002, etc".
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 95
4.6 Modify geometry
Example:
Original geometry - Shape1
Select several faces of Shape1 using
Duplicate the selected faces using . It generates a new geometry object Shape1-Duplicate, that has
the same shape as the selected faces.
Please note: If the user now presses Del key, the selected faces will be extracted from the original geometry
(see delete geometry) and the user will have the original geometry split up into two Shapes.
When duplicating a geometry the user will be prompted to choose the target of the newly created geometry,
which can either be:
Simulation: the geometry can be used for the simulation setup (only available when not in Post-
processing mode).
Post-processing: the geometry can be used only for post-processing tasks.
4.6.6 Replace
(Select geometry/face/group of faces) Main menu > Geometry > Replace selected geometry,
This command replaces the selected geometry with a new one imported by the user from a new file. The
Shape will keep the same position and orientation details as the original one.
Example:
Original geometry - Shape1
Replace the selected geometry with a new file imported by the user
When replacing a geometry the user will be prompted to choose the import geometry settings (+info).
96 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
4.6.7 Split
These operation allow the user to split the selected object into its connected parts or into parts with the same
surface orientation:
(Select the geometry) Main menu > Geometry > Split in connected shapes,
(Select the geometry) Main menu > Geometry > Split in shapes according to orientation,
Please note: Splitting only works for geometries imported as STL files (mesh of triangles).
4.6.8 Merge
(Select the geometries) Main menu > Geometry > Create mesh shape,
This command creates a new shape by merging the selected geometry objects. The new Shape, called
"Mesh", includes all the original parts.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 97
4.6 Modify geometry
Tip: Once the merged shape has been created, it is recommended to delete the original parts (see Delete
geometry).
Please note: Healing is available only for parametric surfaces (.STEP, .IGS). When the geometry is
imported as tessellated surfaces (.STL), the healing functionality is not available.
The hole filling tool allows to create a lid geometry that will fill the holes of geometry. The user can select one
or more geometries (a geometry set) for the tool to calculate the patches to close their holes and as a result
new geometries will be obtained containing the resulting patches. Once generated, the geometries are
automatically imported into the project.
In order to use it, select the geometry set and use the menu Geometry > Repair geometry > Hole filling.
The Hole filling tool window will then pop-up.
98 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Options
This section includes the general options of the hole filling tool.
Output meshing: Selects whether only the lid geometries (Patches) or an wrapped type geometry (
Wrap) are imported in the XFlow setup after the hole filling process.
Split entities: (Only available for Patches) Imports each lid geometry as a separate entity in the XFlow
setup.
Extend perimeter: (Only available for Patches) The edges of each lid geometry created is extended to
intersect the original geometry used in the hole filling process.
Scale: (Only available for Wrap) Scales the created wrap geometry by a factor.
Use bounding box as support shape: An exterior bounding box is automatically created considering
the selected geometry set and used as an auxiliary geometry to improve the stability of the hole filling tool
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 99
4.6 Modify geometry
Mesh definition
Parameters of the mesh generated for the lid geometries.
Minimum size: Minimum size of the mesh triangles (in m) for the patches to close the holes. It must be
smaller than the smallest of the holes to close.
Maximum size: Maximum size of the mesh triangles (in m) for the patches to close the holes. It must be
smaller than the largest of the holes to close.
Angle: Sharp edge angle (in degs)
The the minimum size and maximum size parameters are initialized with values automatically calculated based
on the bounding box of the selected geometry set. Although these values lead to a successful geometry
healing in most cases, adjustments might be required according to the topology of the geometry considered,
the granularity and sizes of the holes.
Inner entities
Two types of inner entities can be created in order to help the generation of the lid geometry: inner points
and inner spheres.
Inner point: Seed point for the meshing to define the domain to be meshed. It must be located inside the
volume to close.
Inner sphere: Places a hot-spot as input information for the hole filling process. The algorithm will
calculate a seed point automatically in the largest open area inside the geometry.
The list of inner points (default option) is initialized with the point corresponding to the CoG of the selected
geometry set. This corresponds to the CoG of the selected geometry, when a single entity is selected, and to
an average CoG when several entities are selected.
Please note: When selecting the Inner spheres option a seed point is automatically created in the largest
open area inside the geometry.
100 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
4 Geometry
Inner entities can be specified by adding new lines to the inner entities table or by mouse selection (arrow
icon next to the Add button). In the latter case, selecting the middle mouse button in a location near in the
graphic viewer will create a new inner entity. By default inner spheres are created with a radius of 0.1 m.
Moreover, data can be imported from text files using the Import option in the Hole Filling Tool window. The
syntax required in the text file is:
Inner point: x y z
Inner sphere: x y z radius
Values should be specified in meters (m) and both space and tab separators are supported. Example files:
Example: Points.txt
0.1 1.4 0
2.3 -1.7 1
-5.5 3.8 0
Example: Spheres.txt
0.1 1.4 0 0.01
2.3 -1.7 1 0.05
-5.5 3.8 0 0.03
Inner entities are visualized in the Graphic Viewer as long as the Hole filling tool window is open.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 101
4.6 Modify geometry
Tip: Better results are obtained using the inner points option, placing several points within the geometry
as close as possible to the holes to close. The inner entities are optional, if the user does not set one an
automatic inner sphere will be used, however this makes the hole filling process more prone to failures.
2. (Select the geometry +) Right click on the Graphic View window > Remove selected
Once deleted, the shape disappears from the Project Tree (Geometry>Geometries) and the Graphic
View window.
Please note: There is no Undo option; therefore the geometry will be deleted permanently.
102 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
5 Simulation Setup
This chapter explains how to setup a simulation, following from left to right the workflow of the Project Tree:
XFlow work flow: Project Tree categories, those corresponding to the Simulation Setup are highlighted in orange.
Depending on the options selected in the project, some toolbar icons may show. The simulation project
toolbar icons available are:
5.1 Engine
Project Tree > Environment > Engine
The Engine section allows the user to specify the solver features according to the physics of the problem to
be solved; available features are:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 103
5.1 Engine
Kernel 3d
2d
Coupled energy
Supersonic
Sequential solid
Off
Turbulence generation (+Info)
Automatic
Custom
Main Menu > Options > Preferences > Engine (see Preferences > Engine)
104 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Single phase:
Single phase flow model only involves one continuous fluid phase within the whole fluid domain. Any point
of the fluid domain is the same fluid material (e.g. air, water, etc.). It is typically used for aerodynamics,
acoustics, thermal management, etc.
Free surface:
Free surface flow model involves one fluid phase with a free surface interface. The presence of fluid is
defined by a volume of fluid field which is between 0 and 1. Presence of fluid is not mandatory in the
domain, and areas for which volume of fluid is equal to 0 is vacuum. This is typically used for marine,
hydrodynamics, water management, and any simulation involving liquid free surface.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 105
5.1 Engine
Multiphase:
Multiphase flow model involves two phases. The main phase is defined by a volume of fluid field such as in
Free Surface, but the areas for which the volume of fluid field is equal to 0 is another fluid in this case
(second phase). The main and second phase can both be either gas or liquid. This is typically used for
two-phase flows, or hydrodynamics and water management where the air phase is not negligible.
Multiphase analysis
example:
Rayleigh-Taylor
instabilities (heavy
fluid over lighter fluid)
Project Tree > Environment > Engine > Flow model > Execution: CPU/GPU.
106 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
This option is only available in Labs mode and allows to select if the simulation will run on CPU or GPU.
There are three different approaches to model multiphase flows in XFlow. The Particle-based tracking
model, the Phase field model, and the VoF.
Particle-based tracking:
Starting with an initial distribution of each phase, the markers are advected with the flow, and additional
forcing terms are introduced at the interface between phases to recover the surface tension specified by
the user. The Particle-based tracking method advects discrete markers at the bulk of the flow and
detects an interface whenever particles of different type are neighbouring each other.
In the Particle-based tracking method, the particles are moving independently of the lattice, the
Lagrangian trajectories of the particles are not guaranteed to obey the incompressibility condition. There
are therefore volume changes for local portions of a phase embedded in other phase (such as bubbles or
drops), and this is globally corrected to ensure global volume conservation of both phases. If your
simulation has distinctly separated volumes (such as a positive displacement pump), this correction will
effectively transfer mass from one volume to another. The global correction can be disabled with the
Environment > Engine > Advanced Options > Free surface volume correction option, both
for free surface and particle-based multiphase simulations.
If the Particle-based tracking multiphase model is enabled, the following options appear:
Engine > Advanced options > Volume correction: On by default. This option is only
available in Expert mode.
Environment > Environment > Water channel > Fluid 1 initial surface
Environment > Environment > Water channel > Fluid 1 inlet wave function
Geometry > Geometries > Shape > Boundary Conditions > Apply to phase:
Material 1/Material 2
Phase field:
Starting with an initial distribution of each phase, the phase field is advected with the flow and additional
forcing terms are introduced at the interface between phases to recover the surface tension specified by
the user. Instead of discrete markers, the Phase field method advects a scalar field that, besides the
terms due to pure advection, has additional forcing terms originating from a potential with attractors at
concentration vof = 0 and vof = 1, enforcing separation of phases. Similarly, large changes in the Phase
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 107
5.1 Engine
The Phase field has the advantage of a one-to-one match between the lattice discretization for the
momentum equations and for the Phase field equations. Conservation of mass does not preclude the
dissolution of one phase into the other when the shear forces are larger than the potential terms that
enforce phase separation.
Environment > Environment > Water channel > Fluid 1 initial concentration
Environment > Environment > Water channel > Fluid 1 inlet concentration
Geometry > Geometries > Shape > Boundary Conditions > Fluid 1 concentration
VoF:
The Volume of Fluid (VoF) approach is in between the phase field and the particle-based tracking
method. Unlike the particle-based tracking approach which uses markers, or the phase field approach
which uses a diffusive interface, the VoF interface is tracked using a fluid volume at interface lattice
nodes and therefore the interface can only be one lattice unit thick.
On the contrary to the particle-based tracking, the pressure field is solved continuously for the whole
domain (i.e. there is no boundary condition between the gas and liquid) in the VoF approach. This results
in a smoother pressure field at the interface compared to the particle-based tracking and a more
accurate modeling of the surface tension. Similarly to the particle-based tracking, the VoF is more
adapted to large scale problems than the phase field model, however the latter should be the most
accurate approach to model surface tension.
Environment > Environment > Water channel > Fluid 1 initial concentration
Environment > Environment > Water channel > Fluid 1 inlet concentration
Geometry > Geometries > Shape > Boundary Conditions > Fluid 1 concentration
108 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
External:
External simulations do not require geometry to define the boundaries of the fluid domain. Fluid domain is
defined by an XFlow pre-defined domain:
Single phase: virtual wind-tunnel or generic rectangular domain
Free surface: virtual water channel
Multiphase: virtual water channel
Internal:
Internal simulation have no default fluid domain boundaries. It requires a geometry input from the user to
define the boundaries of the fluid domain.
Tip: Make sure the geometry defining the domain is perfectly watertight so that XFlow can generate the
fluid domain correctly.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 109
5.1 Engine
Energy equation:
The energy transport in XFlow is modelled according to the following sensible-enthalpy conservation-
equation:
where T is the temperature, is the density, Cp is the specific heat capacity, k is the thermal conductivity,
is the viscous stress tensor, and v the velocity vector.
Thermal models
The thermal models available in XFlow are:
Isothermal: The energy equation is not solved. The fluid temperature remains constant in space
and time.
Examples of applications: subsonic aerodynamics, non-thermal applications, low
compressibility effects, etc.
Segregated energy: The energy equation is solved without the compressibility term. Buoyancy
effects are included in the flow-motion equations using Boussinesq approximation:
where α is the thermal expansion coefficient and ρ0 is the reference density. This approximation is
only valid for small density and temperature variation only.
Examples of applications: HVAC, room ventilation, natural and forced convection,
electronics cooling, etc.
Coupled energy: Only available in Labs mode. The energy equation is solved and takes into
account for the compressibility term. This solver is useful in order to account for the pressure/
temperature variations when the gas is highly compressed/expanded, and is valid only for
isentropic processes.
110 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Supersonic: Only available in Labs mode. Allows to solve flows with speeds higher or close to the
speed of sound.
Examples of applications: aerodynamics for supersonic, transonic, and hypersonic flows,
flows involving shockwaves, etc.
Please note: The coupled energy and supersonic solvers are only a prototypes and therefore
the output should be considered with precaution.
Sequential solid: Allows to solve the temperature distribution inside a solid body without solving
the flow field around it. This can be used sequentially, computing a flow field from a first simulation
that provides the heat transfer coefficient (HTC) distribution on a geometry, and compute only the
solid conduction inside this geometry in a second simulation. This is especially useful to decouple
the flow field (short time scales) and thermal (long time scales) convergence.
Please note: When the Sequential solid model is used, the simulation will only occur in
geometries that are set as conjugate heat transfer (CHT).
In case the HTC from previous simulation is enabled, the boundary conditions will be read from
the specified simulation results. The Simulation folder, Data type (instantaneous or averaged)
and the Frame of interest must be specified. The Reference temperature is required in case
the HTC boundary condition is applied from an isothermal simulation.
The default boundary condition applied to the CHT body when using a HTC distribution is Free
Convection. Any other boundary condition applied by the user will overwrite the HTC distribution on
the surface.
In case the HTC from previous simulation is disabled, the default boundary condition applied to
the CHT body will be adiabatic. Any other boundary condition applied by the user will overwrite this.
Project Tree > Engine > Thermal model > Radiation model > Montecarlo
In XFlow, fluids are considered non-participating media by default. Therefore, radiation source terms
are not accounted for in the energy equation. However, XFlow do consider surface-to-surface radiative
heat transfer mode, which is modelled according to Montecarlo model.
In the Montecarlo model the radiation leaving a surface element in a certain solid angle is approximated by
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 111
5.1 Engine
a single ray and therefore involves the tracing of rays from one surface to another through the domain.
This technique provides a prediction of radiative heat transfer between surfaces without calculation of
visibility coefficients. The accuracy of the model is determined by two parameters:
Ray density: number of rays per element
Number of iterations: number of iterations to perform in the iterative radiation process
Radiative surfaces are assumed gray bodies by default. Hence, the net radiative heat flux from a surface
(radiation source) is given by:
with qin incident radiative heat flux, the emissivity coefficient of the surface (0 1), the Stefan-
Boltzmann constant and θ temperature.
Radiation sources are assumed to be at constant conditions over time; therefore irradiance is computed
only once at the beginning of the simulation.
Turbulence modelling is approached in XFlow using Large Eddy Simulation (LES). As sketched in the figure
below, LES solves the turbulence scales that are larger than a given filter, scales below this filter are
modelled.
XFlow provides the following survey of models to represent the smallest scales of turbulence (i.e. the turbulent
viscosity):
Automatic
Off (Resolved)
Smagorinsky
Dynamic Smagorinsky
Wall-Adapting Local Eddy
Spalart-Allmaras
Automatic
112 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Off (Resolved)
This option disables the modeling of subgrid-scales.
If this option is activated and the wall-type boundaries are set to Resolved, then the turbulence-
modeling approach becomes a Direct Numerical Simulation (DNS). For the sake of accuracy, please
make sure that dissipative scales of your problem are larger than the lattice resolution (smallest resolved
scale).
Smagorinsky model
In the Smagorinsky model, the eddy viscosity is modeled by
where is the filter scale, S is the strain rate tensor of the resolved scale and the Smagorinsky constant (
Cs) usually has a value between 0.1 and 0.2; by default Cs= 0.12. The user can modify this value in the
Project Tree:
Project Tree > Environment > Engine > Turbulence settings > Turbulence model > Cs
where the WALE constant (Cw) is typically 0.2. The user though can modify this value in the Project Tree:
Project Tree > Environment > Engine > Turbulence model > Cw
Spalart-Allmaras
This model is only available in Labs mode.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 113
5.1 Engine
To define a given rate of turbulence generation, the following options are available:
Off: Turbulence generation is not defined in the initial field or inlet boundary.
Automatic: A turbulence intensity can be defined at the inlet boundary and to initialize the internal field
.
Custom: This option allows the user to set the turbulence intensity, but also to customise the following
parameters:
Initial turbulence scale: By default 1 m. Turbulence length scale should be a positive double.
Number of harmonics: By default 100. Harmonics should be a positive integer.
Please note: The Acoustics analysis option is only available in the Expert mode and is not compatible
with the following options:
Project Tree > Environment > Engine > Multiphase model > Phase field
Project Tree > Environment > Engine > Thermal model > Supersonic
Acoustics analysis
The fluid solver of XFlow is compressible and it thus physically deals with sound pressure waves.
Furthermore, the turbulence modeling approach used in XFlow, Large Eddy Simulation (LES), computes the
flow fluctuating structures down to the resolution specified by the user. Hence, in XFlow, the acoustics
approach is the one called: Direct Computation of Sound (DCS). The numerical algorithm does not
introduce any artificial shear viscosity or stabilization.
Since the solver is transient and compressible and due to the nature of the lattice Boltzmann scheme
employed in XFlow, the information (pressure waves) naturally travels at the numerical speed of sound C
numerical:
where dx is the resolution at a given lattice level, and dt the associated time step for the same lattice level.
Whereas Cthermodynamic is the thermodynamic speed of sound calculated estimated by XFlow using:
For single phase/multiphase (gas) flows: the ideal gas law for the single phase flows, with gamma
the adiabatic index, the molecular weight M, the perfect gas constant R=8314 and the operating
temperature T:
Therefore, when the Acoustics analysis is enabled, XFlow automatically sets the time step dt which satisfies
the following relationship:
Hence:
114 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: Since the time step is unique with acoustics analysis, the frames frequency is adjusted
automatically in order to get an integer number of the acoustics time step for each saved frame. A cap is
also imposed since the data cannot be saved at a frequency higher than the one used by the solver
(given by 1/dt).
Tip: The Message View will show the values of Numerical speed of sound and the Thermodynamic speed
of sound when the acoustics analysis is enabled, make sure they are equal and equal to the expected fluid
speed of sound.
Refractive index
By default it is set to 1. The refractive index is a dimensionless parameter n that allows to set a specific
speed of sound in the fluid medium vmedium defined as following:
Please note: The refractive index should always be equal or greater than 1 to ensure numerical stability,
as the propagation of information is can only be decelerated and cannot be transported beyond the time
step limit.
Tip: The refractive index can be used to model two different speed of sound in two-phases simulations for
instance, using a law as a function of the VoF field. It could also be used to model the change of speed of
sound in hot and cold gases with the ideal gas law through the temperature field. In case such laws are
implemented, make sure to use the highest speed of sound as your numerical speed of sound and use laws
to define deceleration of the speed of sound as function of other fields (VoF, temperature, etc.).
Bulk viscosity
The acoustics analysis also enables the user to set up a constant value for the volume bulk viscosity (also
called second viscosity), , to model the dissipation of pressure waves forced to travel at the real speed of
sound. The value of the volume bulk viscosity can be defined in:
Project Tree > Materials > Fluid > Volume bulk viscosity
The bulk viscosity contributes to the viscous stress tensor, and thus to waves dissipation, as indicated in the
following equation:
with p being the fluctuating gauge static pressure measured in a probe or sensor, and pref the reference
pressure equal to 2.10-5 Pa (i.e. threshold of human hearing). It is measured in decibels (dB) above the
reference level. The SPL can be plotted in the Function Viewer:
Function Viewer > (right click) > Data management > Set graph to [SPL vs freq] mode
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 115
5.1 Engine
Window type: this is the window type to apply to the Fourier transform. The window functions
available are: None, Hamming, Hann, Barlett, Blackman, flat top, Gaussian.
From time: the start time of the window interval.
To time: the end time of the window interval.
Tip: For a good signal processing, it is recommended to skip the transient period in the windows interval,
thus use a "From time" value that is after the transient period.
Tip: The maximum frequency of Fourier transform is determined by the numerical output time step and is
fmax = 1 / dt. You can adjust the numerical data frequency in order to have a larger spectrum. Furthermore,
the larger the time range used for the Fourier transform and the smaller the frequency steps, therefore your
spectrum becomes better detailed if using a larger time range.
116 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Filter type: the type of the FIR filter to apply on the signal displayed in the Function Viewer. The
filters available: Low pass, Band-pass, Band-stop and High pass.
Min Frequency: minimum frequency of the filter in Hz.
Max Frequency: maximum frequency of the filter in Hz.
Order: this is the order of the filter transfer function polynomial used in the convolution operation
between the filter and the time signal. The higher the order is, the more accurate would be the
approximation of the transfer function polynomial of the filter. However, a higher order will introduce
more delay to the filter response and the calculation of the filtered signal will take a longer time by the
Function Viewer.
The delay τ introduced by the Order can be estimated (in seconds) with this formula: (Order x
Simulation time-step) / 2.
Window type: this is the window type applied to the filtered signal. The window functions available
are: Barlett, Blackman, Hamming, Hann.
The representations of the response in Magnitude (dB) and Phase (rad) of the selected filter are provided in
the graphs of the Apply filter window in function of frequency.
Please note: The filter is always applied to the signal displayed in the function Viewer. Therefore, if the
displayed signal has already been filtered, the filter will be applied twice.
In order to change the filter, it is always recommended to display the original signal again in the Function
Viewer before changing the filter.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 117
5.1 Engine
The scalar transport feature allows the user to solve an additional advection-diffusion equation for an arbitrary
scalar :
where D [m2 s-1] is the scalar diffusion coefficient (or Diffusivity) in the fluid.
The scalar is transported by the fluid phase and it can either actively affect the flow, or be set as a passive
scalar. In the first case, the scalar could represent mist dispersed in air, while the passive case could stand,
for instance, for the concentration of a dye or an indicator in the flow.
To enable the scalar transport please switch On this option from the Environment tab; then add a scalar (
+info) and the following data structure will then be added to the project tree:
Environment > Environment > Global a. > Initial Conditions >Initial scalar field:
Scalar - Concentration (+Info)
Environment > Environment > Domain type > Boundary Conditions > Scalar
concentrations:
Scalar - (+Info)
Geometry > Geometries > Shape > Boundary Conditions > Scalar concentrations:
Scalar - (+Info)
Post-Processing > General > Show > Volumetric field > visualization field
Scalar (+Info)
Add/Remove a scalar
To add a scalar, right click on Scalars and select the option Add scalar. A scalar defined by a
diffusion coefficient (Diffusivity) will automatically appear below; by default the Buoyancy option is
set to Off.
To remove a scalar, e.g. Scalar 1, right click on Scalars > Scalar 1 and select the option Remove
scalar. The scalar will be removed from the list.
118 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Initialize a scalar
A function of space and time can be defined as the initial passive scalar law.
Visualize a scalar
Every scalar included in the simulation will appear in the list of visualization fields. Thus, its post-
processing can be done as that of any other field. It can be visualized through cutting planes, iso-
surfaces, etc.
Several advanced options are accessible depending on the flow model selected:
Structural analysis
Only available in Labs mode.
For Fluid-Structure Interaction (FSI) simulations, co-simulation between XFlow and Abaqus or MSC.Nastran
can be performed. Refer to the Co-Simulation chapter for more information.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 119
5.1 Engine
The Wall function time filter is effective if the Automatic wall function (Enhanced wall function) and the
Non-equilibrium wall function are enabled for static walls.
This option allows to filter potential noises near walls by applying a time filter on the near walls velocity
used in the wall functions. This time filter can be set as:
o Off: The time filter is disabled. XFlow uses the instantaneous velocities for the wall functions.
o Automatic: A temporal filter is applied on the instantaneous velocities. The automatic characteristic
time used by XFlow is calculated with the Reference length and the Reference velocity:
Characteristic time = Lref / Vref.
o Custom:
Characteristic time: By defaults set as 1 s.
In order to set a custom value of the Characteristic time, this is equation used to compute the Wall
function time filter:
Where:
Vwall is the velocity near walls used for the wall functions,
v the instantaneous velocity near walls,
Vmean the time averaged velocity near walls,
And W 1 and W 2 are weights defined as following:
W1 = Local time-step / Characteristic time if: Characteristic time > Local time-step
= 1 if: Characteristic time = Local time-step
W2 = 1 - W1
The local time-step corresponds to the time step at the lattice level where the wall function is applied.
For more information about the time-step structure please refer to the section Time.
Please note: The setting W 1 = 1 (Characteristic time = Local time-step) is the same than setting Wall
function time filter: Off.
Volume correction
120 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
When this parameter is enabled the software enforces the conservation of volume for each phase present in
the simulation. Note that the default particle-based tracking scheme used by the free surface and particle-
based tracking multiphase solvers does not exactly preserve volume. The corrections are performed by
adding additional forces/displacements on the surface trackers, which achieves a global conservation but
may create artifacts locally. The phase field multiphase solver does enforce volume conservation both localy
and globally and does not require such corrections. Only available for: Free surface and Multiphase.
Please note: This might slightly affect the stability and require a lower timestep.
5.2 Environment
Project Tree > Environment > Environment
The Environment section consist of one or several of the following folders, depending on the Flow model
chosen in the Engine section:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 121
5.2 Environment
Custom
Dimensions
Ground wall
Project Tree > Environment > Environment > Global attributes > Domain type
To study the fluid dynamics of a monophasic fluid around a body (Single Phase External), the user has to
define the body geometry and the external limits of the fluid domain. To this end, the user has the following
options:
Virtual wind tunnel
122 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: When importing a geometry into XFlow external simulations, by default, if the geometry
bounding box is not contained in the fluid domain, this will adapt its dimensions in order to contain the
geometry. In order to modify this behaviour, please change it in Preferences > Geometry.
The domain is identified, in either case, as a wire box in the Graphic View.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 123
5.2 Environment
Dimensions: The dimensions of the domain are given by the length (x), height (y) and width (z).
124 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Ground wall:
Off: -Y and +Y boundaries are set to Periodic.
On: +Y boundary is set as the inlet boundary condition (velocity profile or pressure); -Y boundary
is the so called Ground wall and is colored in gray in the Graphic View; -Y boundary options are:
Ground wall type: Wall-boundary type, see Wall types.
Ground wall velocity law X: If moving wall, the velocity in X-direction can be defined.
Lateral boundaries: by default, Z+ and Z- are Periodic boundaries; Symmetric type is also
available.
Please remember: Squared-brackets fields can be defined using a function.It is thus possible
to setup varying conditions.
In either cases, the turbulence intensity can be defined in the -X boundary condition:
Inlet turbulence intensity: To set the inlet (-X) turbulence intensity. It must be given as a
percentage (%).
Thermal boundary conditions: For non isothermal cases, the wind-tunnel thermal boundary-
conditions are automatically defined as follows:
Adiabatic: If Ground wall is Off, +Y, -Y thermal boundaries are Periodic and +X,-X
boundaries are Adiabatic. If Ground wall is On, +Y, -Y, +X,-X boundaries are set to
Adiabatic. Thermal boundary condition at +Z and -Z is also given by Lateral boundaries (
Periodic or Symmetric)
Temperature If Ground wall is Off, +Y, -Y thermal boundaries are Periodic and the
temperature at +X,-X boundaries is given by the user-defined Temperature law. If Ground
wall is On, -Y boundary is set to Adiabatic while the temperature at +X,-X,+Y is given by the
user-defined Temperature law. Thermal boundary condition at +Z and -Z is given by Lateral
boundaries (Periodic or Symmetric)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 125
5.2 Environment
Project tree > Environment > Environment > Generic rectangular domain
Dimensions: Dimensions given by the length (x), height (y) and width (z).
X periodic:
o On: Both -X and +X boundaries are set to Periodic
o Off: -X and +X can be any of the available boundary conditions (see Boundary Conditions). For
non isothermal cases, thermal boundary conditions must also be defined (Thermal Boundary
Conditions).
Y periodic:
o On: Both -Y and +Y boundaries are set to Periodic
o Off: -Y and +Y can be any of the available boundary conditions (see Boundary Conditions). For
non isothermal cases, thermal boundary conditions must also be defined (Thermal Boundary
Conditions).
Z periodic:
o On: Both -Z and +Z boundaries are set to Periodic
o Off: -Z and +Z can be any of the available boundary conditions (see Boundary Conditions). For
non isothermal cases, thermal boundary conditions must also be defined (Thermal Boundary
Conditions).
126 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
This option is only available for Free surface flows, either external or internal.
The Gravitational potential allows the user to take into account the effect on the fluid of a body force; this
being expressed as a force derived from a potential function ( ):
If the density variation produced by the body force is negligible (incompressible), the Navier-Stokes equation
incorporating the body force can be expressed in the same form as in the absence of the body force but
considering an altered pressure, , given by:
Please note: If Gravity potential = On, the initial and boundary conditions for pressure are
applied to p*, but the resulting pressure field from the simulation (numerical data), which is used for
the post-processing, corresponds to p (gauge pressure).
By default, the Gravitational potential is switched Off for Internal Free Surface flows and it is switched
On for External Free Surface flows.
Example:
For the gravity of earth:
Project Tree > Environment > Environment > Global attributes > Ext. acceleration laws
External accelerations applied to the fluid can be here defined by its components: X, Y, Z (m s-2); as for
example: the gravity.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 127
5.2 Environment
Please note: The external acceleration is applied to the fluid only, not the solid dynamics. For example,
for the rigid body dynamics, the gravity should be defined in Behavior: Rigid body dynamics >
Constraints > External forces.
Water channel default: Only available if Free Surface External flow. This option sets the velocity internal
field according to the velocity law given in the water channel section. The pressure, though, is initialized to
zero by default.
Simulation data: the computation is initialized from results of a previous XFlow computation:
Folder: Path of the folder containing the results as it is seen by the machine where the simulation will
be run.
Initial data frame: Frame number of the simulation defined in Folder to use to initialize the case.
Tip: Multiphase simulations can use Free Surface simulations to initialize the liquid region, and
conversely.
The parameters the user can set for the automatic initialisation are:
Initialisation steps: Number of steps to be performed before running the simulation.
Steps to skip: Resolution change between steps. If it is 0, the resolution for the next step is that of the
current step divided by 2. If it is 1, the resolution is divided by 4. In general:
Resolution_@Step(n+1) = Resolution_@Step(n) / (2^(steps_to_skip + 1))
The change in resolution between steps affects every resolution parameter: resolved scale, wake
resolution, shapes target resolved scales and regions target resolved scales.
128 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Total time fraction: Fraction of the simulation time used as simulation time for the initialisation steps.
This is useful because the time to converge in the initialisation steps is expected to be smaller than in
the actual simulation.
Example:
Simulation Setup: Initialisation steps:
Please note: In the first initialisation step, the simulation time is 0.99s instead of beign 0.5s as it
should correspond after applying the total time fraction parameter. This is because, in wind tunnel
simulations, the simulation time for the first step is set to 1.1*(time it takes for the fluid to cross the
tunnel from -X to +X), which in the example turns out to be 0.99s for the given tunnel length and inlet
fluid velocity.
Please note: If this option is combined with initialize domain with vorticity data, at each initialisation
step the vorticity of the previous one is taken as refinement criterion for the domain generation.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 129
5.2 Environment
This option is only available in Labs mode for Single Phase flows with the Segregated Energy thermal model
activated.
The Volumetric Heat Source allows the user to define the amount of energy that enters or leaves the
system per volumetric unit at any point:
For this, the user can specify a constant Volumetric Heat Source in Watts per cubic meter throughout the
entire domain, or limit it to a region by defining a function.
To define a given rate of turbulence generation, the following options are available:
X/Y/Z bounding box: XFlow takes the X/Y/Z dimension of global bounding box of the geometries.
Custom: This option allows the user to set a custom reference length in meters. by default, the
reference length is 1 m.
Please note: If there are no geometries in the domain and the Reference length is set as X/Y/Z bounding
box, XFlow takes the X/Y/Z dimension of the domain.
130 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: If there are no geometries in the domain and the Reference area is set as Front/Top/Side,
XFlow will take the Front/Top/side area of the domain.
Please note: XFlow cannot estimate the area correctly, if the geometry object is bigger than the
computational domain. In this case it is recommended to set a custom reference area.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 131
5.2 Environment
Reference velocity is used to compute the aerodynamic coefficients. It can be set to:
Automatic: the reference velocity is automatically estimated by XFlow as the inlet velocity.
Local: It corresponds to the velocity at the wall.
Custom: It is defined by the user in:
Reference velocity value: in m s-1
132 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
The water channel represents the external domain of the fluid for Free surface external cases. The water
channel assumes that the flow is aligned with the X-axis (from -X to +X), while the Y-axis is the vertical
direction; it further predefines some boundary conditions by default:
- X: Liquid inlet. Velocity can be defined by the user.
- Z, +Z : Periodic boundary, to lower the perturbations due to the finite dimensions of the water
channel.
Dimensions: The dimensions of the domain are given by the length (x), height (y) and width (z).
Velocity laws: The liquid inlet velocity is here defined by its components (x,y,z).
Water initial surface: The shape of the initial surface is here defined by the user. Please see
Waves or Liquid regions.
Water inlet wave function: To describes the free surface level at the inlet ( -X boundary). It can
be constant or vary over time (see Waves).
Fluid 1 concentration: To set up the initial concentration of the fluid 1 at the initial
region. The concentration C1 of is a number between 0 and 1.
If C1 = 0, there is no fluid 1 initially.
If C1 = 1, all the domain is filled by the fluid 1.
The concentration of the fluid 2 corresponds to C2 = 1 - C1
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 133
5.2 Environment
The initial concentration of fluid 1 can be associated with spatial and time variable to
set it at the a specific region of the domain.
Fluid 1 inlet concentration: To set up the fluid 1 concentration of the inlet flow. If C1
is the part of fluid 1 from the inlet flow, C2 = 1 - C1 will be the part of the fluid 2
from the inlet flow.
Thermal boundary conditions: For non isothermal cases, the water channel thermal boundary
conditions are here determined; possible options are:
Adiabatic: +Y, -Y, +X,-X boundaries are set to Adiabatic; +Z, -Z boundaries are always
Periodic.
Channel walls: the water channel walls boundaries are defined by the following options:
Lateral walls: If this option is Off, only ground wall (-Y boundary) is enabled. If this option is On,
walls are applied on the ground boundary (-Y) as well as on the lateral boundaries (-Z and +Z).
Channel wall type: Wall-boundary type applied to all channel walls, see Wall types.
Channel wall velocity law X: If moving wall, the velocity in X-direction can be defined. This
velocity is applied to all walls (ground wall and laterals walls if switched on).
It is possible to set progressive waves boundary conditions with the help of a wizard.
5.2.9.1 Waves
Main menu > Options > Setup progressive wave boundary conditions
XFlow contains a wizard to set progressive waves in the free-surface cases. The wizard parameters are:
Type of wave:
o Linear
o Fifth order Stokes
Wave definition
o Water channel dimensions: Length (L), height, width;
o Liquid depth (h)
o Current velocity (vw )
o Progressive wave: amplitude (A) and frequency (f)
The wizard automatically calculates the wave velocity (Water channel > Velocity laws) and consistent
laws to describe the initial free surface (Water channel > Water initial surface) and the inlet wave
function (Water channel >Water inlet wave function)
Linear wave
134 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
where x is the horizontal position and y the vertical one, t is the time, g is the gravity, is the angular
velocity ( =2 f) and k is the wave number, given by the following equation:
The position of the channel changes automatically so that the mean free surface level is located at y=0.
Therefore, positionY = height/2-depth.
For details on the theory of the fifth order Stokes expansion of small-amplitude waves (A<<h), the reader
is referred to:
"Stokes' expansion of internal deep water waves to the fifth order", Y. Tsuji and Y. Nagata, Journal of the
Oceanographical Society of Japan, vol 29, pp 61-69, 1973.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 135
5.2 Environment
Liquid regions
When performing an Internal analysis with the Multiphase or Free Surface solvers, the user is required to
define the initial liquid region by means of a function. Some examples are given below:
Examples:
Initial liquid function: if ((x < 0.5)(y < 0.5)(z < 0.5),1, 0)
Coordinates (x,y,z) refer to the global coordinate system, not relative to the object.
Please note: For Free Surface External, the initial liquid region has also to be defined, but in:
Project Tree > Environment > Environment > Water channel > Water initial surface
Please note: For Multiphase flows, the Fluid 1 regions are defined instead and the complementary
volume is filled with Fluid 2.
insidegeometry("geometry")
Where, "geometry" corresponds to the specific geometry you would like to initialize from.
In the example below, where the purple geometry is the one in which we would like to initialize the liquid region, this function
136 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 137
5.3 Materials
5.3 Materials
Project Tree > Materials
The thermo-physical properties of the fluid can be specified in this tab of the Project Tree, according to the
following hierarchy:
Fluid Name (+Info)
138 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
5.3.1 Name
Project Tree > Materials > Fluid > Name
Fluid name contains a string with the name of the fluid. By default, it is set to Material 1.
5.3.2 Type
Project Tree > Materials > Fluid > Type
Fluid type defines if the fluid is a Gas or a Liquid. This option appears only for multiphase flows, since the
single phase considers the fluid as a gas and the free surface as a liquid by default. According to the fluid
type, the material properties required are different.
This field is active only in the case of Single phase flows. It is required to specify the molecular weight of the
fluid (i.e. gas), used to compute the speed of sound through the ideal gas law:
The value of the air molecular weight (28.996 g/mole) is set by default; it can be modified by the user.
This field is active only in the case of free surface or multiphase flows involving liquids, when acoustics mode
is enabled. It is required to define the speed of sound of the liquid phase since the ideal gas law does not
apply anymore. The default value is set to 1484 m/s which corresponds to the water speed of sound.
The operating temperature is useful to compute the speed of sound through the ideal gas law for single phase
analysis:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 139
5.3 Materials
Since XFlow solver works internally with non-dimensional values, therefore this value is also used to make
temperature units non-dimensional.
The user can modify the value, which by default is 288.15 K (15 ºC).
This option is only available for non-isothermal cases. According to the Flow model, the following state
equations can be chosen:
Single Phase/Multiphase (gas)
o Reference density
o Reference static pressure
o Boussinesq
Free Surface/Multiphase (liquid)
o Incompressible
o Boussinesq
Reference density
The ideal gas equation is used, taking as a reference density the one specified by the user in:
Project Tree > Materials > Fluid > State Equation > Reference density > Density
Boussinesq
Density fluctuations are modelled according to Boussinesq approximation:
Incompressible
The specified density is defined and considered constant, using a stiff state equation:
Project Tree > Materials > Fluid > State Equation > Incompressible > Density
XFlow provides several options to model the dynamic viscosity of the fluid. The main classification of these
models considers the fluid behaviour:
Newtonian fluid
Non-Newtonian fluid
140 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
In a Newtonian fluid, the relationship between the shear stress and the strain rate D is linear:
As shown in the figure below, the dynamic viscosity of a Newtonian fluid may be constant or vary with the
fluid temperature, θ (theta).
Newtonian model:
The dynamic viscosity is assumed constant; its value being defined by the user:
Project Tree > Materials > Fluid > Viscosity model > Dynamic viscosity
For Single Phase flows of Newtonian fluids, if Acoustics analysis is activated, the bulk viscosity can be
further specified by switching on the following feature:
Project Tree > Materials > Fluid > Viscosity model > Enable bulk viscosity
where n is the power-law index, θ0 is the reference temperature (in K) and 0 is the reference viscosity
(in Pa·s); the values of which have to be specified in:
Project Tree > Materials > Fluid > Viscosity model > Powerlaw index (n)
Project Tree > Materials > Fluid > Viscosity model > Reference temperature (θ0)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 141
5.3 Materials
Project Tree > Materials > Fluid > Viscosity model > Reference viscosity ( 0)
where 0 is the reference viscosity (in Pa·s), θ0 is the reference temperature (in K) and C is the
Sutherland constant (in K); the values of which have to be specified in:
Project Tree > Materials > Fluid > Viscosity model > Reference viscosity ( 0)
Project Tree > Materials > Fluid > Viscosity model > Reference temperature (θ0)
Project Tree > Materials > Fluid > Viscosity model > Sutherland constant (C)
In a non-Newtonian fluid, the relation between the shear stress and the strain rate is nonlinear, and can even
be time-dependent. Viscosity can be considered to depend on the temperature, θ (theta), and the shear
rate, (gamma):
Non-Newtonian Herschel-Bulkley
The Herschel-Bulkley model combines the power-law model with a yield stress variable.
142 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Project Tree > Materials > Fluid > Viscosity model > Yields stress threshold ( 0)
Project Tree > Materials > Fluid > Viscosity model > Yielding viscosity ( 0)
where 0 is the zero shear viscosity (in Pa·s), n is the power-law index and is the time constant (in s).
The value of the model parameters has to be given in:
Project Tree > Materials > Fluid > Viscosity model > Zero shear viscosity ( 0)
Project Tree > Materials > Fluid > Viscosity model > Powerlaw index (n)
Project Tree > Materials > Fluid > Viscosity model > Time constant ( )
Non-Newtonian power-law
The non-Newtonian power-law is given by:
where k is the consistency index (in Pa·sn), n is the power-law index, θ0 is the reference temperature (in
K); the value of which has to be given in:
Project Tree > Materials > Fluid > Viscosity model > Consistency index (k)
Project Tree > Materials > Fluid > Viscosity model > Powerlaw index (n)
Project Tree > Materials > Fluid > Viscosity model > Reference temperature (θ0)
Additionally, it is possible to set minimum ( min) and maximum ( max ) values for the power-law function:
Project Tree > Materials > Fluid > Viscosity model > Minimum viscosity ( min)
Project Tree > Materials > Fluid > Viscosity model > Maximum viscosity ( max)
Power-law fluids can be subdivided into three different types based on the value of the index:
n>1 pseudoplastic or shear-thinning fluid
n<1 dilatant or shear-thickening fluid
n=1 is equivalent to Newtonian fluid
Non-Newtonian Carreau
At low shear rate the Carreau model behaves as Newtonian and at high shear rate as power-law:
where
and is the time constant (in s), n is the power-law index, θα is the reference temperature at which H(θ)
=1 (in K), 0 is the zero shear viscosity (in Pa·s), is the infinite shear viscosity (in Pa·s) and α is the
temperature sensitivity (in K):
Project Tree > Materials > Fluid > Viscosity model > Time constant ( )
Project Tree > Materials > Fluid > Viscosity model > Powerlaw index (n)
Project Tree > Materials > Fluid > Viscosity model > Reference temperature (θ0)
Project Tree > Materials > Fluid > Viscosity model > Zero shear viscosity ( 0)
Project Tree > Materials > Fluid > Viscosity model > Infinite shear viscosity ( )
Project Tree > Materials > Fluid > Viscosity model > Temperature sensitivity (α)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 143
5.3 Materials
User can edit the dynamic viscosity field using the variables: temperature (theta) and shear rate (
gamma).
This option is available only for isothermal flows, where an estimation of HTC can be done based on the skin
friction at the wall according to the mode selected:
Automatic: The required input are the Specific heat capacity and the Thermal diffusion.
and where Cp is the specific heat capacity, ρ the density, uT is the friction velocity, σ ?,t the turbulent
Prandtl number, σ the molecular Prandtl number, and u+ is the dimensionless velocity (u/uT).
[1] C. Jayatilleke, The Influence of Prandtl Number and Surface Roughness on the Resistance of the
Laminar Sublayer to Momentum and Heat Transfer, Prog. Heat Mass Transfer, 1:193-321, 1969.
Custom: The required input are the Specific heat capacity, the Thermal diffusion, and the
Reference Y+.
where u+ and T+ are dimensionless velocity and temperature evaluated from the law of the wall, and
are such as:
and
т is the shear stress, uт the friction velocity, Cf the skin friction, Cp the specific heat capacity, Tw the
wall temperature, Tf the near-wall fluid temperature, ρ the density, and q the heat flux.
When using the Custom mode, the user is requested to provide the Reference Y+ (Y+ref ) in order
to determine the dimensionless reference velocity u+ref via the law of the wall:
144 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
The dimensionless reference velocity is then used to determine the reference velocity uref used to
compute the HTC value, through the relation:
The thermal conductivity is used to compute the heat transfer coefficient for both non-isothermal and
isothermal simulations. For non-isothermal simulations (segregated energy, coupled energy, and supersonic),
it will also be taken into account in the energy equation to model the fluid behavior.
The default value for gases is that of air at 15ºC (0.0243 W m-1 K-1). For liquids the default value is that of the
liquid water (0.58 W m-1 K-1).
The Specific heat capacity parameter is used to compute the heat transfer coefficient for both non-isothermal
and isothermal simulations. For non-isothermal simulations (segregated energy, coupled energy, and
supersonic), it will also be taken into account in the energy equation to model the fluid behavior.
The default value for gases is that of air at 15ºC (1006.43 J kg-1 K-1). For liquids the default value is that of
the liquid water (4182 J kg-1 K-1).
Please note: Specific heat capacity is a numerical field. Hence, the user must specify a constant value.
Specific heat capacity dependence on temperature cannot be considered yet.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 145
5.3 Materials
The adiabatic index is required to compute the speed of sound of an ideal gas. This parameter is therefore
only available for Acoustics analysis and Supersonic flow model. For an ideal gas, the speed of sound C
thermodynamic is related by the following equation:
where the M is the molecular weight, R=8314 is the the perfect gas constant, and T is the operating
temperature.
The default value of the adiabatic index for air at atmospheric conditions is 1.4.
Please note: The speed of sound used in the simulation is specified in the simulation log file.
The reference pressure/density is shown for Coupled Energy and Supersonic thermal models since these
two models work with absolute pressure. If the state equation is set to impose the reference pressure then the
reference density is shown, and if the reference density is imposed the reference pressure is shown. The
reference pressure and density are computed based on the ideal gas law:
where P is the pressure, ρ the density, R=8314 is the the perfect gas constant, M is the molecular weight,
and T is the operating temperature.
5.3.14 Interactions
Surface tension model
The surface tension is available for Free Surface and Multiphase flow models.
Project Tree > Materials > Interactions > Surface tension model
Surface tension is a property of the fluid whose origins lie in the different inter-molecular forces that act on
both sides of the interphase between two fluid phases, e.g. on a liquid free surface. This results is an energy
per unit area that acts on the interphase that can be specified by the user in:
Project Tree > Materials > Interactions > Surface tension model > Surface tension
The default value is 0.072 N.m-1 that corresponds to the Surface tension of water in contact with air at 25 ºC.
Surface tension is also responsible for the contact angle at which a free surface meets a solid wall, as
shown in the figure below. The contact angle is specific for any given system, it is determined by the
interactions across the fluid-fluid and fluid-solid interfaces.
146 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
The user can specify the value of the contact angle in:
Project Tree > Materials > Interactions > Surface tension model > Contact angle (by default
90 degrees)
Also, contact angle hysteresis can be simulated (only available for Multiphase Phase Field) by setting the
following option to On:
Project Tree > Materials > Interactions > Surface tension model > Contact angle
hysteresis (by Off)
In this case the contact angle set by the solver will differ in case the surface has already been in contact with
the fluid. Hence, an advancing and a receding contact angle must be specified (by default 90 degrees).
These parameters are available only when the Multiphase Phase Field model is enabled.
Project Tree > Materials > Interactions > Interface thickness Number of lattice elements used
to model the interface thickness (default value 2.5).
Project Tree > Geometry > Shape: N am e of sh ap e > Shape contact angle Setting this option
to On allows the user to specify different contact angle and a contact angle hysteresis for each shape.
These values will overwrite the ones specified in the Materials tab.
5.4 Geometry
Project Tree > Geometry
The Geometry section of the Project Tree contains the information about the geometry objects; these can
be of the following types:
Entities
Cables
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 147
5.4 Geometry
Joints
5.4.1 Entities
Project Tree > Geometry > Entities
Shapes
If the problem under study requires a geometry (e.g. internal analysis, or external analysis with objects within
the external domain), the user can create / import it (see Chapter Geometry for more information about
geometry handling).
Every geometry object is listed in this tab of the Project Tree as a Shape. Here, the behaviour (motion) and
boundary conditions of any Shape can be defined.
Several actions can be applied to a shape by doing a right-click on the shape line:
Apply boundary conditions to shells: applies boundary conditions on every shells of the geometry.
Apply boundary conditions to faces: applies boundary conditions on every surface of the geometry.
Reset boundary conditions: resets the surfaces boundary conditions as one single condition applied
over the entire shape.
Rename shape: renames the shape in the geometry tree. Renaming can also be performed selecting
the geometry and pressing the F2 key.
Remove shape: removes the shape from the project.
148 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: It is recommend to make a copy of the geometry before changing names or doing
operations as all changes will be applied and saved from the original geometry file imported
Reference frame
Geometry > Create object > Reference frame
A reference frame is an arbitrary axis system defined by a point and orientation. It allows to create alternative
reference frames than the XFlow global frame (point of coordinates (0,0,0) m and global X, Y and Z axis). It
is especially useful to compute forces and moments according to any reference frame in the Function Viewer
.
Shape Name
Structural Coupling(4) (
+Info)
Reference Name
frame
Behaviour (+Info) Fixed
Enforced
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 149
5.4 Geometry
5.4.1.1 Behaviour
Fixed
The entity does not move. Its behaviour is defined by its Position and Orientation, which remain
constant in time. A scaling factor can also be provided with the Scale field.
Please note: The scaling factor is available for all the behaviors and is also updated in the Transform
Tool.
Enforced
The entity has a prescribed movement given by the Position law (translation) and Angle mode
(rotation), edited by the user.
The Angle mode has two options:
Euler angles: for prescribed rotation around global axes. Angular laws around X, Y and Z-axis
need to be entered.
Axis angles: for prescribed rotation around an arbitrary axis. Axis direction law and Angular
law need to be entered.
Please note: The analytic expression for these laws can only depend on time t.
The Immersed Boundary Method option (only available in Expert mode) allows the user to select a
different technique to simulate moving geometries in XFlow. Whenever this option is enabled no broken
links will be visualized in domain cutting planes, since the solver does not use this information to track the
motion of the moving objects. Instead, an extension of the fluid region is created inside the geometry in
which the velocity and pressure fields are solved to provide the correct wall boundary conditions. The
computational cells are filled with fluid using a solid fraction field and the collision step of the LBM is
modified to include a term that depends on that solid fraction
Considerable runtime and MPI parallel scalability improvements as well as smoother forces time-history
plots can be expected when selecting this option.
Please note: The immersed-boundary method requires a sufficient number of lattice elements
across the thickness of the object in order to resolve the solid fraction field properly, and therefore it is
usually recommended to use the IB method for geometries that are well resolved.
Also, the Immersed Boundary Method option is not suitable for zero-thickness geometries. Therefore,
thin-shell moving objects should be simulated using the standard option.
150 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
The Shape behaves as a rigid solid. Displacement (in X, Y and Z direction) and rotation (around X, Y
and Z axis) degrees of freedom can be activated. Each degree of freedom can be subject to external
forces and external moments.
Interaction properties:
Restitution coefficient: solid/solid contact coefficient (dimensionless). It expresses how one
solid colliding another will bounce. If this coefficient is equal to 1, the object will bounce as a
perfectly elastic solid since all the energy will be returned to the bouncing solid. If it is equal to 0, it
will not bounce and stick to the other object which will absorb all its energy.
Static friction coefficient: the static friction coefficient between two surfaces of solids is
defined as the ratio of the tangential force (F) required to make an object sliding over the other
divided by the normal force between the surfaces (N): sfc = F/N. Basically, this means a static
friction coefficient of 1 will require strong forces to move two static objects in contact, and a
coefficient of 0 will let them move immediately when a force is applied, as a slippery surface
(dimensionless).
Dynamic friction coefficient: The dynamic friction coefficient is the same than the static
friction coefficient but for two objects in motion. Even though they are in motion, the force of
friction cannot be eliminated completely and it continues to be a resistive force to motion.
(dimensionless)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 151
5.4 Geometry
Please note: Although friction forces act between pairs of bodies, in XFlow friction coefficients
are assigned to the shapes. The effective friction coefficient used in the computation is the average
of those of the two shapes interacting. For example, if solid1 has a friction coefficient of 0.5 and
solid2 of 0.1, the effective friction coefficient between both solids will be 0.3.
Constraints
Translation (Global): sets the geometry degrees of freedom (DOF) in translation. The axis X, Y
and Z are expressed in the global axis. Available options are self descriptive:
1. Free: all DOF in translation allowed;
2. Fixed: no DOF in translation allowed;
3. 1D translation: Axis x, Axis y, Axis z, Arbitrary axis (Direction user defined);
4. 2D translation: Plane x-y, Plane x-z, Plane y-z, Arbitrary plane (Normal user defined).
Rotation (Local): sets the geometry degrees of freedom (DOF) in rotation. The axis X, Y and Z
are expressed in the local axes. Available options are self descriptive:
1. Free: all DOF in rotation allowed;
2. Fixed: no DOF in rotation allowed;
3. 1D rotation: Axis x, Axis y, Axis z, Arbitrary axis (Direction user defined);
4. 2D rotation: Axis x-y, Axis x-z, Axis y-z.
External forces: allows the user to define an external force applied on the geometry (e.g. the
gravity force, spring force, damping force, etc.). This force can be expressed in the global and
local axes.
External moments: allows the user to define an external moment applied on the geometry (e.g.
resistive torque, frictions losses, etc.). This moment can be expressed in the global and local axes.
External forces and external moments can be expressed as function of the following variables:
px, py, pz position of CoG in global X, Y and Z directions
vx, vy, vz velocity of CoG in global X, Y and Z directions
eux, euy, euz angle of the CoG in the local X, Y and Z directions
wx, wy, wz angular velocity in the local X, Y and Z directions
Please note: External forces and moments are both applied in the center of gravity (CoG)
Please note: Rigid body dynamics behaviour is not available for these entities: Vertex, Reference
frame, Line and Curve.
Animated geometry
Only available in Labs mode.
Project Tree > Geometry > Shape > Enable boundary conditions (On/Off)
This option enables/disables a shape boundary conditions (i.e.: it enables interaction of the shape with fluid
during the simulation). If disabled, the geometry can still be used as an arbitrary refinement region or
initialize a field inside the geometry, but it will not interact with the fluid.
152 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
In order to reduce computing needs near walls, XFlow uses a wall function to estimate the velocity and the
temperature at the closest node to the wall.
XFlow features a generalized law of the wall that takes into account the effect of adverse and favorable
pressure gradients to model the boundary layer. This wall function is valid for all y+ and accurately resolves
the turbulent boundary layer taking into account also for the influence of curvature and pressure gradient.
The formulation of this wall function to estimate the velocity is as follows based on Shih et al. [1]:
Here, is the normal distance from the wall, is the skin friction velociy, is the turbulent wall shear
stress, is the wall pressure gradient, is a characteristic velocity of the adverse wall pressure
gradient and U is the mean velocity at a given distance from the wall. The interpolating functions f1 and f2 are
depicted as follows:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 153
5.4 Geometry
This single consistent law of the wall is based on a unified non-equilibrium wall function that accounts for
continuous blending between viscous sub-layer and logarithmic layer, adverse and favorable pressure
gradients and surface curvature in a completely automatic way.
For thermal analysis, the temperature is estimated with the following logarithmic profile broadly used in the
literature [2,3,4]:
The constant P is calculated following the Jayatilleke proposal in [3], its expression is as follows:
The use of the linear or logarithmic expression in the law of the wall depends on the point where both parts
join each other (y*T). If the node is in the linear part, there is enough spatial resolution for resolving the
boundary layer and in such case the thermal wall function is disabled.
154 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Automatic
It sets the enhanced wall-function, explained below. This formulation is the most generalist and robust
one, hence is the automatic selection.
Wall roughness [m]: Wall characteristic roughness, by default is zero. Roughness size should
be smaller than the distance between the wall and the first lattice node in order to be consistent with
the wall function.
Off (resolved)
It sets the velocity of the fluid to zero at the wall boundary. No wall function is used and thus the boundary
layer must be resolved by XFlow which requires a very low Y+, and therefore may lead to a very high
number of elements.
Enhanced wall-function
This sets the generalized wall function described above, but it disables the pressure gradients term.
Wall roughness [m]: Wall characteristic roughness, by default is zero. Roughness size should
be smaller than the distance between the wall and the first lattice node in order to be consistent with
the wall function.
Tip: It is strongly recommended to use the non-equilibrium enhanced wall-function for aerodynamic
applications, since the prediction of the boundary layer separation based on pressure gradients is a
fundamental feature. However, it would be recommended to keep the enhanced wall-function for general
applications not related to aerodynamics (multiphase flows, free surface flows, etc.).
Free-slip
This sets the normal component of the fluid velocity at the wall as well as the wall shear stress to zero. The
fluid is reflected symmetrically by the wall.
For any of the above wall models, an additional feature to set a virtual moving wall boundary condition is
available only in Expert mode.
Please note: The maximum value of wall roughness is not limited by XFlow. It is the user's responsibility
to set the cell size near the wall larger than the wall roughness.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 155
5.4 Geometry
Project Tree > Geometry > Shape > Boundary conditions > Wall
Virtual moving wall: (On/Off) If enabled, this feature imposes velocity on the boundary but
geometry shape remains fixed. The user has to ensure that the boundary conditions are consistent, i.
e. velocity component normal to the wall is zero.
The Shape has a prescribed movement given by the Position laws of translation and rotation, edited
by the user.
Axis ref point: coordinates of the virtual center of rotation in global axis.
Axis direction: coordinates of the virtual axis of rotation with respect to global axis.
Angular law: angular rotation in degrees.
Tip: The virtual moving walls are useful to model rotating that are axisymmetric, e.g. rotating wheels
for automotive simulations. This avoids to set an enforced rotating motion and makes the computation
faster.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (non-reflecting
boundary condition). (+Info)
Please note: the pressure boundary conditions are gauge pressure values for isothermal and
segregated energy thermal models, whereas they are absolute pressure values for coupled energy
and supersonic thermal models.
Velocity
This boundary condition is used to impose a Velocity law and an Inlet turbulence intensity at a
surface.
The advanced option in the Engine section named High order boundary conditions activates 2nd order
BC instead of 1st order.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (absorbing
boundary condition). (+Info)
Mass flow
This boundary condition is used to prescribe a mass flow rate at an inlet, given by the Mass flow law
(in kg/s). The mass flow is defined by the following equation:
where the density ρ and the velocity V both adapt to the section area A of the boundary.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (non-reflecting
boundary condition). (+Info)
156 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Pressure inlet
This boundary condition is used to define the static pressure at flow inlets. All other flow quantities are
extrapolated from the internal domain. This boundary type has the following items:
Gauge/absolute pressure law: to define the value of the gauge or absolute pressure at the outlet. The
pressure boundary conditions are gauge pressure values for isothermal and segregated energy thermal
models, whereas they are absolute pressure values for coupled energy and supersonic thermal models.
Pressure outlet
This boundary condition is used to define the static pressure at flow outlets. All other flow quantities are
extrapolated from the internal domain. This boundary type has the following items:
Gauge/absolute pressure law: to define the value of the gauge or absolute pressure at the outlet.
The pressure boundary conditions are gauge pressure values for isothermal and segregated energy
thermal models, whereas they are absolute pressure values for coupled energy and supersonic
thermal models.
Allow backflow: On/Off. When set to on, the fluid can flow back through the outlet boundary into the
domain. When set to off, the backflow is not allowed and it forces the fluid to exit the domain.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (non-
reflecting boundary condition). (+Info)
Convective outlet
In this boundary condition both static pressure and velocity at the outlet are extrapolated from the internal
domain.
Allow backflow can be set enabled. When set to on, the backflow is allowed which means the fluid
can flow back in the domain from the outlet boundary. When set to off, the backflow is not allowed and
it forces the fluid to go out of the domain.
Tip: The use of the pressure outlet boundary condition often results in a better rate of convergence
than convective outlet when backflow occurs. On the other hand, a convective outlet absorbs better the
reflection waves caused by inconsistent initial conditions.
Velocity
This boundary condition is used to impose a Velocity law at an outlet.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (non-
reflecting boundary condition). (+Info)
Mass flow
This boundary condition is used to prescribe a mass flow rate at an outlet, given by the Mass flow law
(in kg/s). The mass flow is defined by the following equation:
where the density ρ and the velocity V both adapt to the section area A of the boundary.
It should be noticed that the sign applied to the mass flow rate will be coherent with the normals
orientation of the outlet surface.
LODI: On/Off. Enables local one-dimensional inviscid (LODI) condition at the boundary (non-
reflecting boundary condition). (+Info)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 157
5.4 Geometry
Fan model
This boundary condition allows the user to prescribe any law that defines a (static) pressure jump in the
direction of the normal to the surface as a function of spatial coordinates and time.
Fan law: pout - pin = f (px, py, pz, vx, vy, vz, t)
Porous jump
The porous jump boundary condition is a simplification of the porous volume and can be used to model
thin "membranes" with known pressure-drop properties.
The pressure jump through the porous surface is modeled by the Darcy-Ergun formulation:
where k is the permeability coefficient (in m2), v is the velocity normal to the porous surface (in m/s), cE
is the Ergun coefficient (dimensionless) and th is the surface thickness (in m). This expression takes into
account inertial and viscous losses in the porous medium due to high flow velocities.
The parameters defining this boundary condition are:
Porosity type: Porosity can be defined as anisotropic or isotropic:
o Anisotropic
Permeability coefficient (Vector relative to the porosity principal directions) [m2]
Ergun coefficient (Vector relative to the porosity principal directions) [-]
Direction 1: First porosity principal direction
Direction 2: Second porosity principal direction
The third direction of the base for the porosity principal directions, is taken normal to the plane
defined by Direction 1 and Direction 2.
Please note: For anisotropic porous media (jump or volume) it is advisable to set a permeability
coefficient and an Ergun coefficient vector with a ratio between the components not higher than 1e4
and 1e2 respectively.
o Isotropic
Permeability coefficient (Scalar law) [m2]
Ergun coefficient (Scalar law) [-]
Surface thickness [m]
Please note: For Isotropic porous media (jump or volume), the Permeability and Ergun coefficients
could also be laws and not only constants.
Porous volume
The porous volume can be used for modeling flow in porous media, such as flows through sand, packed
beds, filters, perforated plates, or foams. As in the porous jump condition, it assumes that the flow
through the porous medium obeys the Darcy-Ergun formulation, and porosity can be isotropic or
anisotropic. The settings are the same as in the porous jump condition.
Please note: For porous volumes, the normals should be oriented outside the body.
Thermal boundary conditions can be specified for porous volume, once the Segregated Energy thermal
model is selected in the Environment tab.
Thermal boundary conditions:
158 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
If any of the above thermal condition is selected, additional thermal properties must be specified for the
porous volume:
Thermal properties:
Porosity: Fraction of the volume of voids over the total volume
Specific heat capacity: Specific heat capacity of the solid matrix within the porous
volume [J (kg K)-1]
Solid matrix density: Density of the solid matrix within the porous volume [kg m-3]
This information is then used to calculate the porous volume properties using the formula:
where γp is the property of the porous volume, γf is the property of the fluid, γs is the property of the solid
and p is the porosity (as above defined).
Periodicity
Periodic boundary conditions are imposed on two associated surfaces or groups of surfaces, defining a
periodicity between them. This boundary condition may be useful to model an infinite system, or if
periodicities occur in the system.
Please note: Periodicity boundary condition must be used on corresponding surfaces that match
(same size and shape).
Please note: The Periodicity boundary condition is only available in for single phase flows.
where the velocity V adapt to the area A of the boundary. The considered density ρ is always from Fluid
1.
5.4.1.2.5 LODI
The characteristic boundary condition are non-reflective boundary conditions designed to absorb undesired
pressure waves and reflections that may occur in compressible fluid flows. The local one-dimensional inviscid
(LODI) equations are solved for this purpose. The goal is to derive non-reflective Dirichlet boundary
conditions for both the velocity and the pressure.
Some applications are highly sensible to reflections of pressure waves that may occur at the inlet and outlet
boundary conditions in compressible unsteady simulations. To overcome this issue, non-reflective boundary
conditions are designed to absorb undesired pressure waves and reflections that may occur in compressible
fluid flows. The Local One-Dimensional Inviscid (LODI) equations are solved for this purpose. The goal is to
derive non-reective Dirichlet boundary conditions for both the velocity and the pressure.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 159
5.4 Geometry
It is especially useful for acoustic applications, where the acoustic pressure waves can reflect with the inlet
and outlet boundary conditions and interfere the signals. Internal simulations where the flow is not
unidirectional would also benefit from this approach, to shorten the transient phase of the flow field
initialization.
Please note: The LODI boundary conditions are available only for single phase flows and in Expert mode
.
Relaxation parameter: adjusts the stiffness of the LODI equations. The higher and the quicker the
system will stabilize to equilibrium and absorb reflections, but it may compromise numerical stability. The
lower the softer the absorption will occur but the simulation may be more stable. This can analogically be
compared to a spring-mass system where the relaxation parameter would represent the spring stiffness.
Please note: Recommended values for relaxation parameter should stay within the range of 0.5 - 1.5.
The default value of 0.5 is the recommended value. A relaxation parameter of 0 is equivalent to the
convective outlet boundary condition.
Please note: When the LODI option is turned on, the reference length parameter is available in the
Environment tab. The reference length must be set to the characteristic distance traveled by the
pressure waves to be damped.
The LODI equations expressed in macroscopic variables are solved at the boundaries. The Euler equations
without the transverse terms for a boundary normal to the X direction in 2D are:
The LODI variables can be written in the form of a vector U = (ρ; u; v; E). The LODI equations can be written
in the vectorial form:
where with L the amplitude variations, S a matrix of left eigenvectors of Γx, Λ the diagonal matrix
of the eigenvalues of Λ. The amplitudes L = (L1;L2;L3;L4) are therefore:
160 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Considering the test cases are isothermal and by means of the above equations, the LODI equations can be
reduced to the following relations:
5.4.1.3 Surfaces
By default, imported shapes are considered as one single group of surfaces on which a single boundary
condition is applied. It is possible to apply different boundary conditions to separate faces or shells of a
geometrical object.
Select the face or shell on which you want to apply a specific boundary condition:
The surfaces appear then in the tree of the parent shape (Project Tree > Geometry > Shape >
Surfaces), where the corresponding boundary condition can be specified.
It is possible to apply boundary condition on all shell or surfaces and/or rename shapes and surfaces doing a
right-click on the considered shape and as explained in the Shapes section.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 161
5.4 Geometry
5.4.1.4 Children
If the project deals with several entities, the user can establish a hierarchic relationship among them by
dragging one entity (child) onto Entities > Shape > Children of another (parent) entity, as shown in the
figure below. The reference frame of the child entity will then be defined with respect to the parent entity. To
reset the hierarchy level of a geometry right click on it in the project tree and select Send to 0-hierarchy
level.
Please note: Rigid body dynamics shapes cannot have enforced or rigid body dynamics parent.
Tip: Hierarchies can be applied between shapes entities as well as reference frame entities.
Entities hierarchy
When the energy equation is solved, it is needed to define thermal boundary conditions at the surfaces.
Four types of thermal boundary conditions are available in XFlow:
Adiabatic
Imposes zero heat flux through the boundary.
Temperature
Temperature law: This imposes a fixed temperature field at the boundary, according to the given
Temperature law (in K), which may depend on the space coordinates and time.
Heat flux
Heat flux q (in W/m2): The user can impose a heat flux defined by:
where k is the thermal conductivity (in W/K·m), A is the area through which the heat is being transferred
162 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Tip: The Heat Transfer Coefficient (HTC) thermal boundary condition can be imposed using the heat
flux boundary condition and the temperature variable u(x,y,z). Indeed, the HTC is related to the heat
flux through the law: , where q is the heat flux and ∆T the difference of temperature between the
fluid in contact to the wall and the outer temperature.
Therefore, to impose an HTC boundary condition one can impose the following heat flux law : [HTC*
(Temperature_Out - u(x,y,z))], where HTC and Temperature_Out must both be substituted
their values.
Free convection
Lets the energy go through the boundary. This is useful for instance to allow free heat transfer through
shell components, or for geometries set as conjugate heat transfer with a heat source (temperature or
heat flux) set on one of the faces so that the conduction between fluid and solid happens.
Please note: It is inconsistent to apply free convection on outer boundaries of an internal simulation as
no temperature information is available out of the fluid domain. The boundary would act as an adiabatic one.
Temperature jump
Temperature law: This boundary condition imposes a fixed temperature jump at both sides of the
boundary, according to the given Temperature law (in K), which may depend on the space
coordinates and time. Using the temperature field as the reference, half the temperature jump imposed
by the law is added on the boundary side where the surface normals are pointing to whilst the inner
side of the surface removes from the temperature field the other half of the jump. This boundary
condition conserves the energy of the system.
Convection Radiation
This boundary condition imposes a heat flux resultant from a parallel thermal circuit on a surface. The
thermal circuit parameters are the following:
Surrounding temperature / Temperature at infinity: Reference temperature of the thermal
circuit. Although both terms are named after the convective and radiative common notation, the effect
on the fluid is the same. [K]
Heat transfer coefficient: The heat transfer coefficient as defined in the previous tip under the Heat
Flux boundary condition [W m-2K-1]
This option is used to solve Conjugate Heat Transfer (CHT) analysis, where both solid conduction and fluid
convection are solved simultaneously. The solid geometry set as conjugate heat transfer must be a watertight
volume and the normals must point outwards. Also it is possible to impose CHT in geometry with thickness to
model solid conduction even if the geometry is bounding the internal simulation.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 163
5.4 Geometry
Please note: the thermal boundary conditions disappear when the option is enabled as this is a
volumetric condition, and by default all boundaries of the geometry are set as Free convection. If one face of
the solid has a specific input temperature or heat flux, one can select the surface > right-click > Apply
boundary condition to faces. The different surface groups will appear and thermal boundary condition can
then be set. Use then free convection on the faces that should have a conjugate heat transfer.
Where R is the thermal resistance (in K·m2/W), L (in m) is the coating material thickness and k (in
W/(K·m)) is the thermal conductivity of the coating layer. Heat flux through the material q is
modeled using the Fourier's law:
Where A (in m2) is the area through which the heat is being transferred. Therefore, the required
input parameters are the following:
Coating conductivity (in W/K·m) of the coating layer
Coating thickness (in m) of the coating layer
Please note: In case of bodies in contact (conduction), the heat transfer between them will
take into account the series of coating resistances.
Please note: Conjugate heat transfer is only available for fixed and enforced geometries.
Tip: Conduction between solids can be modeled introducing a small gap (less than one lattice) between
the solids in contact.
Example of application
A simple illustration of the CHT application is an internal pipe flow with conduction through pipe thickness.
164 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 165
5.4 Geometry
166 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
This option is available when the Structural analysis is activated by selecting the Abaqus option from the
dropdown list in Project Tree > Environment > Engine > Advanced Options > Structural
analysis. (+info)
Two way: The loads will be sent to Abaqus, and the shape will be updated with the deformed
geometry sent by Abaqus.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 167
5.4 Geometry
Please note: The two way co-simulation is only available for Fixed behavior. The local axis remains fixed
during the simulation, however the geometry may displace in Abaqus with respect to its local axis. This
displacement will be updated in the XFlow GUI.
Although initial position and orientation are available in the GUI, the current implementation is limited to
geometry with (0,0,0) initial Position and Orientation.
Simulations involving enforced geometries can be computed in arbitrary reference frame including non-
inertial reference frame. The option is shown when all the simulation geometries in the project are set to
enforced, or there is a geometry with rigid body dynamics behavior, either for internal or external
simulations.
The geometry selected as reference frame can be designated via the option:
Project Tree > Geometry > Arbitrary reference frame > Reference geometry
Please note: For internal simulations including a single enforced geometry, the arbitrary reference frame
will automatically be set to that geometry. However, if a rigid body dynamics geometry is added, the arbitrary
reference frame will be set to that geometry.
Please note: It is not possible to define an arbitrary reference frame if two shapes are set to rigid body
dynamics behaviour. In this case, the arbitrary reference frame dialog will disappear.
The selected geometry becomes the reference of the simulation, hence the geometry will become static in the
Graphic View and instead body forces will be applied to model the geometry motion.
Tip: The advantage of using arbitrary reference frame instead of actual moving geometries is to save
computational time avoiding the geometry displacement, and allows to visualize the output data as if located
on the selected arbitrary reference frame.
The possible applications that can be modeled using an arbitrary reference frame include:
Sloshing
Rotating systems
Accelerating bodies
Oscillating bodies
Complex relative motions between bodies
Please note: All the post-processing output will be provided in the arbitrary reference frame, including
position and orientations in the Function Viewer.
Please note: For external simulations, geometry used as an arbitrary reference should move towards
inlet boundary conditions only in order to have consistent boundary condition treatment. It is recommended
to use a generic rectangular domain and apply inlet boundaries in the directions of motion. Example: body
translating towards -X should have -X set as velocity boundary condition.
168 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: Rotations are supported only in one direction hence change in rotation direction must be
avoided.
Please note: Geometries moving towards other boundary conditions (walls, periodicity, etc.) should only
have very small displacement magnitude to remain consistent and domain size should be large enough.
Geometries moving towards outlet boundary conditions should be avoided. Example: body with sinus rotation
or translation in a wind tunnel flow.
Tip: when using tabulardata input in the motion laws please follow these guidelines:
use interpolated data (tatabulardatacubicinterpolated is suggested)
include an extrapolation of the law for t<0 for at least 1 timestep
data should be sampled with more significant digits than the timestep (e.g. 0.002916 and not 0.0029
for a dt=0.0025)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 169
5.4 Geometry
5.4.3 Cables
Project Tree > Geometry > Cables
For shapes with rigid body dynamic simulation, the cable feature allows the user to include cables (with
physical properties) interacting with solids and joints.
To add a cable: Right click on Project Tree > Geometry > Cables; it appears a menu with the option:
Add cable, click on it and a new cable will appear on the list.
To remove a cable: Right click on the cable to be removed Project Tree > Geometry > Cables; it
appears a menu with the option: Remove cable, click on it and the cable will be removed from the list.
Cables are modeled by a junction of short solid segments which number is automatically calculated by XFlow.
Each segment follows the damped harmonic oscillator equation:
170 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Remember: Cables only interact with solids and joints. They do not interact yet with the fluid.
Cable Name
Geometry (+Info)
Material (+Info)
Geometry
Point1/Point2: Coordinates defining both ends of a straight cable. The cable must be straight initially
but will be then able to move according to the parameters.
Radius: The cable section is circular. The thickness is therefore set as 2*radius.
Number of segments: number of azimuthal segments used to discretize the circular cross section
of the cable.
Tip: When using joints, it is recommended to locate them inside the cable to make sure they are
effective.
Tip: It is recommended to leave space between geometries and cables that are joined in order to
prevent from undesired collisions. Contacts between geometries and cables are always enabled.
Material
Density: Density of the cable material.
Young modulus: Young modulus of the cable material. It characterizes the stiffness of an elastic
material.
Second moment of area: the second moment of area Jl of the cross-section of a cable along the
Torsional rigidity: it is the product JT*G where JT is the torsion constant for the section and G the
shear modulus.
Damping: the damping (in N.s/m) allows to damp the oscillations produced by elasticity of the cable.
The damping is the constant c in the above damped harmonic oscillator equation and it is related to the
cable material properties through the following expression:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 171
5.4 Geometry
where ζ is the damping ratio, m the mass of the cable, E the Young modulus, A the cross section
and L the length of the cable. If ζ = 1, the cable will be in critical damping regime, if ζ < 1 it will be under
damped, and ζ > 1 will be over damped.
Please note: The maximum damping allowed is c = (0.5*L)/(dt*m) where dt is the smaller time step,
L the cable length, and m the cable mass.
Interaction properties
Static friction coefficient: the static friction coefficient between two surfaces of solids is defined as
the ratio of the tangential force (F) required to make an object sliding over the other divided by the
normal force between the surfaces (N): sfc = F/N. Basically, this means a static friction coefficient of 1
will require strong forces to move two static objects in contact, and a coefficient of 0 will let them move
immediately when a force is applied, as a slippery surface. (dimensionless)
Dynamic friction coefficient: The dynamic friction coefficient is the same than the static friction
coefficient but for two objects in motion. Even though they are in motion, the force of friction cannot be
eliminated completely and it continues to be a resistive force to motion. (dimensionless)
X,Y,Z: Coordinates of an external force with respect to the global axes. It can be useful to include for
example the gravity force.
172 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
5.4.4 Joints
Project Tree > Geometry > Joints
Joints are designed to constrain two geometries together, or a geometry to a given fixed point.
Please note: Joints are only available when at least one Shape has been set to rigid body dynamics
behavior or one cable has been created.
To create a joint: Right click on Joints and select Add joint. A new joint will appear on the list.
To remove a joint: Right click on the joint to be removed and select Remove joint. The joint will be removed
from the list.
Hinge: this requires a point (Pos) and a direction (Dir) in order to define an axis. The two objects are
then free to move around the axis but keep their distance to it. As an illustration, the constraint is
similar the operation of a door where an axis constraint two objects.
Please note: The hinge joints currently cannot be fixed to cables. To join a cable, please use a ball
joint.
Ball: this requires only a point (Pos). The two objects are free to move around the point, but keep a
constant distance to the point.
For any kind of joint, two bodies must be constrained together: Body1 and Body2. One can choose any
geometry set in rigid body dynamics or enforced behavior, as well as World. World defines the background
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 173
5.4 Geometry
and let fix the object to a fixed joint, whereas selecting a geometry may induce a displacement of the joint.
Tip: When using cables, it is recommended to locate the joints inside the cable to make sure they are
effective.
5.5 Simulation
Project Tree > Simulation
The Simulation tab of the Project Tree allows the user to set up both the temporal and spatial discretisation
resolution; and to specify how (where & when) to save the simulation results.
Wake resolution
Wake distance control
Adaptive refinement (+Info) Wake refinement threshold
174 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Vorticity
Static pressure
Fields to save Total pressure
Turbulence intensity
Effective viscosity
Temperature
Q-criterion
5.5.1 Time
XFlow is intrinsically transient, therefore time discretization must be defined.
Simulation time
Project Tree > Simulation > Time > Simulation Time
This parameter sets the temporal domain of the simulation. The physical time to be simulated.
Warning! Time step too big. Please, try to run again the computation
with a lower Courant number!!!
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 175
5.5 Simulation
The Courant Number is the main control over the time step scheme. Larger time steps lead to
faster computation, so it is advantageous to set the Courant Number as high as possible. On
other hand smaller numbers mean a more stable solution but it will be slower since it is doing
more steps.
Tip: For internal simulations where pressure boundary conditions are imposed at both inlet and
outlet, the estimated time step may be two low. In this case, it is recommended to adjust a fixed
custom time step or increase the Courant number to reach a Stability parameter around 0.1 - 0.3.
Fixed custom: The user defines a constant time step for the whole simulation:
Time step: By default it is set to 0.001 s.
Please note: The time step, either estimated by XFlow (Fixed automatic) or given by the user (Fixed
custom) corresponds to the biggest resolution of the lattice. Other resolution levels are automatically created
using spatial and temporal resolutions twice smaller than the previous level, forming the octree structure.
Please note: If the Acoustics analysis option is enabled, the time step can only be set as Fixed
automatic. The time step is forced in order to allow the pressure waves to travel with the right Thermodynamic
speed of sound (see Acoustics analysis).
The time step can be changed if the Time integration scheme is Fractional propagation (Evironement >
Engine > Advanced options > Time integration scheme: Fractional propagation) available in
Labs mode.
Example 1:
Time step mode Fixed custom
Time step 0.1 s
Frame frequency ( 5 Hz; fulfilling f= 1/ (dt * m), m being a natural number: f = 5 = 1/ (0.1*2)
+Info)
176 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Example 2:
Time step mode Fixed custom
Time step 0.1 s
Frame frequency ( 3 Hz; not fulfilling f= 1/ (dt * m), m being a natural number; m = 3.333
+Info)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 177
5.5 Simulation
Resolved scale
Project Tree > Simulation > Lattice discretization > Resolved scale
Spatial resolution at the far field, i.e. the resolution of the largest level of the lattice. The smaller it is, the
finer will be the spatial discretisation of your domain and thus the more accurate. However, the simulation
time will be large as more elements must be computed.
178 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
In the example, every red circle represents a voxel of fluid whereas the blue circles represent the NACA
boundaries. The discretisation of the NACA airfoil is very coarse and inaccurate, thus mesh refinement
would be recommended to get a definition of the geometry boundaries as the one shown on the right
hand side of the figure above.
XFlow provides different refinement algorithms to refine the solution only at some areas where details are
required; these is recommended since it reduces the overall number of elements, the amount of memory
and the computation time.
Refinement algorithm:
Project Tree > Simulation > Lattice discretization > Refinement algorithm
To improve the quality of the lattice, it can be locally refined according to the following options:
Disabled: It uses uniform resolution in the entire domain using the Resolved scale above.
Near static walls: To use a finer resolution than the Resolved scale in the regions close to
geometries. Every Shape resolution can be specified independently by the user.
Please note: The near static walls is a static domain topology and cannot follow moving
geometries. Use the adaptive refinement to refine dynamically moving objects.
Adaptive refinement: This algorithm is a dynamic domain topology. As for the near static walls it
refines in regions close to geometries, but besides refinements adapts dynamically to moving
geometries following their motion. Furthermore, it can dynamically refine the wake generated.
Please note: The adaptive refinement is not available yet for distributed computations (MPI). Use
the disabled or near static walls algorithms for distributed computation, eventually using refinement
regions.
Options
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 179
5.5 Simulation
Specify: the user can point out a region of fluid giving the coordinate of a single point:
Position: (X, Y, Z)
Example of two overlapping boxes with seed point on the left side and seed point on the right side
It is important to highlight that the original geometry will not be modified (i.e. the holes/gaps will still be
visible), but the lattice generation algorithm will not detect those features as holes/gaps.
Tip: If Automatic mode is set, the Seal small gaps feature will be activated only on those geometries
containing the string "holeFilling" in their names. This is the case for all the patches geometries output
from the Hole filling tool.
180 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
length
The refinement transition length (rtl) refers to the number of element layers between two refinement
levels, i.e. it represents the gradient in the transition from fine resolution at the walls to coarse resolution
in the far field. Small rtl values lead to quickly growing element sizes while large rtl values lead to smooth
transition but more elements.
Please note: The buffer zone length can only be an even number of lattice nodes due to the octree
structure of the lattice.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 181
5.5 Simulation
Percentage of the total domain volume that will be refined, i.e. if Threshold = 50 %, half of the initial
domain will be refined. Refinement is performed from high vorticity to low vorticity zones up to reach these
threshold.
This option is available for Single Phase flows when the Refinement algorithm is set to Near static
walls.
182 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Shapes options
Project Tree > Simulation > Lattice discretization > Shapes options
This section allows to apply options to specific shapes (local refinement, etc.).
Refinement near geometry wall is activated either in Near static walls or Adaptive refinement. A list of
the geometry objects involved in the simulation will appear to allow the user to define the resolution for
every Shape according to the following parameters:
Target resolved scale: Starting at the far field scale (Resolved scale), XFlow progressively
reduces the resolution size by a factor of 2 to approach the closer resolution to the Target
resolved scale.
Due to the lattice structure, each level of refinement is half size than the upper one. Hence, the
Target resolved scale should be: x/(2^n), x being the Resolved scale and n a positive integer.
If the user-defined Target resolved scale do not satisfy this rule, XFlow will automatically
replace it for the closest superior number that fulfills it.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 183
5.5 Simulation
184 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: Due to the lattice structure, each level of refinement is half size than the upper one.
Hence, if the Resolved scale is set to x, for finer refinement levels (Wake resolution, Target
resolved scale, Minimum scale) the resolution should be: x/(2^n), n being is a positive integer.
If any of the user-defined resolution-values do not satisfy this rule, XFlow automatically replace it for the
closest superior number that fulfills it.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 185
5.5 Simulation
Resolved scale=h
Example 1:
Resolved scale 1m
Refinement algorithm Near static walls
Target resolved scale 0.25 m; fulfilling x/(2^n), x being the
Resolved scale and n a positive integer: n=
2.
186 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Example 2:
Resolved scale 1m
Refinement algorithm Near static walls
Target resolved scale 0.06 m; not fulfilling x/(2^n), x being the
Resolved scale and n a positive integer:
n = 1 Target resolved scale = 0.5
n = 2 Target resolved scale = 0.25
n = 3 Target resolved scale = 0.125
n = 4 Target resolved scale =
0.0625 (Larger and closest number)
n = 5 Target resolved scale = 0.03125
Adaptive refinement:
Wake resolution
Project Tree > Simulation > Lattice discretization > Adaptive refinement > Wake
resolution
If the refinement algorithm is set to Adaptive refinement, the wake is dynamically refined at the given
wake resolution. The wake refinement criteria is based on the level of vorticity: XFlow dynamically refines
the regions of high vorticity which are characteristics for wake regions.
Please note: In free surface flows, the Wake resolution is called Interface/wake resolution because
the free surface is refined dynamically according to the wake resolution.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 187
5.5 Simulation
horizontal and/or vertical path) is used to calculate the distance from the object to any lattice node in
order to impose such condition.
Manhattan distances (red, blue, and yellow) in a grid compared to the diagonal distance (green)
Tip: If the wake refinement is not sensitive enough, decrease the threshold value (e.g. 0.01). If the
wake refinement is too sensitive, increase the threshold value (e.g. 0.5).
Please note: In free surface/multiphase flows, the wake refinement threshold is called Interface/
wake refinement threshold since it refines dynamically the free surface.
Regions
Project Tree > Simulation > Lattice discretization > Regions
This option is only visible if the refinement algorithm is either Near static walls or Adaptive refinement. It
allows the user to create regions of uniform refinement.
A new region is added by right clicking the Regions string, or by clicking the icon
188 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: The option Enable boundary conditions must be deactivated on a geometry
that wants to be used as an arbitrary region of refinement.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 189
5.5 Simulation
Folder
XFlow automatically creates a folder using the basename of the saved project file. This is where the
computational data will be saved
For more information about the files saved in the computation folder see: XFlow files.
Frames frequency
Project Tree > Simulation > Store data > Frames frequency
Number of frames per second (of simulated time) that have to be saved. This is the frequency at which
volumetric and surface data are output.
190 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: Time step (dt) and Frame frequency (f) are related as follows: f= 1/ (dt * m) ; m
being a natural number. If Time step mode = Fixed custom and the above expression is not satisfied
, XFlow will automatically adjust the Time step value as: dtnew = 1/(f*m) where m= ceil[1/(f*dtcustom )].
See Example 2 in Time.
Please note: Frames frequency is automatically adjusted when Acoustics analysis is enabled. Since
the time step is selected automatically by XFlow and is unique, the frames frequency is adjusted
automatically to be the closest multiple. See the Acoustics analysis chapter for more information.
Since lattice-Boltzmann uses sub-time-steps, the data is available at different frequency depending on the
local time steps. For this reason different options are available:
Solver time step: saves the numerical data at the coarser lattice level time step (Resolution >
Resolved scale). Every time step of level 0 will add a new plot to the numerical data graphs. This is
the recommended option in most cases since it is a good compromise between a too high and too low
frequency.
Frames frequency: saves the numerical data at the frame frequency defined (Store data >
Frames frequency). This option is useful only if you are not interested in the numerical post-
processing, you numerical data graphs may have a too low number of points for a good curve
description.
Highest available frequency: saves the numerical data at the finest lattice level set in the domain.
Indeed, since in the lattice-Boltzmann method each finer lattice level has a sub-time-step twice smaller,
the finest lattice level has the smallest time step and therefore the highest resolution frequency. It may
be useful to save numerical data at such high frequency in cases where you need good sampling of
your signals, such as for acoustics for instance. This option is available in Expert mode.
Arbitrary lattice level: saves the numerical data at the time step of a given lattice level. Indeed, since
in the lattice-Boltzmann method each finer lattice level has a sub-time-step twice smaller, the finest
lattice level has the smallest time step and therefore the highest resolution frequency. It may be useful
to save numerical data at intermediate lattice levels in case Probes are located in intermediate lattice
levels for instance. This option is available in Expert mode.
Please note: Curves may show in staircase when options Highest available frequency and
Arbitrary lattice level are used. This happens when the local data is available at a lower frequency
than the one define: since all numerical data are output with the same length some values are repeated.
For instance, if a probe is located out of the finest level level most of the signal will show staircase. To
avoid this, you must either make sure your probe lying within the finest lattice level, either switch to
"Arbitrary lattice level".
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 191
5.5 Simulation
Tip: Solver time step is recommended for most cases, but cases it may lead to a large numerical data
file (numericaldata.xml)when the solver frequency is high. Highest available frequency or
arbitrary lattice level may be useful for acoustics simulations where the signal sampling frequency (e.g.
probe static pressure) required must be high, and when the numerical data is located in the correct
refinement region (e.g. probe in a refined region), but it may conduct to a very large numerical data file
(numericaldata.xml).
Initial time for averaging (zero by default) This is the simulation time after which the
computation of the averaged (and standard deviation/RMS if enabled) will start. Before that time the
averaged, standard deviation and RMS fields will have no values.
Tip: It is useful to start the averaging after the transient period of the simulation in order to get
a better steady-state solution.
Save standard deviation and RMS fields (On/Off). To save the standard deviation and RMS
volumetric fields in addition to the averaged fields. All fields (velocity, pressure, etc.) will be
available as instantaneous, averaged, standard deviation, and RMS at the post-processing when
this option is enabled.
The standard deviation represents the variation and dispersion around an averaged value. It is
defined as:
where xi is the instantaneous field value and the averaged field value and N the number of time
step computed since the starting of the averaging.
The Root Mean Square (RMS) is the statistical measure of the magnitude of a varying field. It is
directly related with the averaged (avg) and the standard deviation (std) fields through the
relation:
Please note: Only standard deviation is stored in the hard disk, the RMS field is computed
based on the averaged and standard deviation fields.
Save axis force distribution (On/Off). This allows the computation by XFlow of two additional
averaged force values:
Force cumulation (in X, Y or Z direction): this is force cumulation over all geometries along
one direction, divided by the overall force in the considered direction. It is a non-
dimensional number which starts from 0 value and ends to 1 at the maximum length point in
the considered direction. It is useful to study the contribution of force increase/decrease
along a geometry, e.g. drag cumulation along a body in aerodynamics. The force
cumulation can be visualized in the Function Viewer and always shows the last time-
192 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Force distribution (in X, Y or Z direction): this is the force distribution over all geometries
along one direction. It shows the integrated force in two directions and how it distributed
along the third direction, e.g. the force in the plane YZ along the direction X. The force
distribution can be visualized in the Function Viewer and always shows the last time-
averaged (not instantaneous) force distribution:
Right click on the Function Viewer window > Axis force distribution > Axis X/Y/Z
> Fx/Fy/Fz
Please note: in multi-resolution this feature is supported only when all geometries are
refined with the finest resolution.
Please note: XFlow saves the force cumulation/distribution data of the last time step in
the files axisforcesdistributionX/Y/Z.txt available in the simulation folder. These
files are raw data, it is therefore recommended to get the force cumulation/distribution
through the Function Viewer.
Please note: Saving averaged and standard deviation fields will require three times more hard drive
space than saving only instantaneous data.
Compute markers
Markers are mass-less particles advected by the flow field. When enabled, the user will be able to
visualize the flow with markers in the post-process.
Please note: The markers must be enabled before running the simulation to be available in the post-
processing. Computation is quicker if they are disabled.
Output format
Only available in Labs mode.
Fields to save
The volumetric fields (vorticity, static pressure, total pressure, turbulence intensity, effective viscosity, Q-
criterion, etc.) storage into the data folder can be enabled/disabled. By default they are all enabled. To
save hard disk space, it is recommended to enable only the fields of interest.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 193
5.5 Simulation
Several filters can be computed for the same simulation. In order to create a filter: Right click on Project
Tree > Simulation > Store Data > Static pressure filters and select Add filter.
Please note: The higher the number of filter and the higher the computation time and hard disk
usage. Furthermore, the higher the filter order and the longer the computation.
Please note: The maximum frequency is half of the solver frequency due to Shannon-Nyquist
sampling theorem.
Probes
Probe is a predefined point where data are measured and saved during computation. The value of the
flow variables at a probe can be plotted in the Function Viewer.
Single Probe
A single probe can be created by:
Main menu > Post-Processing > Import from file > Probes > Grouped
Right click on Project Tree > Simulation > Store Data > Probes and select Add probe.
then input the probe coordinates in [m], and select the reference frame with respect to which the probes
are defined:
194 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Please note: Importing probes from file individually XFlow will prompt to select the desired reference
frame to use.
The filename extension should be: .txt. The text file should contain the probes coordinates given as
follows:
Example:
1 0 0
2 3 0
3 0 2
Please note: The file containing the probes location will be copied in the current working directory at
saving. The XFlow GUI will remove the actual path from the Project Tree.
If the probes file cannot be read by the solver at runtimes the simulation will exit with an error:
[ERROR] Probes file is missing: [filename]. Aborting simulation.
Once selected, click in the Graphic View with the mouse middle button to create the probe.
Then the user can define the Geometry, the Integral type
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 195
5.5 Simulation
The other inputs required to define the visualization of the cutting plane are:
Data: Chose Instantaneous, Averaged or Standard deviation.
Sample points: Number of points on the surface to compute the integral.
Example:
Please note: Solver surface integrals currently supports all geometries (fixed, enforced with and
without immersed-boundary and rigid body dynamics) for Enable boundary conditions: On and Off
. No post-processing geometries can be used.
196 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
5 Simulation Setup
Right click on Project Tree > Simulation > Store Data > Solver volume integrals and
select Add solver volume integral.
Then the user can define the Geometry, the Integral type
The other inputs required to define the visualization of the cutting plane are:
Data: Chose Instantaneous, Averaged or Standard deviation.
Example:
Please note: Solver volume integrals currently supports all geometries (fixed, enforced with and
without immersed-boundary and rigid body dynamics) for Enable boundary conditions: On and Off
. No post-processing geometries can be used.
Cutting planes
This feature allows to automatically store images of cutting planes of the XFlow simulation and store them
in the cutting_planes folder located in the simulation folder. The Axis, Position and Field options
are defined as in the Cutting Planes of the pos-processing section.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 197
5.5 Simulation
Please note: Automatic storage of cutting planes only allows to defined the axis in the global axes
directions (X,Y,Z) and to save only 3D fields.
The other inputs required to define the visualization of the cutting plane are:
Minimum: Minimum value of the plot field
Maximum: Maximum value of the plot field
Image width: width of the image in pixels
Color range: Color gradient to plot the cutting planes.
198 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
6 Computation
This chapter explains how to run a simulation, once it has been set up.
XFlow work flow: Project Tree categories in black . Computation is highlighted in orange.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 199
6.1 Run computation
Start computation
This option starts the computation (initial time = 0) and launches the XFlow Process Manager.
Numerical results are written in the data folder (Project Tree > Simulation > Store data > Folder
). If the folder contains data of a previous calculation, the user will be asked whether he wants to
overwrite them or rename the folder where the new data is going to be saved.
Resume computation
Continues the simulation from the last saved result (initial time 0) launching the XFlow Process Manager
.
Simulation results are written in the data folder (Project Tree > Simulation > Store data >
Folder), without overwritting previous simulation results.
To be able to use this feature, the user has to switch on the option:
Project Tree > Simulation > Store data > Save resume file (+Info).
The user will not be able to resume the computation without having enabled this option before launching
the computation.
Please note: The project has to be saved before being able to start or resume a computation.
To generate the Windows (.bat) and the Linux (.sh) scripts to launch the simulations:
Main menu >Simulation Data > Generate launch scripts
For more information about the simulation execution by command lines, see Advanced command lines.
Please note: The XFlow installation path and the Simulation directory path have to be checked and
changed before executing these scripts.
Tip: The Launch scripts are particularly usefully to launch simulations with Automatic initialization in
command lines.
For more information about the co-simulation workflow see CSS Co-simulation.
200 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
Tip: The co-sim launch script is automatically generated when running the XFlow simulation from the GUI.
Tip: The co-sim launch script should only be used for Simpack cosimulations. For Abaqus cosimulation, it
is recommended to use the FSI_II_std_css.xml file distributed with the XFlow installation package.
The advanced computation differs from the classic-serial and local computation in that it can run serial
remote as well as distributed computations. These are especially useful if a network of computational
workstations or even a High Performance Computing (HPC) cluster is available.
Please note: The advanced computation is a user-friendly interface, but any of these simulations can
similarly be executed through command lines. See the Advanced command lines chapter.
Please note: Local serial computations are those executed through the simple Run computation button
and are out of the scope of this section.
The serial computations allows the user to execute a computation on another machine remotely. This may be
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 201
6.1 Run computation
useful in different situations, e.g. if your local workstation has not enough computational resources but
another machine on your network has.
Please note: The computations launched remotely are connected to the local process manager. This
enables to monitor the simulation progress. If the simulation is stopped, XFlow creates an exit-xflow file on
the remote working directory to cleanly exit the engine execution.
XFlow provides a wizard to setup advanced computations in serial. This is shown in the figure and its options
are commented below:
Edit button: the command line as well as the execution script can be edited:
The command line is the command executed on the execution machine.
The script is a sequence of instructions for the job scheduler. It can include different variables
with the syntax %variable:
202 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
%engine: returns the installation path and corresponding engine. Example: /opt/
DassaultSystemes/XFlow/engine-3d (Linux).
%workingdirectory: returns the working directory defined in the Advanced computation
wizard.
%runfile: returns the name of the simulattion file. Example: projectname.xfp.
%args: returns the engine options according to the project file.
%threadsperjob: returns the number of threads defined in the Advanced computation wizard.
%numjobs: returns the number of processes defined in the Advanced computation wizard. Only
available for distributed computations.
%outputfile: returns the name of the log file preceded by the symbol ">". Example: >
projectname.out.
%machines: returns the list of the nodes participating in the computation. Only available if job
scheduler type = None. Example: hostname1,hostname2,hostname3.
%pathengine: returns the list of the installation path for each node of the table. Must be used
only when at least two nodes have a different installation path (otherwise, nothing is returned). Only
available if job scheduler type = None. Example: /path1,/path2,/path3.
%script: returns the name of the script file defined in the script text area. It corresponds to
projectname.sh.
%jobname: returns XFlow-[projectName]. Can be used as an identifier for job schedulers.
Please note: The default command line usually does not need modifications when no job
scheduler is used. You can recover the default command line clicking on the "Reset to default"
button.
Tip: Please reset the Advanced Computation execution line when installing a new XFlow version
or when changing the MPI implementation. To proceed, please use the "Reset to default" button.
Remote machine
Host name or IP of the remote machine where the computation will be run.
Please note: You have to click on the Edit button and set the installation folder as seen by the remote
computing machine.
Number of threads
Number of threads used on the remote machine for the computation.
Remote OS
Operating System (OS) of the remote machine.
Please note: For serial computation the remote machine OS must be Unix since Windows machines
do not include SSH server.
Working directory
Directory where the computation will be saved on the remote machine.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 203
6.1 Run computation
from the remote machine to your local machine in the local simulation folder defined in the Simulation
tab.
Remote post-processing
Executes the domain generator on the remote machine. This is recommended especially if the local
machine has low memory resources.
The distributed computations are running on more than one machine simultaneously, using an MPI (Message
Passing Interface) system. MPI splits the domain in several partitions, each of which will be computed on a
different machine. This option is usually recommended for HPC cluster, as illustrated in the figure below,
because the network must be optimum to efficiently exchange information among the computing nodes.
However, it can also be used on a single machine where different MPI instances of the engine can be run
simultaneously.
Please note: Distributed computation is currently available for any case-setup except those involving:
(1) Refinement algorithm = Adaptive refinement
Please note: The computations are connected to the local process manager. This enables to monitor the
simulation progress even if executed remotely from the cluster head node. If the simulation is stopped,
XFlow creates an exit-xflow file on the remote working directory to cleanly exit the engine execution.
Please note: In order to run distributed simulations in Windows OS the user must have a valid Intel MPI
installation or, at least, the Intel® MPI Library Runtime Environment for Windows.
XFlow provides a wizard to setup advanced computations in distributed mode. This is shown in the figure and
its options are commented below:
204 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
Edit button: the command line as well as the execution script can be edited:
The command line is the command executed on the execution machine.
The script is a sequence of instructions for the job scheduler. It can include different variables
with the syntax %variable:
%engine: returns the installation path and corresponding engine. Example: /opt/
DassaultSystemes/XFlow/engine-3d (Linux).
%workingdirectory: returns the working directory defined in the Advanced computation
wizard.
%runfile: returns the name of the simulation file. Example: projectname.xfp.
%args: returns the engine options according to the project file.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 205
6.1 Run computation
%threadsperjob: returns the number of threads defined in the Advanced computation wizard.
%numjobs: returns the number of processes defined in the Advanced computation wizard. Only
available for distributed computations.
%outputfile: returns the name of the log file preceded by the symbol ">". Example: >
projectname.out.
%machines: returns the list of the nodes participating in the computation. Only available if job
scheduler type = None. Example: hostname1,hostname2,hostname3.
%pathengine: returns the list of the installation path for each node of the table. Must be used
only when at least two nodes have a different installation path (otherwise, nothing is returned). Only
available if job scheduler type = None. Example: /path1,/path2,/path3.
%script: returns the name of the script file defined in the script text area. It corresponds to
projectname.sh.
%jobname: returns XFlow-[projectName]. Can be used as an identifier for job schedulers.
Please note: The default command line usually does not need modifications when no job
scheduler is used. You can recover the default command line clicking on the "Reset to default"
button.
Tip: Please reset the Advanced Computation execution line when installing a new XFlow version
or when changing the MPI implementation. To proceed, please use the "Reset to default" button.
Execution mode
The execution mode allows the user to chose either if the computation will be managed through a head
node or not:
Local: This mode does not manage the simulation through a head node. The jobs will be sent from the
local host and distributed to the nodes.
Head node: A head node will automatically appear at first position of the nodes table. The head node is
the node responsible to manage the simulation, send the jobs to the computational nodes and retrieve
the simulation results. The edit button allows the user to set the installation path of XFlow on the head
node.
Please note: One must select the "Head node" execution mode when using HPC clusters unless
XFlow is executed directly on a cluster node.
206 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
The number of nodes stands for the number of physical machines that will be running the computation in
the HPC cluster. Those nodes are automatically selected and managed by the job scheduler (if used). The
number of processes is the number of MPI engines run on each node. The total number of cores used in
the simulation will therefore be: number of nodes x number of processes.
The Autogen button is a tool that automatically generates a list of nodes. Once the Base address is
entered, the Number of jobs defines the number of total address generated, repeating each address by
the number set in Increase every. Example: if base address is 192.168.0.1, increase every = 2 and
number of jobs = 5, the list will be:
Number of Processes
This is the number of processes running on each node.
Remote OS
Operating System (OS) used on the computation environment (head node, nodes, remote machines,
etc.) and is independent of the local OS.
Please note: Remote OS must be Unix when a job scheduler is used, and when execution mode is
head node.
MPI implementation
Different MPI implementation are available in XFlow. One must select an implementation installed and
configured on the computation environment to be able to run a distributed computation. Compatible MPI
implementations are:
Intel MPI 5
OpenMPI 1.4
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 207
6.1 Run computation
OpenMPI 1.6
OpenMPI 1.10
Please note: When using the Intel MPI 5.1.2 implementation the user should check that the SMPD
service is running on each calculation machine by executing the command: C:\Program Files
(x86)\IntelSWTools\mpi\5.1.2.146\intel64\bin\smpd.exe -status.
Working directory
Directory where the computation will be saved on the head node or locally depending on the execution
mode.
Tip: For the best scalability performance it is recommended to use one partition (process) per node
and enable the hybrid parallelization in order for each process to use all the node threads available on
the node.
Example: a simulation is run on 3 nodes of 12 cores, then use Number of processes = 3 and
enable hybrid parallelization = 12 threads. The simulation will therefore run with 12*3 = 36 cores
in total.
Remote pre-processing
Executes the domain generator on the remote machine. This is recommended especially if the local
machine has low memory resources.
208 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
If the user closes the GUI but decides to keep the simulation running, the global progress of the simulation
can be followed in the Process Manager window.
The Message View reports additional information at every solver step, such as the stability parameter,
warnings or errors. For more information please see Message View.
Tip: If the computation time between two frames is long, it is possible to save an intermediate frame by
creating an empty text file named "savedata-xflow" or "savedata-xflow.txt" in the Simulation folder. The
engine will automatically detect this file and will proceed to save a frame data and continue the simulation.
Once the simulation finally arrives at the actual next frame, it will automatically replace the intermediate saved
frame by the actual one.
1. Click the Stop button at the bottom left corner of the GUI
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 209
6.3 Stop computation
3. Create an empty text file named "exit-xflow" or "exit-xflow.txt" in the Simulation folder. The engine will
automatically detect this file and will proceed to save the frame data and to exit.
210 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
6 Computation
XFlow Process Manager lists progress of the simulations (if running) and those that are queued.
The user can minimize/maximize and even close/open this window. Once it is closed it can be reopened by
clicking on the icon appearing in the system tray (Windows) or in the main panel (Linux), .
Queue jobs
XFlow allows the user to run several jobs simultaneously as long as enough cores are available (see
figure above: Test1 and Test2 running simultaneously). If a job submitted to the Process Manager and
the number of available cores is not sufficient, XFlow automatically queues that process (see figure
above: Test3 queued).
Once a computation finishes leaving enough cores to run a queued project, this will started automatically.
"savedata-xflow" or "savedata-xflow.txt". The engine will automatically detect this file and will
proceed to save a frame data and continue the simulation. Once the simulation reaches the actual next
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 211
6.5 File-based computation control
frame, it will automatically replace the intermediate saved frame by the actual one.
"exit-xflow" or "exit-xflow.txt". The engine will automatically detect this file and will proceed to save a
last frame data after completion of the current time-step (even if the simulation time does not match the
user setup value) and stop the computation.
"saveresume-xflow" or "saveresume-xflow.txt". The engine will automatically detect this file and will
create the resume files once the simulation reaches the following frame. This behaviour is not
equivalent to enabling the save resume file option in the GUI since it will create a resume point only for
that specific frame (the standard save resume file option overwrites the resume point at each frame).
The computation can, once the resume file saving operation has completed, be resumed from that
specific frame only via command line. No changes will be reflected in the GUI setup. A log entry will be
created: [ INFO ] Saveresume-xflow file found: saving a resume point.
"simulationtime-xflow" or "simulationtime-xflow.txt". The engine will automatically detect this file and
will change the simulation time initially set by the user with the number specified in the file. Various
formats can be used to specify the time in seconds (e.g. 10.0 s, 10, 1e10 s). The change will only be
effective if the specified time is greater than the current computation time. This parameter change will
be detected by the XFlow GUI and the following message will be shown to the user: "Simulation time
changed via the simulationtime-xflow.txt file. The project will be modified accordingly." A log entry
will be created: [ INFO ] Simulationtime-xflow file found: changing simulation
time to 10.0 s.
212 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
7 Post-Processing
This chapter explains how to post-process the simulation data, covering the following topics:
Post-processing tree: XFlow has a wide range of post-processing features that can be controlled from
the Post-Processing branch of the Project Tree.
Visualization fields, these are the XFlow output variables that can be post-processed.
Please note: Simulation data cannot be loaded in Editing mode since the project data might be different
from your simulation data. In order to be able to load the simulation data again, you may recover the
original project clicking on Editing mode in the top of the project tree.
XFlow work flow: Project Tree categories, the one correponding to the Post-Processing is highlighted in orange.
Post-Processing toolbar
Unlike other tabs of the Project Tree, this one has its own toolbar as it is shown in the figure below:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 213
7.2 Post-Processing tree
Create cutting plane Main menu > Post-Processing > Create cutting plane
Create stream tracer Main menu > Post-Processing > Create stream tracer
Create plot line Main menu > Post-Processing > Create plot line
Create surface integrals Main menu > Post-Processing > Create surface integral
Create custom field Main menu > Post-Processing > Create custom field
To create any other type of post-processing object, the user have three possibilities:
1. Right-click on it and select the Add button
2. Click on the corresponding icon in the post-processing toolbar, or go to Main menu > Post-
Processing and choose the object to be created
Each object will appear in the Post-Processing tab of the Project Tree, in the corresponding section to
214 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
its type.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 215
7.2 Post-Processing tree
General (+Info)
Cutting planes (+Info)
Isosurfaces (+Info)
Stream tracers (+Info)
Plot lines (+Info)
Sensors (+Info)
Surface integrals (+Info)
Volume integrals (+Info)
Custom fields (+Info)
Cameras (+Info)
Views (+Info)
7.2.1 General
Project Tree > Post-Processing > General
The General section of the Post-Processing tree gather global parameters of visualization as well as 3D
visualization features which are global to the domain.
7.2.1.1 Data
The option Data allows the user to select the type of data to be post-processed among:
Instantaneous
Averaged
Standard deviation
RMS
216 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Please note that average, standard deviation, and RMS data are only available if the user has chosen to save
the average and standard deviation and RMS values in the simulation setup (+Info in Project Tree >
Simulation > Store data > Save averaged fields).
7.2.1.2 Interpolation
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 217
7.2 Post-Processing tree
7.2.1.3 Show
Domain structure
Project Tree > Post-Processing > General > Show > Domain structure
If enabled with the view icon , it displays the borders between the different lattice levels in three
dimensions. Each lattice level is shown as an isosurface with transparency and with a different color. The
different visualization options are:
Min level: minimum lattice level number to be plot. Zero corresponds to the coarser lattice level,
defined by the project resolved scale.
Max level: maximum lattice level number to be plot.
Cell size: displays the voxelization of the lattice elements on the border surfaces.
218 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Tip: To navigate through the different refinement levels: Select the Graphic View window and press
+ to increase the level or - to decrease the level
Please note: By default the domain structure is visualized on the entire 3D domain and it can require
considerable memory usage. It is advisable to set a cutting plane visibility on before activating the
Domain structure. This will limit the domain structure to be visualized only in the cutting plane region and,
hence, ease the memory requirements.
Volumetric field
Project Tree > Post-Processing > General > Show > Volumetric field
Volumetric field shows (in the entire domain) the chosen visualization field with an opacity given by a
specified transference law:
visualization field: see visualization field
Transference law: This law is a function of a (alpha value), where a=0 corresponds to the legend
minimum and a=1 to the maximum. Examples:
o Transference law = a*a assigns more opacity to the largest values of the visualization field
o Transference law = 1-a assigns more opacity to the smallest values of the visualization field
Tip: The volumetric field using interpolated data is extremely slow. It is recommended to have the
interpolation switched off.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 219
7.2 Post-Processing tree
Markers
Project Tree > Post-Processing > General > Show > Markers
This option is only available for Free surface simulations and if the Compute markers option is
enabled prior to launch the simulation (+Info Project Tree > Simulation > Store data >
Compute Makers). If so, markers represent mass-less particles advected by the flow field and
represent the fluid in the domain.
Representation: Select the shape of the marker: Points, Arrows, Spheres, Sharks,
Snowflakes.
From: Select where to show the markers:
o Liquid: Markers are only shown for the liquid phase [availble if Multiphase particle-based
tracking model enabled]
o Surface: Markers are only shown at the free surface
o All: Markers are shown within the whole domain.
color by field: Select the field according to which the markers are colored (see visualization
fields).
Please note: The markers require to be enabled before running the simulation to be available in the
post-processing. Computation is quicker if they are disabled.
Surface info
Project Tree > Post-Processing > General > Show > Surface info
This option allows the user to observe the projection of fields over geometries. One can choose to project
one field from the following list:
3d field: It displays the field value of the fluid touching the surface (first element next to the surface),
not the value of the solid surfaces.
Field: The user has to select the field to be displayed on the surface.
LIC: Line Integral Convolution of the velocity field. It provides a representation of the flow analogous to
the resulting pattern of a tract of wind-blown sand, and involves selectively blurring a noise image as a
function of the velocity vector field.
Noise size: To set up the initial Perlin noise pixel size.
Motion blur amount: To set up the blurring level (length).
220 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
where Pstatic is the local static pressure, the reference density and Vref the specified reference
velocity.
where w
is the wall shear stress.
where v is the friction velocity at the wall and y is the distance to the wall.
Heat flux: Heat flux at the surface. This option is only enabled if Thermal model is non isothermal.
Heat transfer coefficient: The heat transfer coefficient (HTC) is a constant of proportionality between
the heat flux and the temperature gradient at wall boundaries. It is used to compute the heat transfer
such as the convection between fluid and solid. The heat transfer coefficient is available for non-
isothermal and isothermal simulations:
The isothermal definition is estimated based on the skin friction, according to the HTC
Estimation mode selected.
The non-isothermal (segregated energy, coupled energy, supersonic) is defined with the classic
definition:
For non-isothermal simulations, the HTC is only defined on wall boundaries with a temperature
thermal boundary condition, and free convection in case of solid conduction. The HTC is equal
to zero on adiabatic boundaries and heat flux boundaries.
Fx, Fy and Fz: Force contribution per unit of surface in N/m^2. This can be used in order to see
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 221
7.2 Post-Processing tree
Isocontours
Project Tree > Post-Processing > General > Show > Isocontours
Isocontours plot lines that joint the points in the domain with the same value (magnitude). The number of
contours is set by the variable Number.
Cutting planes are useful to visualize the numerical data on a plane of interest; the dimensions of which are
limited by the domain size. To create a cutting plane do right click on the Cutting planes branch of the
Project Tree and choose Add Cutting plane, or press button on the Post-Processing toolbar.
222 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Axis
The axis defines the normal of the cutting plane. It can be set to:
X: Global X axis
Y: Global Y axis
Z: Global Z axis
Arbitrary axis: To set a user defined plane defined by:
Origin: Coordinates of the origin of the normal.
Normal: Components of the vector normal to the plane.
Position represents the location of the cutting plane in the direction of the axis, according to the
domain size (between 0 and 1).
Tip: Cutting planes can be translated using the translation Gizmos. To do so, select the cutting plane,
, and do the following:
drag the Gizmo axis (corresponding with the cutting plane axis), or
click on the Gizmo axis and set the translation distance (in meter) in the translation
dialogue-box, e.g X = 1m, Y = 0m, Z=0m) .
Visualization mode
The visualization mode of the cutting plane can be set up to:
3d fields
Vectors
Surface fields distribution
Domain structure
The inputs required to define the visualization of the cutting plane are:
Field: Field to plot on the cutting plane
Ray-tracing: Ray-tracing is a technology to display the field values on the plane which pixelizes
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 223
7.2 Post-Processing tree
the cutting plane progressively through rays. This requires to recompute the cutting plane display
every time the camera position is changed and may be slower. It is recommended to leave this
option disabled unless you encounter specific issue to plot the cutting plane.
Visualization material
It is possible to set a material setting to the cutting plane by selecting the Object Filter and right click on
the cutting plane.
The default choice is Flat, which allows the user to control only the Opacity level (transparency), while
the Realistic option gives the user access to the same material presets used for geometries (+info).
7.2.2.1 3d field
This visualization mode allows the user to select a Field and to visualize its contours on the selected cutting
plane, as shown in the figure below.
224 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
affected by some of the options available in the General, namely: Data, Interpolation mode, Domain
structure and Isocontours.
The cutting plane data can be exported as raw data (.tex file) as explained in the Export data section:
Main menu > Simulation Data > Export cutting plane data to raw format
Local values of the field being visualized on a Cutting Plane are accessible via the option Look up value of
the Toolbar Data Processing, . This displays the value of the visualized field at the cursor location.
7.2.2.2 Vectors
The velocity vectors can be visualized on a Cutting Plane by selecting the Vectors visualization mode.
The velocity field is represented by arrows that can be customized with the following parameters:
Uniform distribution (On/Off); If enabled, it allows the user to see a uniform distribution of the
plane vectors, in case a refinement algorithm has been used in the simulation.
Arrows density: To change the density of the vectors. The arrow density ranges between 1, that
corresponds to one arrow per lattice point (domain structure), and 0 corresponding to a default
minimum number of vectors.
Arrow length: To change the length of the arrow shaft.
Field: Arrows are colored according to this field magnitude on the cutting plane.
At least one geometry is required to see the Surface field distribution. XFlow will show 4 graphs around
the object: top, bottom, left and right; showing the projection of a given field on the intersection between the
geometry and the plane. For each of them the maximum and minimum value is indicated, as shown in the
figure below:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 225
7.2 Post-Processing tree
The Surface field distribution visualization mode is affected by some of the options available in the
General, namely: Data, Interpolation mode.
The four graphs can be exported numerically in separated files as explained in the Export data section:
Main menu > Simulation Data > Export data of cutting plane field distribution
226 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
The fluid domain structure can be observed selecting the domain structure as visualization mode. This shows
the lattice structure as a voxelization where lattice nodes are located in the center of every square.
When the interpolation is disabled, the entire voxel is colored by the value at the lattice node:
Lattice nodes inside moving geometries will be marked with a dot inside in order to differentiate fluid and solid
regions:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 227
7.2 Post-Processing tree
Color by level (On/Off): colors each lattice level with a different color.
228 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Tip: If buffer zone length greater than zero is used, it is useful to color the domain structure by lattice
levels in order to observe the buffer zone.
7.2.2.5 Markers
Markers visualization mode is only available for Single phase simulations and when the makers computation
has been activated before running the computation (+ Info Project Tree > Simulation > Store data >
Compute markers) .
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 229
7.2 Post-Processing tree
Points: Markers are represented by points, colored according to the field selected in:
Fields (see visualization fields)
Arrows: Markers are represented by arrows describing the velocity field:
Uniform length On/Off. If disabled, the arrow length is proportional to the velocity magnitude at
the point where the marker is placed. If enabled, the user can select the arrow length with:
Arrow length
Fields: To choose the field according to the magnitude of which the arrows are colored (see
visualization fields)
Spheres: Markers are represented by spheres, colored according to the field selected in:
Fields (see visualization fields)
7.2.3 Isosurfaces
Project Tree > Post-Processing > Isosurfaces
An isosurface is a surface defined by a constant value of a field. Since the field is constant on the surface, it
can be colored according to the value of other variables at the surface points. This is shown in the figure
below:
230 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
The user can define and customize the isosurface using the Isosurface branch options:
Field: A drop-down menu which shows the available fields for the generation of isosurfaces. A
constant value of this field will define the isosurface topology (see Value below).
Value: This option allow the user to define the value (of the Field chosen above) used to build the
isosurface.
Coloured by field: An isosurface represents a constant field, thus another field can be used to color
the surface, for better representation. The user can choose one of the fields available in XFlow, or just
set it to Off to visualize it with a constant color (see visualization material).
Joint Levels: This option smoothes out the transition between levels on a multi-resolution case, at the
cost of taking longer to compute.
Once an isosurface is created, if either the Field or Value settings are modified the isosurface has to be
refreshed to regenerate it according to the new setup. To do so, right click on Isosurface and select the
Stream tracers integrate the streamlines in the velocity field and so allow the tracking of the Lagrangian
particles along the flow.
The particles can be mass-less particles (passive) advected by the fluid, or solid spherical particles with
physical properties (Discrete Phase Model).
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 231
7.2 Post-Processing tree
The Stream tracer feature has a complex data structure that if well understood makes this feature very
versatile. This data structure is as follows:
Behaviour
The particle behaviour defines the physics represented by the stream tracers:
Passive: The particles are mass-less particles (passive) advected by the fluid. If the user sets up this
feature properly, he will be able to visualize stream lines or flow trajectories. See more details in
Passive.
DPM: This option define the particles (tracers) as solid spherical particles with physical properties.
DPM is a simplified but useful method to simulate a solid dispersed phase or bubbles in the matrix of
another fluid (either liquid or gas). See more details in DPM.
Path lines
Stream-tracer path-lines are generated using the information of the numerical results in the frames range
limited by:
From frame
To frame
Show
The visualization of the stream tracers can be customized here with the following options:
Path line: Off / Line / Ribbon / Spheres chain / Tube
Current maker: Off / Point / Sphere
Size factor:
colored by:
232 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Particle attribute:
Id: each particle is colored by a different color according to its ID.
Velocity: the particles are colored by their own velocities that could differ from the fluid
velocity.
Size: the particles are colored according to their diameters.
3d field: See Fields
Please note: Tracers will not collide with simulation entities with Enabled boundary condition: Off,
and with post-processing entities. They will only collide against active simulation geometries.
Timeline
Visualization of stream tracers enables a second timeline.
For steady tracers, this second timeline over the standard one refers to the integration time set in Stream
Tracers > Tracer # > Timing.
For transient tracers, this second timeline is superposed to the standard one and therefore it refers to the
physical time.
Function Viewer
In the Function Viewer it is possible to monitor some of the particles properties, such as the number of active
particles. For more information go to Post-Processing-Function Viewer
7.2.4.1 Passive
Passive stream-tracers allow the user to track mass-less Lagrangian particles along the flow. It is thus useful
to observe the classical field lines, such as streamlines, streaklines or trajectories; the visualization of which is
controlled by the following data structure:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 233
7.2 Post-Processing tree
Source
The source of stream tracers is a geometry Shape, usually a line or plane. If the source is not one of
the geometry surfaces, the user can create a post-processing entity (see Geometry creation).
Inlet: Shape acting as the tracers inlet. If "None" is selected, no tracer inlet will be used and an
initial volume distribution could be used instead.
Number of tracers: Number of particle emitters (seed points), the distribution of which over the
source Shape is randomly generated but it is kept constant in time. If it is set to zero, only one
emitter is created but its position is not fixed in time, but it is randomly modified from frame to
frame.
Particles flux rate: Total number of particles (tracers) emitted per second. Note, that if it is set
to zero, it will generate just one sequence of particles.
Initial conditions
Initial conditions for tracers can be set in this section.
Particles distribution On / Off
Source volume The volumetric geometry where the initial particles will be created
Number of particles The number of particles that will be created initially inside the source volume
Particle properties
Passive tracers are mass-less and physical properties of the particle are thus not required.
In this section, only the velocity field used to calculate the particles-flowlines can be chosen between:
234 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Timing
The transient behaviour of the pathlines can be switched On/Off.
On: the tracers are computed taking into account the variations of the field in time (e.g. trajectories)
and therefore require the initial and last frames.
Initial frame
Last frame
Loop: On/Off. When enabled, allows to loop the tracer calculation from between initial and last
frame. The number of loop iterations must be provided. This option is only available for transient
tracers.
Example: a pump revolution is done from frame 5 to frame 15 and one wants to compute the
tracers for 10 revolutions. The initial frame will be set to 5 and the last frame to 15, and the number
of iterations will be set to 10.
Off: then the tracers are steady and require the reference frame at which the tracers will be computed
(e.g. stream line). XFlow will take the reference frame and compute the tracers according to the flow
field at the corresponding simulation time.
Reference frame
Time
Frequency
Please note: The trajectory of a single particle is given by the pathline resulting from the following
setup:
Number of tracers = 1
Particles flux rate = 0
Timing = On
Please note: The streaklines of a flow are represented by the tracers position at given frame,
resulting from the following setup:
Number of tracers = 1
Particles flux rate = 20
Timing = On
Please note: The stream lines of the flow at a given instant of time are given by the pathlines
resulting from the following setup:
Number of tracers = 10
Particles flux rate = 1
Timing = Off
Backtracking: On/Off. Switch to enable/disable the tracers back-track. If enabled the passive
particles placed at the Source> Inlet are traced back in time, so the tracer path leads back to its
source in the flow inlet or far field.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 235
7.2 Post-Processing tree
7.2.4.2 DPM
Discrete Phase Model (DPM) allows the user to simulate particles with mass. For more information about this
model, see Modeling Discrete Phase.
The data structure for the stream tracers behaving as DPM is similar to that of the passive tracers. As shown
below, the main difference between DPM and Passive tracers is found in the Particle properties definition,
where physical properties are required for DPM particles but not for Passive ones.
236 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Source
The definition of the source of this type of stream tracers is analogous to that of Passive tracers. Please,
go to Source.
Initial conditions
Particles distribution On / Off
Source volume The volumetric geometry where the initial particles will be created
Number of particles The number of particles that will be created initially inside the source volume
Velocity laws Initial velocity u(t=0). It can be defined as a function of properties of both phases. See
Functions.
Particle Properties
Density Particles density in kg/m3.
Diameter Characteristic particles diameter, required to calculate the drag coefficient. The larger the
heavier, and the higher the drag.
Standard deviation: Standard deviation in particle diameter in meter. This allows to use a variable
diameter distribution.
Normal velocity restitution: Restitution coefficient of the normal velocity component after colliding a
wall. If it is equal to 1, the particles will bounce with the same incident normal velocity. This factor can also
be defined as a law in function of the particles or fluid variables. It can be a function of the DPM variables,
see Functions.
Normal velocity restitution = 0 Normal velocity restitution = 0.5 Normal velocity restitution = 1
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 237
7.2 Post-Processing tree
Tangential velocity restitution: Restitution coefficient of the tangential velocity after colliding a wall. It
basically represents the amount of tangential velocity lost by friction to the walls. If the value is set to 1 then
the particle slides perfectly as on a free-slip wall, if the value is set to 0.5 the particle will have a tangential
velocity decelerating by half. This factor can also be defined as a law in function of the particles or fluid
variables. See Functions.
Wall adherence model: On / Off
Normal restitution threshold Threshold value of the normal velocity restitution defined above below
which the particle will adhere to the wall.
Turbulent dispersion Turbulent dispersion can be enabled only when Averaged results have been saved
and Data = Averaged.
Acceleration laws (aExt(p)) External acceleration that only affects the disperse phase (not the matrix
fluid). It can be defined as a function of properties of both phases. See Functions.
Data Instantaneous or Averaged data.
Timing
The definition of the timing of DPM stream-tracers is analogous to that of Passive stream-tracers. Please, go
to Timing.
Histogram
Number of bins: The particles distribution histograms is available in the Function Viewer when the
diameter Standard deviation value is not 0.
XFlow uses a distribution function to generate particles with diameters between the maximum and the
minimum diameter value. This distribution function is divided by the Number of bins provided by this
parameter in order to calculate the distribution of the particles along the diameter range. Therefore the
higher the number of bins, the more accurate the discretization of the distribution function.
238 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Besides solving the transport equations for the continuous phase, XFlow can also calculate the transport of a
discrete phase consisting of spherical particles (representing: droplets, dust, bubbles, etc) dispersed in the
continuous phase. To this end, XFlow solves the following equation of motion:
where:
: Particle velocity
: Acceleration of the particle due to the drag force exerted by the fluid on the particle.
: External acceleration affecting both phases (f,p), e.g. gravity.
: External acceleration affecting only the disperse phase (p).
The discrete phase model (DPM) characteristics are thus the following:
1. It calculates the particles trajectory using a Lagrangian formulation that includes the discrete phase
inertia, hydrodynamic drag, and the effect of external forces, for both steady and transient flows
2. It predicts the particles dispersion due to turbulence
3. One-way coupling, i.e. fluid flow influences particles via drag and turbulence, but particles have no
influence on the fluid flow
4. It accounts for particle-wall collisions, but particle-particle ones are not considered.
Limitations
The discrete phase formulation used by XFlow contains the assumption that the second phase is sufficiently
diluted that particle-particle interactions and the effects of the particle volume fraction on the continuous
phase are negligible. In practice, these issues imply that the discrete phase must be present at a fairly low
volume fraction, usually less than 10-12%. Nevertheless, it is possible to solve problems in which the mass
loading of the discrete phase exceeds this proportion.
The discrete phase model is available once the matrix flow has been computed.
The setup is done in Post-Processing > Stream Tracers > Tracer #, while the visualization is
controlled in Post Processing > Stream tracers > Tracer # > Show (see Stream tracers).
A data plot line allows the user to monitor in the Function Viewer the evolution of a field along a line.
To create a Plot line do right click on the Plot line branch of the Project Tree and choose Add data plot
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 239
7.2 Post-Processing tree
If the user changes the setup of the plot lines, it will be necessary to refresh the data by right clicking on
Line # in the Project Tree and then selecting Refresh, or just pressing the refreshment button .
To display the results along the line, open a Function Viewer window and do right click, a drop-down menu
will appear showing the option: Plot lines > Line #. This displays the evaluated field (Y-axis) against the line
length (X-axis). For transient cases, playing forward the results for each frame will be shown, updating
the curve on the function viewer.
7.2.6 Sensors
Project Tree > Post-Processing > Sensors
Sensors allow the user to monitor the evolution with time of a field at a point.
Single sensor
To add a sensor do right click on the Sensors branch of the Project Tree and select Add sensor, or press
button on the Post-Processing toolbar. Once a sensor is created, the user should define the following
parameters:
Position: Coordinates defining the location of the sensor.
Field: Choose the field to be monitored.
Data: It can be chosen among: instantaneous, averaged or standard deviation (The last two are available
only if calculated in the simulation).
Interpolation mode: On/Off. Uses interpolated data.
Please note: If Interpolation mode: On, the interpolation scheme would be either Convolution
or MLS according to what is selected in Project Tree > Post-Processing > General >
Interpolation
Frames range:
o All: Reads the sensor values for all the frames available in the simulation.
o Only current: Reads the sensor value only for the current selected frame.
o Custom: Reads the sensor value for a custom range of frames, between From frame until To
frame.
240 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
analysis > Import from file > Sensors > and choose the text file containing the sensors data. The sensors
must be defined in the text file according to the following syntax:
Example: groupOfSensors.txt
111
Velocity
Instantaneous
On
3 0.5 0.2
Vorticity
Instantaneous
On
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 241
7.2 Post-Processing tree
Finally, click in the Graphic View with mouse middle button to create the sensor.
To display the results at the sensor, open a Function Viewer window and do right click on it, a drop-down
menu will show the following option > Sensors > Sensor #. This displays the evaluated field (Y-axis) against
the time (X-axis).
Please note: The Function Viewer plots the value of the field at the sensor position versus time. It is thus
relevant to see the transient evolution of the field at the location of the sensor, and not only an instantaneous
value.
When changing any of the sensor parameters (Position, Field, Data, Interpolation mode) it is
necessary to refresh the data sensor again by right clicking on Sensor # in the Project Tree and then
Tip: To avoid refreshing the sensors it is good practice to use the Probes. Probes are available in
Project Tree > Simulation > Store data > Probes and are predefined points where data are
measured and saved during computation. The graph of the flow variables at the probes are directly available
in the Function Viewer.
A surface integral allows the user to integrate a scalar over a surface and obtain quantities such as the
average, root mean square, or standard deviation values of a scalar field on a surface.
242 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Integral type:
o Sum: integrates the scalar Φ over the Geometry surface A. This returns the sum of the discrete
values expressed in the units of the field multiplied by meter square [Field units x m2]. It is
defined by the following relation:
This integral type can be used to compute for instance a fluid force exerted on a body, or a mass
flow through a section.
Tip: To compute the mass flow passing through an arbitrary section, create a custom field such as:
[rho*(vx*nx+vy*ny+vz*nz)]. Compute the sum-type surface integral of this custom field to get
the mass flow in kg/s.
o Average: integrates the scalar Φ over the Geometry surface A, normalized with the Geometry
surface A. This returns the area-average value of the field, expressed in the units of the field [
Field units]. It is defined by the following relation:
This integral type can be used to compute for instance the area-averaged pressure on a geometry,
or submersed fraction of an object integrating the VOF field.
o Standard deviation: integrates over the Geometry surface A the deviation of the scalar Φ from
the average value Φavg. This returns the standard deviation of the scalar field over the surface,
expressed in the units of the field multiplied by meter square [Field units x m2]. It is defined
by the following relation:
o RMS: computes the square root of the integrated quadratic terms over the Geometry surface A,
normalized with the Geometry surface A. This returns the root mean square of the scalar field
over the surface, expressed in the units of the field multiplied by meter square [Field units]. It
is defined by the following relation:
o Max: returns the maximum value of the selected field on the surface.
o Min: returns the minimum value of the selected field on the surface.
Field: Field to be averaged on the surface, custom fields are also available, which can be defined as
a function of the Geometry normal components (nx, ny, nz).
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 243
7.2 Post-Processing tree
Tip: To compute the mass flow passing through an arbitrary section, create a custom field such as:
[rho*(vx*nx+vy*ny+vz*nz)]. Compute the surface integral of this custom field with
Normalization = Off.
Data: Type of data to be used for the integral: instantaneous, averaged or standard deviation. The last
two are available only if calculated in the simulation.
Interpolation mode: On/Off. If enabled the integral results on the surface are interpolated, else
non-interpolated data is used.
Please note: If Interpolation mode: On, the interpolation scheme would be either Convolution
or MLS according to what is selected in Project Tree > Post-Processing > General >
Interpolation
Sample points: Number of points to sample the surface of the object. The more points, the more
accurate the integral will be however it may increase the computation time of the integrals.
Frames range:
o All: Computes the integral for all the frames available in the simulation.
o Only current: Computes the integral only for the current selected frame.
o Custom: Computes the integral for a custom range of frames, between From frame until To
frame.
Compute both sides: On/Off. If enabled, for each sampled point two field evaluations are made:
one on the surface side where the normals are pointing to and another one on the reverse side;
otherwise the surface integral is only calculated over the surface side to which the normals are
pointing.
If the option Only current frame is set to Off, XFlow will load the simulation frames one after one
automatically and the surface integral computed for each of them to get the time history of the integral.
If the option Only current frame is set to On, XFlow will compute the surface integral on the current
selected frame.
Tip: You can compute all surface integrals at once by selecting all surface integrals (select the first
surface integral and press SHIFT + select the last of the list) and then using the refresh icon in the post-
processing toolbar.
To observe the surface integral history, open a Function Viewer window and do right click on it, a drop-
down menu will show, among others, the following option > Surface integrals > Surface #. This displays the
244 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
integrated value of the field (Y-axis) versus the time (X-axis). If the option Only current frame is set to On,
a single value will be shown as a straight horizontal line.
Please note: The Function Viewer plots the value of the visualization field versus time. It is therefore
relevant to see the transient evolution of the integral, and not only an instantaneous value as fluctuations can
be expected.
A volume integral allows the user to integrate a scalar over a volume and obtain quantities such as the
average, root mean square, or standard deviation values of a scalar field on in the volume of integration.
Integral type:
o Sum: integrates the scalar Φ over the Geometry volume V. This returns the sum of the discrete
values expressed in the units of the field multiplied by cubic meter [Field units x m3]. It is
defined by the following relation:
This integral type can be used to compute for instance a fluid force exerted on a body, or a
mass flow through a section.
Tip: To compute the mass flow passing through an arbitrary section, create a custom field such as:
[rho*(vx*nx+vy*ny+vz*nz)]. Compute the sum-type surface integral of this custom field to get
the mass flow in kg/s.
o Average: integrates the scalar Φ over the Geometry volume V, normalized with the Geometry
volume V. This returns the average value of the field in the volume, expressed in the units of the field
[Field units]. It is defined by the following relation:
This integral type can be used to compute for instance the area-averaged pressure on a geometry,
or submersed fraction of an object integrating the VOF field.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 245
7.2 Post-Processing tree
o Standard deviation: integrates over the Geometry volume V the deviation of the scalar Φ from
the average value Φavg. This returns the standard deviation of the scalar field in the volume of
integration, expressed in the units of the field multiplied by meter square [Field units x m2]. It
is defined by the following relation:
o RMS: computes the square root of the integrated quadratic terms over the Geometry volume V,
normalized with the Geometry volume V. This returns the root mean square of the scalar field in
the volume of integration, expressed in the units of the field multiplied by meter square [Field
units]. It is defined by the following relation:
o Max: returns the maximum value of the selected field on the surface.
o Min: returns the minimum value of the selected field on the surface.
Data: Type of data to be used for the integral: instantaneous, averaged or standard deviation (the two
latest options are available only if calculated in the simulation).
Interpolation mode: On/Off. If enabled the integral results are interpolated, else raw data is used.
Please note: If Interpolation mode: On, the interpolation scheme would be either Convolution
or MLS according to what is selected in Project Tree > Post-Processing > General >
Interpolation
Frames range:
o All: Computes the integral for all the frames available in the simulation.
o Only current: Computes the integral only for the current selected frame.
o Custom: Computes the integral for a custom range of frames, between From frame until To
frame.
If the option Only current frame is set to Off, XFlow will load the simulation frames one after one
automatically and the volume integral computed for each of them to get the time history of the integral.
246 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
If the option Only current frame is set to On, XFlow will compute the volume integral on the current
selected frame.
Tip: You can compute all integrals at once by selecting several volume integrals (select the first volume
integral and press SHIFT + select the last of the list) and then using the refresh icon in the post-
processing toolbar.
To observe the volume integral history, open a Function Viewer window and do right click on it, a drop-down
menu will show, among others, the following option > Volume integrals > Volume #. This displays the
integrated value of the field (Y-axis) versus the time (X-axis). If the option Only current frame is set to On,
a single value will be shown as a straight horizontal line.
Please note: The Function Viewer plots the value of the visualization field versus time. It is therefore
relevant to see the transient evolution of the integral, and not only an instantaneous value as fluctuations can
be expected.
The custom fields section allows the user to create new visualization fields as a function of the default ones.
To create a custom field for post-processing, do right click on Custom fields in the Project Tree and then
Custom fields appear in the visualization fields list and can thus be visualized in the Graphic View as any
other standard field.
7.2.10 Entities
Project Tree > Post-Processing > Entities
During the importation of a geometry, a target role is specified as explained in the import and export
geometry chapter. The target role can be either Simulation or Post-processing, in case Post-processing is
selected the geometry will be available in Project Tree > Post-Processing > Entities
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 247
7.2 Post-Processing tree
Post-processing entities can be used for post-processing purpose and do not participate in the simulation
process. These geometries can be used for the following purpose:
Surface integrals
Volume integrals
Stream tracers inlet
Stream tracers volume source
The behavior of post-processing entities includes Fixed and Enforced behaviors similarly to the Simulation
entities. An additional Control geometry behavior is however available.
Control geometry
The Shape does not take part in the simulation (as if it were Disabled), but it defines a geometry where it
is possible to do post-processing operations like the counting of DPM particles flowing through, the user
can then plot the evolution of the DPM particles within the control geometry in the Function Viewer:
Right click on the Function Viewer window > Stream tracers > Tracer 0 > Control geometries >
Please note: This behaviour is, at the moment, only useful when DPM stream tracers are used.
7.2.11 Cameras
248 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Tip: The camera position and direction is set to the one of the active Graphic View by default. You may
set your Graphic View to the desired position and create a new camera in order to save the view.
7.2.12 Views
Project Tree > Post-Processing > Views
A camera is the representation of the view displayed in the Graphic View window.
Each Graphic View has its own camera.
Camera settings
link to camera
location
perspective
clipping planes
Link to camera
Allows the user to choose between the camera of the Graphic View and a camera defined by the user
(see Cameras).
Location
The camera location (in Cartesian coordinates) is described by the following parameters:
From: Position of the camera or eye point.
To: Position of the target, where the camera is looking at. It is the center of the view.
Up: Direction of the vertical axis.
Perspective
Enables the perspective view. Otherwise, the orthographic view is used.
FOV (Field Of View): angular extent of scene that is seen from the camera.
Clipping planes
Clipping planes cut away the portion of the geometry model on one side of the plane and therefore are
useful to see inside the model. A plane needs to be defined by the Origin (a point the plane passes by)
and its Normal direction.
The visibility depends on the camera position and everything on the other side of the defined clipping
plane with respect to the camera position will be shown, while everything on the side of the plane pointing
towards the camera position will be clipped.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 249
7.2 Post-Processing tree
Tip: Clipping planes can be translated or rotated using the Gizmos. To do so, select the clipping plane
in the Project Tree using the Object Filter icon , and do the following:
drag the Gizmo axis normal to the clipping plane to translate it, or alternatively
click on the Gizmo axis and set the translation distance (in meter) in the translation
dialogue-box
drag the corresponding Gizmo arc, or alternatively
click on a Gizmo arc and setting the rotation angle (in degrees) in the rotation dialogue-
box
Velocity
The modulus of the velocity (in m/s) is defined as:
Static pressure
The static pressure (in Pa) is defined as:
where stands for the fluid density, is the speed of sound and is the adiabatic index.
XFlow uses the ideal gas state equation for gases and a stiff state equation for liquids. The pressure
shown at the Post-Processing is a gauge static pressure.
250 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Vorticity
The vorticity (in 1/s) is the modulus of the velocity curl:
Q-criterion
The Q-criterion defines a vortex as a connected fluid region with a positive second invariant of the
velocity gradient.
Vx , Vy, Vz
The different components of the velocity vector (in m/s) are , and , respectively to the X, Y and Z
direction.
Total pressure
The total pressure (in Pa) is the addition of the dynamic pressure and the static pressure:
The first term is the dynamic pressure. The pressure shown at the Post-Processing is a gauge total
pressure.
Turbulence intensity
The turbulence intensity (in %) is defined as:
where is the mean velocity, and the root-mean-square of the turbulent velocity fluctuations which
can be described as:
Temperature
The temperature (in K) describes the temperature of the fluid in the domain. This field is only available
if the energy equation is solved.
Effective viscosity
The effective viscosity (in Pa·s) is is defined as:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 251
7.3 Visualisation fields
where the is the dynamic viscosity specified in the Materials tab and is the
turbulent viscosity.
Custom field
The user can also visualize a custom field if any has been previously created.
Scalar
Shows the scalar concentration. Only available if the scalar transport equation has been enabled.
Filter
Shows the filtered static pressure. Only available if the static pressure filters have been defined prior run.
7.5 Animation
XFlow provides a wizard that allow the user to save a sequence of images, that can be later assembled in a
video file using an external software. This wizard is accessible from Main menu > Post-Processing >
Animation, or from the button in the Toolbar Data Processing.
Animation can be Basic, Advanced (Setup mode) or using Key frame mode
252 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Animation properties
First frame: first frame in the sequence
Last frame: last frame in the sequence
Image properties
Input: select GUI view to save the entire screen, or Graphic view # to save only the Graphic View #
window.
Width: Image width
Height: Image height
Hold aspect ratio
Save
Output format: Output format can be either video (.ovg, .avi, .mp4, .png) or a sequence of pictures (.
png). If a video format is selected, an additional option Save image PNG shows in order to save the
sequence of images in .png format in addition to the video.
Frame rate: Defines the frame rate of the output video. Only available for .ovg, .avi, and .mp4.
Quality: Defines quality of the output video. The higher the quality, the higher the video file size. The
lower the quality, the lower the video file size. Only available for .ovg, .avi, and .mp4.
File base name: Images will be named after this name followed by the frame number.
Custom Folder: If disabled, the animation file(s) (images and/or video) will be created in the default
folder: [simulation_folder]/animation. The simulation folder is named after the project. If the
option is enabled, a custom folder can be defined.
Please note: In Basic mode, the filename of the images sequence will be numbered by frame number.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 253
7.5 Animation
Animation properties
Duration: Duration of the video (real time).
Image frequency: Images per second to build the video.
Simulation time: This parameter indicates the interval of the simulation time that the user wants to
show in the animation. It can be:
A number indicating a fixed simulation time (simulation frame). The animation data will be frozen in
time.
A function depending on the animation time (t_animation = No.ImagesSaved / frequency) .
254 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Animated items
In this section, the behaviour of the objects can be defined. These can be of the following type:
General items: The general post-processing options, namely: domain structure, volumetric field,
surface info, isocontours, can be shown/hiden during the animation according to the given Visibility
law, which is a boolean switch. Hence, the general item will be shown if the visibility law is one, and it
will be hidden when it is zero.
Geometry: Geometry objects can also be shown and hidden according to a user-defined Visibility law.
If the visibility law equals 1 the object is shown, if it equals 0 it is not shown.
Cutting planes: Cutting planes (previously created) can be moved within the spatial domain (Position
law) besides being shown/hidden (Visibility law).
The Position law must take values ranging form 0 to 1, e.g. for a cutting plane normal to the Z-axis,
Position law = 0 stands for the -Z boundary and Position law = 1 represents the +Z boundary.
Visibility law is of boolean type, so it should take value 0 or 1. By default, it is set to 1 (visible).
Isosurfaces: Isosurfaces (if previously created) can be visualized in the simulation according to the
given boolean Visibility law. Moreover, the level of the isosurface being represented can be defined as
a function in Level law.
Stream tracers: Stream tracers (if previously created) can be visualized in the simulation according
to the given boolean Visibility law.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 255
7.5 Animation
Example:
Position law: t_animation/Duration By definition, t_animation ranges from 0 to duration
(See animation properties). The cutting plane will
thus move from 0 to 1, scanning the whole spatial
domain.
Position law:
tabulardatalinearinterpolated(t_animation, The cutting plane will move according to the tabular
"CuttingPlaneAnimationTest.txt") data given in the file "CuttingPlaneAnimationTest.txt",
where the first column contains the t_animation
value and the second column the corresponding
where, CuttingPlaneAnimationTest.txt": position of the cutting plane.
0 0.5 The cutting plane movement (e.g. normal to Z axis)
2 0.5
is thus:
6 0.0
t_animation in [0,2], it remains at the middle of the Z-
10 0.5 domain.
14 1.0 t_animation in (2,6), it moves towards the -Z boundary.
18 0.5 t_animation= 6s it is in the -Z boundary.
20 0.5 t_animation in (6, 14), it keeps moving to +Z-boundary,
passing through the middle of the domain at t_animation=
10s.
t_animation= 14s, it is placed at +Z-boundary.
t_animation in (14, 18), it moves back to the initial
position, where it remains from t_animation = 18 to
t_animation =20s.
Example:
Animation (Advanced) > Duration: 1 s
Example:
Level law: 0.1 The isosurface will represent the points of the domain
which value is 10% of the maximum value of the
variable (in the domain).
Image properties
Input: select GUI view to save the entire screen, or Graphic view # to save only the Graphic View #
window.
Width: Image width
Height: Image height
Hold aspect ratio
Save
Output format: Output format can be either video (.ovg, .avi, .mp4, .png) or a sequence of pictures (.
png). If a video format is selected, an additional option Save image PNG shows in order to save the
sequence of images in .png format in addition to the video.
Frame rate: Defines the frame rate of the output video. Only available for .ovg, .avi, and .mp4.
Quality: Defines quality of the output video. The higher the quality, the higher the video file size. The
256 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
lower the quality, the lower the video file size. Only available for .ovg, .avi, and .mp4.
File base name: Images will be named after this name followed by the frame number.
Custom Folder: If disabled, the animation file(s) (images and/or video) will be created in the default
folder: [simulation_folder]/animation. The simulation folder is named after the project. If the
option is enabled, a custom folder can be defined.
Please note: In Advanced mode, the filename of the images sequence will be numbered by image
number.
Please note: The project cannot be saved in keyframes edit mode. In order to save the project, please
leave the keyframes edit mode. The keyframes are saved automatically.
2. Create a key frame: Set the entities visibility and positions at the desired frame and select Main menu >
Post-Processing > Animation > Create/Delete keyframe, or use toolbar icon. This will create a key
frame at the current frame. Alternatively, you can click the middle mouse button in the timeline on the
frame where the key frame must be created. This will create a keyframe which will be marked by a vertical
yellow line.
3. Create animation: Open the Animation dialog, and select the Setup mode: Key Frame on the top-right
corner of the window:
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 257
7.5 Animation
Animation properties
Duration: Duration of the video (real time).
Image frequency: Images per second to build the video.
Simulation time: This parameter indicates the interval of the simulation time that the user wants to
show in the animation. It can be:
A number indicating a fixed simulation time (simulation frame). The animation data will be frozen in
time.
A function depending on the animation time (t_animation = No.ImagesSaved / frequency) .
Image properties
Input: select GUI view to save the entire screen, or Graphic view # to save only the Graphic View #
window.
Width: Image width
Height: Image height
Keep aspect ratio
Save
Output format: Output format can be either video (.ovg, .avi, .mp4, .png) or a sequence of pictures (.
png). If a video format is selected, an additional option Save image PNG shows in order to save the
sequence of images in .png format in addition to the video.
Frame rate: Defines the frame rate of the output video. Only available for .ovg, .avi, and .mp4.
Quality: Defines quality of the output video. The higher the quality, the higher the video file size. The
lower the quality, the lower the video file size. Only available for .ovg, .avi, and .mp4.
File base name: Images will be named after this name followed by the frame number.
Custom Folder: If disabled, the animation file(s) (images and/or video) will be created in the default
folder: [simulation_folder]/animation. The simulation folder is named after the project. If the
option is enabled, a custom folder can be defined.
258 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Please note: It is only possible to use geometries, cutting planes and camera movements in this mode.
Stability parameter
Overall forces
Axis force cumulation
Axis force distribution
Mass integrals
Momentum integrals
Pressure integrals
Other integrals
Shapes
Probes
Joints
Stream tracers
Sensors
Plot lines
Surface integrals
Function Viewer menu
Volume integrals
Data management
Select reference frame
Export current data
Stability parameter
It displays the values of the stability parameter of the computation (see Message View).
Overall forces
It displays the overall forces (Fx, Fy, Fz), in global axes, exerted by the fluid on the entire geometry
model and the corresponding force coefficients (Cx, Cy, Cz):
Vref and Aref being the reference velocity and area specified in the Environment settings.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 259
7.6 Function Viewer
Please note: The user has to be cautious with the values of the reference velocity and area used in
order to get correct aerodynamic coefficients. Check the Reference area and velocity settings.
This instantaneous force is time averaged starting from initial averaging time tinit:
The force distributions are available for the three force components FX, FY, and FZ as well as for the
three directions X, Y, and Z.
Please note: the X-axis range is between 0 and the maximum length of the considered direction.
According to the above axis force distribution explanations, the axis force cumulation graph is:
The force cumulations are available for the three force components FX, FY, and FZ as well as for the
three directions X, Y, and Z.
Mass integrals
Inlet mass flow
Overall mass
Momentum integrals
260 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Pressure integrals
Inlet total pressure flux
Other integrals
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 261
7.6 Function Viewer
Overall enstrophy
Shapes
For every Shape, the user can plot in the Function Viewer:
Aerodynamic coefficients (Cx, Cy, Cz) in global axes.
Forces (Fx, Fy, Fz) in global axes.
Moments around the centre of rotation (Mx, My, Mz) in global axes.
If the Flow model is set to Segredated Energy, the user can further plot the heat transfer from/to the
shape:
Heat: this is the heat transferred from/to the shape where conjugate heat transfer or wall boundary
condition has been specified.
If the Flow model is set to Multiphase, the user can further plot the different forces and moments
contributions:
Overall: this is the total force/moment of Fluid 1 + Fluid 2.
Fluid 1: this is the force/moment contribution of Fluid 1 only.
Fluid 2: this is the force/moment contribution of Fluid 2 only.
If the Shape behaviour is either Enforced or Rigid body dynamics, the user can further plot:
Position (Px, Py, Pz) of the centre of gravity in global X, Y and Z directions.
Euler angles (Eux, Euy, Euz) around the centre of gravity.
Linear velocity (Vx, Vy, Vz) of the centre of gravity in global X, Y and Z directions.
Angular velocity (Wx, Wy, Wz) around the centre of gravity in global X, Y and Z directions.
Probes
Displays a list of all Probes in the simulation and the flow variables monitored in each probe:
Static pressure.
Velocity module.
X, Y and Z components of the velocity (Vx, Vy, Vz).
Volume of liquid phase (for Free-Surface/multi-phase simulations)
Temperature (for thermal applications)
The "Export all" function allows to customize the probe data exportation. The following parameters of
exportation are available:
Fields: select the fields to export.
From index: select the range of probes to export. To export a single probe N, select from index N to
index N.
Save probes in separated files: If checked, each probe will be saved in a separated file named
"probe-N.txt". If not, all probes will be included in the same data file in a column format: Time
Probe1_Field1 Probe1_Field2 Probe2_Field1 Probe2_Field2 ...
Folder: indicate the folder where to export the file(s).
262 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Joints
Displays a list of all Joints in the simulation and the associated efforts and positions:
Position coordinates of the joint (Px, Py, Pz) in global axes.
Forces applied on the joint by other geometries/cables (Fx, Fy, Fz) in global axes.
Moments applied around the joint position by other geometries/cables (Mx, My, Mz) in global axes.
Stream tracers
Displays a list of all calculated Stream tracers. It shows:
Inlet particles distribution It shows a histogram of the particles generated from the source shape
in function of their diameters. It is only calculated if the diameter Standard deviation is not 0.
Outlet particles flux The total number of particles that have exited through the outlets until the time
of measurement.
Outlet particles distribution It plots a histogram of the particles leaving the domain from the outlet
in function of their diameters. It is only available if the diameter Standard deviation is not 0.
Active particles The evolution of number of the particles inside the fluid domain.
Control geometries:
<Shape name> It shows the evolution of the active particles inside the Control geometry.
<Shape name> distribution It shows the diameter distribution of the active particles inside the
Control geometry. It is only calculated if the diameter Standard deviation is not 0.
Sensors
Displays a list of all Sensors. It shows the value of the chosen field at the sensor.
Plot lines
Displays a list of all Plot lines. It shows the value of the chosen field at the line.
Surface integrals
Displays a list of all Surface integrals. It shows the integrated value of a field over a surface.
Volume integrals
Displays a list of Volume integrals. It shows the integrated value of a field within a volume.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 263
7.6 Function Viewer
Data management
The user can manage the graph representation:
Set graph to [Time space] mode: sets graph as a function of time.
Set graph to [Frequency space] mode: sets graph as a function of frequency (Fourier
Transform) with the possibility to apply a window function on the signal.
Set graph to [SPL vs freq] mode: plots the Sound Pressure Level (SPL) in the frequency space
with the possibility to apply a window function on the signal.
Set graph to [PSD vs freq] mode: plots the Power Spectral Density (PSD) in the frequency
space with the possibility to apply a window function on the signal.
Apply filter to signal: applies a Filter to the signal displayed in the Function Viewer with the
possibility to apply a window function on the signal.
By default the graphics displayed in the Function Viewer are represented in the XFlow global reference.
Please note: The "Export current data" option must be used if the data wants to be exported in a different
reference frame than the global one. The "Export all" function will always export the data referred to the global
reference frame.
Please note: During post-processing, the change of reference frame does not admit changes of entity
names.
Right click in Function Viewer > Export current data exports the data currently displayed in this
window.
Right click in Function Viewer > ... > Export all exports all the data available in the selected section
(Overall forces, Mass integrals, Momentum integrals... ). It has the following format:
Please note: To learn how to create and manage a Function Viewer, see GUI-Function Viewer.
264 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Options
Format to export:
Paraview: exports volumetric, projected and surface data to Paraview format. ParaView is an
open source multiple-platform application for interactive, scientific visualization.
Ensight Gold: exports volumetric, projected and surface data to Ensight Gold format. Ensight
Gold is a post-processing software developed by CEI Software.
CGNS: exports volumetric, projected and surface data to CGNS format. CGNS stands for CFD
General Notation System. It is a general, portable, and extensible standard for the storage and
retrieval of CFD analysis data. It consists of a collection of conventions, and free and open software
implementing those conventions.
ABAQUS surface format: exports the projected static pressure on all geometries to ABAQUS
format. It is useful to proceed in Finite Element Analysis (FEA) analysis from the pressure map
obtained. (Only available in Labs mode.)
XFlow ASCII format: exports the volumetric data and/or surface data from all geometries at
vertices position providing the connectivity matrix. The surface data exported will be consistent to
the Interpolation mode selected in the GUI (+info), and the volumetric data are exported at
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 265
7.7 Export data
every lattice position. The generated files have the following format:
LATTICE
-------------
GEOMETRIES
---------------------
SHAPE_NAME=ShapeName
NUM_VERTICES=N (Number of geometry vertices)
NUM_TRIANGLES=T (Number of geometry triangles)
FIELDS=Field_1, ..., Field_M
where INDEX_I/J/Ki are the first/second/third vertices of ith triangle. INDEX are integers between
[0; N-1], referring the vertex line number.
Example:
GEOMETRIES
----------------------------------
SHAPE_NAME=Box
NUM_VERTICES=24
NUM_TRIANGLES=12
FIELDS=VEL,SP
0 0 0 5.48172 -8.50565
0 0 1 5.05112 0.434451
...
1 1 1 5.26072 -4.59222
1 1 1 5.1933 -4.91023
201
321
...
23 15 11
23 11 19
266 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
Type of data
Data can be exported as instantaneous, averaged, RMS and standard deviation type. The averaged
and standard deviation data type must be enabled before the computation in the Simulation tab. If the
scalar transport is enabled (see scalar) it is possible to export the scalars concentration using the
CGNS export data format.
Frames
The simulation data can be exported for each frame saved by XFlow. This field specifies the first and
last frame to be exported , e.g. from frame 0 to frame 10.
Tip: This data export can be executed in command lines as well (+Info).
Main menu > Simulation Data > Export plot line data
Allows the user to export the Plot line data automatically for different frames in .txt file format. Each plot
line will be exported into a different file (plot_line_#_history.txt where # is the plot line number), containing
the field values, the coordinates of the discretization points along the line, and the simulation time
corresponding to each frame.
Please note: The Auto-refresh option should be enabled when exporting Plot lines for different
frames (+Info).
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 267
7.7 Export data
Example:
Box
48
x y z Temperature
-0.975000 -0.975000 -0.975000 458.015385
-0.975000 -0.875000 -0.975000 418.679619
-0.975000 -0.925000 -0.975000 433.235283
-0.975000 -0.925000 -0.925000 407.786074
...
-0.925000 -0.925000 -0.975000 294.127870
-0.925000 -0.875000 -0.975000 291.732359
-0.875000 -0.875000 -0.975000 307.031493
-0.875000 -0.975000 -0.975000 312.930360
The number of exported points depends on the option Export data on selected:
Geometry vertices: exports data on the geometry vertices, i.e. the mesh nodes of the geometry
tessellation. Therefore, one must be careful of the geometry tessellation if using this option to export
surface data, as a uniform mesh distribution would be recommended in order to export the data
adequately.
Point distribution: exports data on a random point distribution generated over the geometry. The
number of points is defined by the "Sample points" option set, the higher the number of sample
points the more accurate will be the distribution but the more points will be saved in the shape
[name]frame[number].srfi file.
Near-wall lattice nodes: exports data from the near-wall lattice nodes, i.e. the first fluid layer
near the walls. This means the data exported is not defined rigorously on the geometry surface and
will depend on your lattice size and distribution.
The following pictures illustrate the location of the data exported for each of the above options.
Please note: No connectivity matrix is provided using the Export surface data option. In order
to export data with connectivity matrix, please use the Export data > XFlow surface data
option describe in this section above.
Main menu > Simulation Data > Export cutting plane data to raw format
Exports the data of all the active cutting planes of the active Graphic View (without interpolation) to a
different file for each cutting plane exported, by default named currentCuttingPlane#.txt. It
contains four columns with the following information on every computational element at the cutting plane:
position X, position Y, position Z and field value.
Main menu > Simulation Data > Export data of cutting plane field distribution
268 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
7 Post-Processing
If one or many cutting planes with a field distribution are active, this saves the field distribution
(coordinates and field value) in four files (one corresponding to each face) for each cutting plane field
distribution: field_distribution_#_minusX.txt for the face oriented towards -X,
field_distribution_#_plusX.txt for the face oriented towards +X,
field_distribution_#_minusY.txt for the face oriented towards -Y, and
field_distribution_#_plusY.txt for the face oriented towards +Y. If the cutting plane is not axis
aligned, the filename becomes field_distribution_#_+i_+j_+k.txt where (i,j,k) is the
normalized vector direction.
Tip: The numerical data export can be executed in command lines as well (+Info).
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 269
7.7 Export data
270 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
8 Co-Simulation
XFlow is capable to perform coupled simulations with:
ADAMS simulation: Import multibody dynamics computed in ADAMS to the geometry shapes in XFlow (
+info).
FMI Standard: Export inputs/outputs variables from XFlow in FMI Standard format (+info).
Abaqus: Co-simulation between XFlow and Abaqus is implemented through the Co-Simulation Service
(CSS) (+info).
Simpack: Co-simulation between XFlow and Simpack is implemented through the Co-Simulation Service
(CSS) (+info).
MSC Nastran: Two-way coupling is implemented through the OpenFSI standard, which involves the
nonlinear SOL400 solution of MSC Nastran (+info).
MSC Nastran: One-way thermal coupling is implemented through the modification of an imported .bdf file
(+info).
The first stage is to export the geometries and results from Adams:
a) select the geometry one by one and export it: File > Export > File type: STEP
b) export the results file: File > Export > File type: Adams/solver results file .RES
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 271
8.1 Import ADAMS simulation
Tip: Adams motion can be applied on any arbitrary geometry shape in XFlow, it does not need to be the
one modeled in Adams.
FMI Standard works with a coordinator-worker concept, the workers simulating sub-problems while the
coordinator is responsible for both coordinating the overall simulation and handling the data transfer. XFlow
can only be set as a worker, hence it can be connected with external software which act as a coordinator.
For more information regarding the FMI standard please check https://www.fmi-standard.org/tools
XFlow steps to couple with an external software through the FMI Standard:
a) Create a geometry and set it as enforced behavior. Currently, only object's position and angular laws
are available as shared variables for FMI coupled simulations.
272 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
Enforced geometry
b) Select available inputs and outputs in Main menu > Options > Export to FMI Standard. In the left
column the available inputs and outputs for the previously created geometry are listed. The right
column, instead, contains the selected FMI inputs and outputs. Any XFlow numerical data value (e.g.
Time, Cx, Cy ...) can be selected as FMI outputs.
Please note: the FMU variables setup will be stored in the project file. This will ease the process of
changing the setup or re-using an existing one for a different simulation.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 273
8.2 FMI Standard
c) When an available input has been set as FMI input variable it's state changes in the Project tree, as
shown in the picture below. Whenever a variable is set to fmu() it will be used as input for the FMI
standard file.
274 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
d) The option Main menu > Options data > Export to FMI standard will create an xflowFMI.fmu file in
the Simulation folder.
e) Configure the coordinator software using the xflowFMI.fmu file created by XFlow.
Please note: XFlow supports only one simulation at a time. That means, only one XFlow slave can be
used in an FMU computation.
f) Run the simulation by selecting Run > Start FMU computation. XFlow will wait for the
synchronization point of the coordinator simulation and will start to calculate.
Please note: The FMU computation is not available yet for distributed MPI computations.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 275
8.3 CSS Co-simulation
XFlow provides the possibility to perform coupled fluid-structure simulations using either an external MBS
(Multi-Body Simulation) software or an external FEA (Finite Element Analysis) structural software. In
particular, it is possible to setup co-simulations XFlow / Simpack or XFlow / Abaqus exploiting the CSS
(Co-Simulation Service). This service enables a two-way coupling of the software through the exchange
of loads from XFlow to Abaqus / Simpack, and the resultant displacements from Abaqus / Simpack to
XFlow.
Please note: It is preferred to use .xfp file format over .xfz for co-simulation workflows.
Co-Simulation Options
o Co-simulation: Abaqus/Simpack
Host name: Host name where the co-simulation engine is run.
Port: Port used to connect to the co-simulation engine.
Co-simulation force scheme: determines the scheme to compute the forces sent to Abaqus
Automatic: Applies stress tensor for two way co-simulations, and nodal force for one way co-
simulation.
Stress tensor: Computes the local fluid force based on the stress tensor to apply on the
structural nodes. More robust scheme, recommended for two way co-simulations.
Nodal force: Applies local fluid force on structural nodes. More accurate scheme but less
stable, recommended for one way co-simulations.
Limiting pressure on co-sim surfaces: pressure limiter for force evaluation in co-sims
Lead co-sim: specifies XFlow as the first actor in the co-sim interchange
Co-Simulation Mode
Whenever the Environment > Engine > Advanced Options > Co-Simulation option is enabled
(set different to None) the Geometry > Shape > Co-simulation mode drop-down menu will be
enabled under each shape included in the simulation setup.
276 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
The options available for selection depend on the Co-simulation option, shape Behaviour and on the
steps followed to import the specific setup into XFlow (e.g. Simpack import +info). Specifically:
Co-simulation: Nastran
Rigid Bodies
o Nastran 2-way
Flexible Bodies
o Abaqus 1-way forces:
o Simpack Flexi 1-way forces
Flexible Bodies
o Simpack Flexi 1-way deformation
o Simpack Flexi 2-way
Co-simulation Orchestrator
The cosim_orchestrator is an utility tool provided with the XFlow installation to streamline the
execution of co-simulation workflows. The only required argument is the XFlow project file (either .xfp or
xfz). If no other input parameter is used it creates the co-simulation setup file $project-cosim.xml in
the XFlow setup simulation folder.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 277
8.3 CSS Co-simulation
--cse , launches the CSE director distributed with the XFlow installation (+info)
--cseconfig , does not use the generated co-simulation setup file but an user specified one
--simpack , starts the Simpack simulation (using the system defined command simpack-slv)
--simpackdir , specify the path to the Simpack installation folder to select a specific version of
Simpack (or in case the simpack command simpack-slv is not pre-defined)
--listenerport , uses the specified port for the CSE execution (it overrides the port specified in
the .xfp file)
--help , displays the help
Tip: The generation of the co-simulation setup file $project-cosim.xml can also be performed
from the XFlow GUI, Simulation Data > Generate co-simulation file (+info).
Co-Simulation Service
The CSS (Co-Simulation Service) libraries and CSE (Co-Simulation Engine) executable are distributed
with the XFlow installation, located under $XFlow_INSTALL/modules/cse. This version of the CSS
and CSE are the one invoked by the cosim_orchestrator and guarantee compatibility with the used XFlow
version.
Please note: Under Linux OS, when launching the XFlow simulation in command line the path to the
CSS lib must be explicitly set: export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$XFlow_INSTALL/modules/cse/lib
8.3.1 Abaqus
In order to setup a coupled XFlow / Abaqus simulation follow the steps:
a) Setup the structural model in Abaqus including a definition of the coupling surfaces (which should
always be tagged as Surf-1)
c) Export the structural mesh created in Abaqus in STL format (Abaqus Plug-ins)
e) Manually modify the .inp file to include the following text under the interaction settings:
** Interaction: Int-1
*Co-simulation, name=Int-1, program=MULTIPHYSICS
*Co-simulation Region, import, type=SURFACE
Surf-1, CF
*Co-simulation Region, export, type=SURFACE
Surf-1, COORD
Surf-1, U
Surf-1, V
**
f) Enable the Structural analysis in XFlow by selecting the Abaqus/Simpack option from the dropdown
list in Project Tree > Environment > Engine > Advanced Options > Co-simulation;
278 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
g) Set the co-simulation parameters in Project Tree > Environment > Engine > Advanced
Options > Co-simulation (+info)
i) Select the Co-simulation mode for the imported Abaqus meshes (+info);
l) Execute the XFlow simulation, the Abaqus one and the Co-Simulation Engine (+info).
Please note: It is highly recommended to use SI units when setting up the Abaqus simulation.
Thermal simulations will not exchange heat/temperature loads to Abaqus. Only displacements, velocities
and forces will be exchanged.
Every geometry that is set as Co-simulation mode: Abaqus 2-way | Abaqus 1-way deformations
must have a single boundary condition applied. This mean that the apply boundary condition to faces
option is not valid for such geometries.
It is necessary to specify refinement regions in such a way that the shapes involved in the -simulation
do not intersect different lattice levels during the whole duration of the simulation and it is contained in
the finest refinement level.
XFlow supports the entire set of 2D and 3D Abaqus structural element types for a fluid-structure
simulation.
Only one XFlow shape can be specified as co-simulation shape. If two or more XFlow shapes are
defined as co-simulation shapes, the co-simulation will fail.
Please note: Non-linear elements can also be used, however, XFlow will re-generate the geometry
tessellation and split the non-linear elements into a combination of linear ones. This approach gives
rise to approximation in the representation of non-linear deformation (within a single element) and can
also give rise to small holes and gaps in the mesh.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 279
8.3 CSS Co-simulation
Please note: In case of running XFlow 2021 in a Windows machine, please use Abaqus 2020 HF1
and later.
Please note: In case of running Abaqus 2021, it is necessary to use CONSTANTDT as negotiation
method in the FSI_II_std_css.xml file (+info).
Specify the Model Units used in Abaqus to setup the structural simulation in the correspondent drop-down list
box.
Please note: The ensemble of the coupling surfaces must create a watertight geometry in order to be
correctly simulated in XFlow.
280 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
A complete list of Co-simulation mode options is provided in the CSS Co-simulation section.
When setting up an XFlow - Abaqus co-simulation the following options are available for the Co-
simulation mode (options visible only when Abaqus/Simpack Co-simulation is selected):
Abaqus 2-way: It allows exchange of forces from XFlow to Abaqus and the exchange of displacements
from Abaqus to XFlow. Only available with Fixed behaviour shapes.
Abaqus 1-way deformations: It allows exchange of displacements from Abaqus to XFlow but no
forces are sent from XFlow to Abaqus. This option is relevant when forces from XFlow are negligible for the
Abaqus setup. Only available with Fixed behaviour shapes.
Abaqus 1-way forces: It allows exchange of forces from XFlow to Abaqus but no displacements are
sent from Abaqus to XFlow. This option is relevant when displacements from Abaqus are negligible for the
XFlow setup. Only available with Enforced behaviour shapes.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 281
8.3 CSS Co-simulation
Please note: The geometries which are selected as Abaqus 2-way | Abaqus 1-way deformations
| Abaqus 1-way forces must be set to the finest lattice resolution of the simulation.
Please note: At this stage the co-simulation is only supported via command line for the Abaqus and the
CSE execution. XFlow can be executed either from the GUI or in command lines (+info).
$XFlow_INSTALL/generateDomain3d $project.xfp
$XFlow_INSTALL/engine-3d $project.xfp
Optionally, it is possible to override the Co-Simulation host and port details saved in the $project.xfp file
with the command line option -csedirector=$CSE_HOST:$CSE_PORT.
XFlow log file with indication of FSI: Enabling CSE module, CSE host and port.
XFlow simulation will start and pend (Establishing connection with host $CSE_HOST:$CSE_PORT) till both
Abaqus and the CSE are executed.
282 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
the duration of the simulation (should be the same in both XFlow and Abaqus) by modifying the line
<duration>1</duration>
the Co-Simulation negotiation method, which will define the way information will be transferred, by
modifying the line: <negotiationMethod>MASTER</negotiationMethod> . Available options are
MIN, MAX, MASTER, CONSTANTDT. For more information please consult the Abaqus Co-Simulation
Engine manual.
Please note: Alternatively, you can name the interaction geometry "MovingWall" in the XFlow setup, so
that there is no need to modify the FSI_II_std_css.xml file.
3. Start the CSE in command line using the cosim_orchestrator provided with the XFlow installation
specifying:
Optionally, it is possible to override the Co-Simulation host and port details saved in the $project.xfp file
with the command line option --listenerport $CSE_PORT.
the -job option, which points to the co-simulation step specified in the provided FSI_II_std_css.xml
setting file ( -job FSI_II_std)
the address and port of the Co-Simulation Engine (-csedirector $CSE_HOST:$CSE_PORT). The
$CSE_HOST can be set as localhost if the Co-simulation engine is run on the same machine where
Abaqus and XFlow are executed.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 283
8.3 CSS Co-simulation
Abaqus example run command: abaqus -job FSI_II_std -input example -double -
csedirector localhost:1025 -int
The status of the coupled XFlow / Abaqus simulation can be checked examining the log files created in the
execution folder.
The termination of any of the two processes (either XFlow or Abaqus) will terminate the entire co-simulation.
Both Abaqus and XFlow will write intermediate step solutions at user's specified frequency.
8.3.2 Simpack
In order to setup a coupled XFlow / Simpack simulation follow the steps:
a) Setup the Simpack model including a definition of the 113: Fluid Interface force element in Simpack
(check the Simpack doc for more info)
b) Specify the Simpack installation folder in XFlow under Preferences > Co-simulation (enable the
tick boxes to launch both Simpack and CSE on the local host +info)
c) Import the Simpack model in XFlow, Options > Import Simpack model (+info)
The Co-simulation analysis will automatically be enabled under Project Tree > Environment
> Engine > Advanced Options (+info)
The Co-simulation mode will automatically be enabled for each geometry imported under Project
Tree > Geometry (+info);
e) Execute the XFlow simulation, the Simpack one and the Co-Simulation Engine (+info).
Every geometry that is set as Co-Simulation mode: Simpack flexi 2-way | Simpack flexi 1-way
deformations (and hence will exchange surface mesh deformations) must have a single Wall boundary
condition applied. This mean that the apply boundary condition to faces option is not valid for such
geometries.
In order to import Simpack models XFlow requires access to the Simpack installation folder. This setting
can be specified in the Preferences > Co-simulation menu.
Additionally, both the CSE (Co-Simulation Engine) and the Simpack execution can be launched
284 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
A Simpack model that has defined 113: Fluid Interface force element can be imported in XFlow GUI
using Options > Import Simpack model. The model can be selected using the Browse... button to
specify the full Simpack file path. Alternatively, the name of the Simpack setup file can be typed into the
window and a relative path to the location of the XFlow .xfp file will be used. The latest option is the
preferred one to guarantee that the Simpack setup is not lost when copying the XFlow setup to different
folders (e.g. HPC execution).
Multiple bodies can be imported from a single Simpack setup, as long as each body is included in the
definition of the 113: Fluid Interface force element (multiple bodies can be included in one force element
and/or multiple force elements can be used).
The XFlow-Simpack co-simulation can be performed considering both rigid bodies and/or flexible bodies.
The following considerations apply for the two cases.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 285
8.3 CSS Co-simulation
Rigid Bodies
XFlow-Simpack co-simulation with rigid bodies will exchange forces/torque values at the CoG of each body
and displacements/rotations values of the CoG. Therefore, up to 6 DOFs (Degrees of Freedom) can be
specified in the Simpack setup for each body and 6 Forces/Moments will be exchanged by XFlow.
When importing bodies which are defined as Rigid in Simpack the following parameters will be
automatically set under Project Tree > Geometry
Behaviour: Enforced
Co-simulation mode: Simpack rigid 2-way
Co-simulation region name: name of the co-simulation region read from the Simpack setup
In addition, the shape position and orientation values will be limited to constant values (no time-dependent
laws or formulas allowed). The value of position, rotation and scale will be added to the Simpack provided
ones during the co-simulation.
Flexible Bodies
When importing bodies which are defined as Linear flexible in Simpack the following parameters will be
automatically set under Project Tree > Geometry
Behaviour: Fixed
Co-simulation mode: Simpack flexi 2-way
Co-simulation region name: name of the co-simulation region read from the Simpack setup
286 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
A complete list of Co-simulation mode options is provided in the CSS Co-simulation section.
When importing a Simpack model in XFlow, the default settings for the Co-simulation mode are:
Simpack flexi 2-way (flexible bodies) and Simpack rigid 2-way (rigid bodies). Other options are available
and are described below.
Rigid Bodies
All options under rigid bodies exchange information on the CoG of each shape. Therefore, concentrated
forces/torques are computed in XFlow and CoG translations/rotations are sent from Simpack to XFlow.
Options are:
Simpack Rigid 2-way: The default value for rigid bodies. It allows exchange of forces from XFlow to
Simpack and the exchange of displacements from Simpack to XFlow.
Simpack Rigid kinematics: It allows exchange of displacements from Simpack to XFlow but no
forces are sent from XFlow to Simpack. This option is relevant when forces from XFlow are negligible
for the Simpack setup.
Simpack Flexi 1-way forces: It allows exchange of forces from XFlow to Simpack but no
displacements are sent from Simpack to XFlow. This option is relevant when displacements from
Simpack are negligible for the XFlow setup.
Flexible Bodies
All options under flexible bodies exchange information on the surface mesh of each shape. Therefore,
distributed forces are computed in XFlow and mesh nodes deformation is sent from Simpack to XFlow.
Options are:
Simpack Flexi 2-way: The default value for flexible bodies. It allows exchange of forces from XFlow
to Simpack and the exchange of displacements from Simpack to XFlow.
Simpack Flexi 1-way deformation: It allows exchange of displacements from Simpack to XFlow
but no forces are sent from XFlow to Simpack. This option is relevant when forces from XFlow are
negligible for the Simpack setup.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 287
8.3 CSS Co-simulation
Please note: The simulation time set in Simpack should be identical to the XFlow one. Also the
Global time variable in Simpack must be left to the default value of 0.
The entire co-simulation process (XFlow + CSE + Simpack) can be started easily from the XFlow GUI by
selecting Run > Start Computation if the required options in Simpack installation settings have been
enabled.
2. Start the Simpack Solver, Time Integration > Offline (with Measurements). Make sure the CSE server is
setup to remote and that the same port number as the XFlow setup is used (+info).
3. Start the CSE in command line using the cosim_orchestrator provided with the XFlow installation,
$XFlow_INSTALL/cosim_orchestrator.bat $project.xfp --cse &
For batch execution with no graphic interface, the following commands will launch each component:
3. Start the CSE using the cosim_orchestrator (+info) provided with the XFlow installation,
$XFlow_INSTALL/cosim_orchestrator.bat $project.xfp --cse
Optionally, it is possible to override the Co-Simulation host and port details saved in the $project.xfp file
with the XFlow command line option -csedirector=$CSE_HOST:$CSE_PORT (i.e.
$XFlow_INSTALL/xflow-engine.bat $project.xfp -csedirector=$CSE_HOST:$CSE_PORT
)
The status of the coupled XFlow / Simpack simulation can be checked examining the log files created in
the execution folder.
The termination of any of the two processes (either XFlow or Simpack) will terminate the entire co-
simulation.
XFlow will write intermediate step solutions (frames) at user's specified frequency.
288 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
XFlow log file with indication of FSI: Enabling CSE module and CSE host and port.
When performing XFlow-Simpack co-simulations with rigid bodies it is possible to use the replace
selected geometry feature to replace the Simpack provided primitives with a user selected geometry. This
feature can be useful to use a more detailed geometry in the XFlow simulation and a coarser
representation in the Simpack setup, since concentrated forces/moments and translation/rotation at the
CoG will be exchanged.
Please note: The replace geometry cannot be used with flexible bodies, since the actual deformed
geometry will be updated at each coupling step with the Simpack primitives.
When executing each component of the co-sim workflow separately the following settings need to be setup
In Simpack: Extras > Options > Solver as per snapshot below (a different port number can be specified)
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 289
8.3 CSS Co-simulation
Within Simpack, it is possible to select an initial time on which to start a simulation that includes time
dependant variables (like a signal or a force) within the model.
Therefore, to avoid any de-synchronization issues with the co-simulation with XFlow, this initial time value
that has been setup in Simpack, will be automatically read by the XFlow Graphical Interface when importing
the Simpack model and preset to match the same value that was established in Simpack.
To make it a user-friendly feature, if the user modifies the initial time value in Simpack, to avoid having to
re-import the Simpack model in XFlow, you can simply edit this value within the XFlow GUI, ensuring that it
matches the Simpack.
Please note: To avoid synchronization issues, it is compulsory that the user ensures that the
Simpack initial time value always matches the value in this field prior to running.
When performing XFlow-Simpack co-simulations it is possible to select the time at which the XFlow fluid
solver will synchronize with the motion received from Simpack, through a time delay. This can improve the
overall simulation performance seen as on most occasions, the XFlow simulation will be more
computationally expensive than the Simpack one, and any unnecessary fluid simulation time steps can be
neglected.
In the example below, an XFlow-Simpack co-simulation has been performed for a Vehicle Wading
application, with this feature enabled.
On the Simpack side, it is convenient to initialize the Simpack simulation horizontally, without any
inclination and progressively send the car down the tank's ramp.
When loading the Simpack model to XFlow, the geometry can be seen at the same location where it is
initialized in Simpack.
290 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
Due to the Co-simulation initial sync delay being set a 4.5 seconds, when we load the simulation data we
can see that the XFlow simulation has been started 4.5 seconds after the Simpack car model has been
displaced in and down the tank ramp.
This optimizes the overall run time seen as the XFlow simulation is now initialized when the car is much
closer to the initial water level, reducing the initial waste of moving the car through void when we are
interested with the interaction with the water.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 291
8.4 Nastran
8.4 Nastran
MSC Nastran: Two-way coupling is implemented through the OpenFSI standard, which involves the
nonlinear SOL400 solution of MSC Nastran (+info).
MSC Nastran: One-way thermal coupling is implemented through the modification of an imported .bdf file
(+info).
XFlow provides the possibility to perform coupled fluid-structure simulations using an external FEA (Finite
Element Analysis) structural solver. In particular, it is possible to setup co-simulations XFlow / MSC Nastran
exploiting an ad hoc developed OpenFSI SCA service. This service enables a two-way coupling of the
software through the exchange of loads information from XFlow to MSC Nastran, and the resultant structural
displacements from MSC Nastran to XFlow. A flow diagram illustrating the connectivity between the two
software is presented below. For more information about how to setup a MSC Nastran simulation with
OpenFSI services please refer to the MSC Nastran User Defined Services guide.
The data flow for the XFlow / MSC Nastran coupled simulation for an explicit OpenFSI SCA service.
Please note: The OpenFSI service allows data exchanges only to and from the non-linear solution
sequence MSC Nastran SOL400.
In order to setup a coupled XFlow / MSC Nastran simulation please install the XFlowOpenFSI Service (+info)
(this only has to be done once) and then follow the steps:
a) Setup the structural model in either MSC SimXpert, including the specification of wetted elements and
292 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
b) Enable the Structural analysis in XFlow by selecting the Nastran option from the dropdown list in
Project Tree > Environment > Engine > Advanced Options > Structural analysis;
d) Select Structural as geometry behaviour for the imported MSC Nastran meshes (+info);
f) Execute the XFlow simulation (it will automatically synchronize with MSC Nastran) and the MSC
Nastran one (+info).
When executing coupled XFlow / MSC Nastran simulations it is possible to select a combination of 2D / 3D
settings for both software. For example, it is possible to simulate 2D fluid flows and 3D structural deformations
or viceversa. In the first case, the 2D loads provided by XFlow are distributed on the correspondent surface
of the 3D MSC Nastran model, while the deformations of the center section of the 3D FEA mesh are mapped
to the correspondent 2D geometry in XFlow. When considering 3D fluid flows and 2D MSC Nastran model,
instead, the fluid loads are concentrated onto the 2D FEA mesh and the correspondent displacements are
mapped to the 3D geometry in XFlow.
The current XFlow / MSC Nastran implementation is limited to Single-Phase, Isothermal simulations
executed in SMP (Shared Memory Processing) environment. In addition, both software installation must
be found in the same machine.
The current implementation of OpenFSI in XFlow only supports MSC Nastran 2013.1.1.
Currently, only the explicit OpenFSI Service is implemented, which means that there is no exchange of
information between XFlow and MSC Nastran during the Newton-Raphson loop in MSC Nastran (for
more detailed information please refer to the MSC Nastran User Defined Services guide).
Every geometry that is set as Structural behavior (and hence will exchange information with MSC
Nastran) must have a single boundary condition applied. This mean that the apply boundary condition to
faces option is disable for such geometries.
It is recommended to specify refinement regions in such a way that the Structural geometry does not
intersect different lattice levels during the whole duration of the simulation.
XFlow supports the following MSC Nastran element types for a fluid-structure simulation:
Points
o GRID
3D elements
o CHEXA
o CPENTA
o CTETRA
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 293
8.4 Nastran
2D elements
o CQUAD {4,8,R}
o CTRIA {3,6,R}
o WETELMG (support for tri3, tri6 and quad4 only)
o WETELME
Please note: Non-linear elements can also be used, however, XFlow will re-generate the geometry
tessellation and split the non-linear elements into a combination of linear ones. This approach gives
rise to approximation in the representation of non-linear deformation (within a single element) and can
also give rise to small holes and gaps in the mesh. Because of this, the usage of non-linear elements
is not recommended.
Please note: The current implementation of OpenFSI in XFlow only supports MSC Nastran 2013.1.1.
The XFlowOpenFSI Service must be installed before it is possible to run a coupled XFlow / MSC Nastran
simulation.
Windows
The following steps describe the installation procedure in Windows (64 bit) machines, where two scenarios
are contemplated: no other OpenFSI installed in the machine; previous OpenFSI installed.
294 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
| |-- xflow
| -- openfsiComp.xml
| |-- WIN8664
| |-- lib
| |-- xflow
| -- openfsi.dll
Please note: The XFlowOpenFSI Service might not be recognized by MSC Nastran if a different
version than "4.8.5" of the Qt library is used by a program included in the %PATH% Windows
environment variable. In this case, please do include the <XFlow_install_dir> as the first item in the %
PATH% Windows environment variable.
Linux
The following steps describe the installation procedure in Linux (64 bit) machines, where two scenarios are
contemplated: no other OpenFSI installed in the machine; other OpenFSI Services present.
Set the following Linux variables (using the export command in the .bashrc file):
o SCA_LIBRARY_PATH=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/services/
Apps/LX8664/lib
o SCA_SERVICE_CATALOG=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/
services/Apps/res/SCAServiceCatalog.xml
o SCA_RESOURCE_DIR=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/
services/Apps/res
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 295
8.4 Nastran
Add the following lines to the export command in the .bashrc file:
o SCA_LIBRARY_PATH=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/services/
Apps/LX8664/lib
o SCA_SERVICE_CATALOG=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/
services/Apps/res/SCAServiceCatalog.xml
o SCA_RESOURCE_DIR=<Nastran_install_dir>/MSC_Nastran/<version>/msc<version>/nast/
services/Apps/res
Please note: The XFlowOpenFSI Service might not be recognized by MSC Nastran if a different
version than "4.8.5" of the Qt library is used by a program included in the $LD_LIBRARY_PATH
Linux environment variable. In this case, please do include the <XFlow_install_dir> as the first item in
the $LD_LIBRARY_PATH Linux environment variable.
In MSC SimXpert select the XFlowOpenFSI Service under the option User Services > OpenFSI. If the
specific service is not available from the dropdown list insert the line XFlowOpenFSI in the field OpenFSI
296 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
Service:
XFlow can import mesh definitions from the following MSC Nastran file types: .BDF, .BULK, .BLK, .DAT, .
DECK, .NAS, .PCH. When reading a mesh from a supported MSC Nastran file XFlow will prompt the user
which elements to import, as shown in the picture below:
The Wet elements option only loads the surfaces of the elements which have previously been marked as wet
(i.e. in contact with the fluid). These can either be WETELME or WETELMG, according to the way the mesh
has been setup in MSC SimXpert (or any other compatible pre-processing tool).
The All elements option, instead, imports every grid point defined in the .bdf file independently of their status
as "wet elements".
Please note: The ensemble of the wet surfaces of the MSC Nastran mesh must be watertight in order to
be correctly handled in XFlow.
Please note: Only the MSC Nastran element types here specified are supported in XFlow.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 297
8.4 Nastran
Within XFlow it is necessary to specify the geometries which will have a flexible structural behaviour and will,
hence, exchange information with MSC Nastran. This is done by setting Structural coupling: Two way from
the Project Tree > Geometry > Geometries > Shape > Structural coupling. This option is only
enabled when the structural analysis is switched on. Although initial position and orientation are available in
the GUI, the current implementation is limited to geometry with (0,0,0) initial Position and Orientation. The
geometry deformation law will be given by the structural solver during the computation.
Please note: The geometries which are selected as Structural coupling: Two way must be set to the
finer lattice resolution of the simulation and should be limited to the case of (0,0,0) initial Position and
Orientation.
To start the coupled simulation first execute the XFlow simulation by selecting the Start Computation option
298 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
from the Run button (+info). The message view will indicate that XFlow is waiting for the initial sync point with
MSC Natran.
XFlow message view communicating the start of a coupled simulation and the need to run MSC Nastran
Execute MSC Nastran and select the generated .bdf file (identical to the one imported in XFlow to setup the
case, see here).
The status of the coupled XFlow / MSC Nastran can be checked from the log file (<name_of_bdf_file>.log)
generated in the execution folder. This is also the main file used for debugging issues during the coupled
simulation.
To terminate the simulation stop the XFlow execution selecting the Stop button (+info) and stop the MSC
Nastran execution.
It is highly recommended to specify the following optional keywords for MSC Nastran to optimize the
simulation runtime: "scratch=mini SDBALL=200GB mem=700MB smem=400MB".
In addition, when using the R4 DEV beta version of MSC Nastran please add the extra parameters:
"sys444=1 delete=IFPDAT src=yes".
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 299
8.4 Nastran
Please note: The Nastran thermal export functionality is only available for Single phase, Free
surface Segregated energy thermal model.
In order to setup a 1-way coupled XFlow / Nastran thermal simulation please follow the steps:
a) Set a boundary condition (set to 0 value) of Heat Transfer Coefficient (CONV key in Nastran) or Initial
300 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
Initial HTC thermal boundary condition set on the Initial Temperature thermal boundary condition set on the
surface of solid elements. nodes of solid elements.
b) Setup a Single Phase/Free Surface Thermal model: Segregated energy simulation in XFlow;
c) Import the Nastran .bdf file containing the structural analysis setup. It is highly advised to set correctly
the surface elements of interest as "wet" and select the Wet element option. This represents the most
accurate setup and will also reduce the computation time (no elements within the solid will be
considered). However, if no wet element definition is present in the .bdf file please do select the All
elements option;
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 301
8.4 Nastran
d) Set a proper set of thermal boundary conditions on the imported geometry. Those could either be (the
conditions are not exclusive):
e) It is possible to visualize the surface field distribution prior to exporting them using the Surface info
post-processing (+Info)
Please note: When performing CHT simulations in XFlow, if the solution is not yet in thermal
equilibrium too different values of Temperature will be defined on the body surface. The value shown
by XFlow (and exported) by default is the temperature of the fluid in contact with the body. If the body
temperature wants to be exported its normals must be reversed first (+info). This allows XFlow to
select the temperature field of the solid region.
f) Export the surface HTC or Temperature field using the Simulation data > Export data. Select
NASTRAN thermal data (.bdf) in the Format to export option, as shown in the image below;
Type of data specifies if Instantaneous/Averaged data will be used when exporting the
Temperature field only. HTC values are always instantaneous.
Nastran project set the project which will be modified automatically by XFlow to include the
boundary conditions. The same .bdf file used as import in the geometry session must be used.
Select either Temperature (volumetric field projected onto the surface's body) or HTC (actual
surface values calculated by the solver). The selected field tag will be added to the exported
filename.
Frames select the frame of interest or a range of frames to export. In the latter case several files
will be created with the frame number included in the filename (e.g.
xflowproject_Nastran_0_HTC.bdf, xflowproject_Nastran_1_HTC.bdf, etc...)
302 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
8 Co-Simulation
g) One or several (depending on the frame range selected) files will be created which filename will be
defined as "xflowproject_$Nastran-file_$frame_$variable.bdf". The file(s) will contain
a boundary condition for each of the element faces in contact with the fluid, when the HTC variable is
exported. When, instead the Temperature variable is exported an initial temperature distribution is set
in the newly created .bdf files, as shown in the snapshot below.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 303
8.4 Nastran
The current 1-way XFlow/Nastran thermal coupling is limited to Single phase, Free surface Segregated
energy thermal model simulations.
Only Fixed geometry behaviour can be set and no initial Position and Orientation can be specified.
304 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
9 Application modes
9 Application modes
This chapter explains the different Application modes available:
The user has to restart the XFlow interface to make the application mode change effective.
Scalar transport
Acoustic analysis
Turbulence generation
Advanced options
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 305
9.1 Expert mode
Generate scripts
GPU execution
Supersonic flow
Coupled energy flow
Multiphase - Phase field
Spalart-Allmaras (turbulence model)
Time integration scheme
MLS interpolation
Reference pressure point
Output format (CGNS)
Highest available frequency
Animated geometry behavior
Import ADAMS simulation
FMI Standard
Abaqus Co-simulation
MSc Nastran Co-simulation
Multiphase - VoF
306 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
9 Application modes
Execution: CPU
Execution: GPU
New solver for XFlow GPU simulations. The solver runs using GPU instead of CPU, offering great speed-
up compared to CPU execution.
The GPU solver is still an on-going development and therefore it is limited to the following features:
Engine
3d kernel
Flow model: Single Phase (SP) | Free surface (FS) | Multiphase Particle-based tracking (PBT) /
Phase Field (PF)
Isothermal solver
Turbulence model: Automatic | Off
Turbulence generation: Off
Acoustic analysis : Off
Scalar transport : On | Off
Advanced options : Volume correction
Environment
Initial conditions : User Defined | Wind Tunnel Default
Reference velocity : Custom
Ground wall : Automatic | Resolved | Non-equilibrium Wall function | Free-slip
Lateral boundaries : Automatic| Non-equilibrium Wall function | Resolved | Free-slip
Generic rectangular domain -> Wall model : Automatic | Non-equilibrium Wall function | Resolved |
Free-slip
Materials
Viscosity model: Newtonian
Surface tension (PBT/PF only)
Contact angle (PBT/PF only)
Contact angle hysteresis (PF only)
Interface thickness (PF only)
Geometry
Behavior: Fixed | Enforced (SP/FS/PBT only)
Boundary conditions : Wall | Velocity/Mass Flow/Pressure/Total Pressure Inlet | Velocity/Mass Flow/
Pressure/Total Pressure Outlet | Porous Wall Inlet (PF only) | Porous Volume
Moving boundaries: Immersed Boundary method: On
Shape contact angle (PBT/PF only): On | Off
Wall model : Automatic | Non-equilibrium Wall function | Resolved | Free-slip
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 307
9.2 Labs mode
Simulation
Time step mode : Custom | Automatic
Refinement algorithm: Disabled | Near static walls | Adaptive refinement (SP only)
Seal small gaps: Automatic | Disabled | All shapes | Individual shapes
Refinement transition length : 8
Buffer zone length : Always 0
Refinement in wind direction : On | Off
Refinement based on simulation data : Disabled | Averaged total pressure
Numerical data time-step : Solver time step
Save averaged : Off
Save resume : Off
Compute markers : Off
Output format : XFlow
Probes
Solver surface integrals (only working with VOF and velocity)
Please note: Due to its lattice generation algorithm which is block-based, the domain restricts the
dimensions of the fluid domain to a multiple of 8 times the coarsest resolution as minimum. Blocks are
8x8x8 voxels in the entire domain structure. Also, the wind tunnel dimensions are automatically adapted to
be an entire multiple of blocks.
Please note: When using moving bodies in GPU, the following best-practices should be followed:
1. Force integration scheme: Surface Stress Integration should be enabled in the Environment tab (+info).
2. The frame frequency should be a multiple of 1/dt.
Supersonic: Only available in Labs mode. Allows to solve flows with fluid speed close or higher than the
speed of sound.
Examples of applications: aerodynamics for supersonic, transonic, and hypersonic flows, flows involving
shockwaves, etc.
Please note: This solver is only a prototype and therefore the output should be considered with
precaution.
308 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
9 Application modes
Please note: The solver can only support supersonic flow velocities, while enforced geometries should
have motion laws which result in velocities lower than the speed of sound.
where T is the temperature, is the density, Cp is the specific heat capacity, k is the thermal conductivity,
is the viscous stress tensor, and v the velocity vector.
Coupled energy: Only available in Labs mode. The energy equation is solved and takes into account for the
compressibility term. This solver is useful in order to account for the pressure/temperature variations when
the gas is highly compressed/expanded, and is valid only for isentropic processes.
Please note: This solver is only a prototype and therefore the output should be considered with
precaution.
9.2.4 Spalart-Allmaras
Project Tree > Environment > Engine > Turbulence Model
Spalart-Allmaras is the only RANS (in fact, uRANS) model included in XFlow.
This model solves a single transport equation that determines a variable named Spalart-Allmaras variable,
and that is identical to viscosity except near the walls. Viscosity relations are as following:
where is the turbulent viscosity production term, the destruction term, is the molecular kinematic
viscosity and and Cb2 are constants respectively equal to 2/3 and 0.622 by default.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 309
9.2 Labs mode
where
where Cw2, Cw3, κ and Cb 1 are constants respectively equal to 0.3, 2, 0.4187 and 0.1355 by default.
For Single Phase cases, XFlow allows the user to choose between the following time integration schemes:
[1] Fractional Propagation and the Elimination of Staggered Invariants in Lattice-BGK Models, Yue-Hong Qian, Int. J. Mod.
Phys. C, 08, 753 (1997).
Moving least squares (MLS) is a method of reconstructing continuous functions from a set of point samples
via the calculation of a weighted least squares measure biased towards the region around the point at which
the reconstructed value is requested.
This method improves the interpolation between different lattice levels or domain border limiting some
discontinuities which can be shown by the convolution method, despite of being slightly slower.
310 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
9 Application modes
The reference pressure point option appears only when no pressure boundary condition is set in the
simulation and allows to fix one point of the domain at the reference pressure. If no pressure boundary
condition is set, the gauge pressure may diverge since there is no condition to impose the pressure
equilibrium in the fluid domain.
Please note: The reference pressure point is only available for Single Phase flow model.
XFlow format
Project Tree > Simulation > Store data > Output format > Native XFlow: On/Off
The XFlow native format is a binary format and saves one file per frame, per field and per data type. See
XFlow files.
Please note: XFlow native format can be read only by XFlow from the XFlow interface.
CGNS format
Project Tree > Simulation > Store data > Output format > CGNS: On/Off
CGNS stands for CFD General Notation System. It is a general, portable, and extensible standard for the
storage and retrieval of CFD analysis data. It consists of a collection of conventions, and free and open
software implementing those conventions. CGNS is readable by most external post-processing software.
Please note: In the case averaged data is saved, XFlow saves in the last frame of the CGNS file the
averaged data simulation. CGNS format is not available for moving geometries and adaptive refinement.
VTK format
Project Tree > Simulation > Store data > Output format > VTK: On/Off
The Visualization Toolkit (VTK) (http://www.vtk.org/) is an open-source, freely available software system for
3D computer graphics, image processing, and visualization. VTK is readable by most external post-
processing software.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 311
9.2 Labs mode
Please note: In the case averaged data is saved, XFlow saves in the last frame of the VTK file the
averaged data simulation. VTK format supports moving parts and adaptive refinement.
This sampling mode allow the user to save the data with the highest frequency available in the domain, i.e.
the frequency in the finer level of the lattice.
Remember: The Time step, either estimated by XFlow or given by the user, corresponds to the biggest
resolution of the lattice. Other resolution levels are automatically created using spatial and temporal
resolutions twice smaller than the previous level, resulting in an octree structure both in space and time.
Please note: This feature is only relevant when running a simulation with different levels of refinement,
otherwise it is equivalent to Solver time step.
This feature allows the user to perform fluid-structure-interaction (FSI) simulations where the solid behaves as
a non-rigid body, according to a user-defined motion.
Example 1:
Frame folder- containing: frame0.stl, frame1.stl, frame2.stl, frame10.stl, frame11.stl
Animated geometry behaviour - given by the following geometry sequence:
1. Frame 0 = frame0.stl
2. Frame 1 = frame1.stl
3. Frame 2 = frame10.stl
4. Frame 3 = frame11.stl
5. Frame 4 = frame2.stl
Example 2:
Frame folder- containing: b.stl, d.stl, a.stl
Animated geometry behaviour - given by the following geometry sequence:
1. Frame 0 = a.stl
2. Frame 1 = b.stl
3. Frame 2 = d.stl
312 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
9 Application modes
Example 3:
Frame folder- containing: firstFrame.stl, secondFrame.stl, thirdFrame.stl, fourthFrame.stl
Animated geometry behaviour - given by the following geometry sequence:
1. Frame 0 = firstFrame.stl
2. Frame 1 = fourthFrame.stl
3. Frame 2 = secondFrame.stl
4. Frame 3 = thirdFrame.stl
Example 4:
Frame folder- containing: 05_frame.stl, 01_frame.stl, 02_frame.stl, 00_frame.stl, 20_frame.stl
Animated geometry behaviour - given by the following geometry sequence:
1. Frame 0 = 00_frame.stl
2. Frame 1 = 01_frame.stl
3. Frame 2 = 02_frame.stl
4. Frame 3 = 05_frame.stl
5. Frame 4 = 20_frame.stl
Please note: Every geometry of the sequence must have the same number of triangles. Only
vertex displacements are accounted for. Hence, from a .STL geometry to the next of the sequence,
vertices can be moved but no topological changes can be made. Therefore, facet should be listed
always in the same order and vertices of each facet should be in the same order too.
Please note: The deformation velocity is applied at the geometrical vertices (not the surface) and,
hence, if those vertices are not in the fluid domain no effect is transferred to the surrounding fluid.
This also applies to geometry with a sparse vertices count on the surface definition.
Source > Frames per second: Number of the .STL geometries stored in Frame folder that has
to be morphed per second.
Volume preservation: On/Off. If this switch is activated XFlow will check whether the volume of
the Shape is conserved after each morphing. In case it is not, it will enforced the volume
conservation by rescaling the mesh.
Please note: This geometry behaviour is not compatible with Apply boundary condition to faces.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 313
314 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
10 Command lines
10 Command lines
XFlow simulations can be executed by command lines which enables the automation of the simulations
executions. Two main executions methods exist:
Batch mode: this is the simplest way to automate your simulation execution, but requires OpenGL
support.
Advanced command lines: this is a step-by-step execution but allows more control in the process and
can be executed without OpenGL support.
Please note: All the examples below are given for Linux systems. Please adapt adequately if working on
a Windows system. Example: XFlow executable becomes XFlow.bat instead of xflow-gui, engine-
3d becomes engine-3d.bat, etc.
Please note: /run sequentially executes: (i) domain generation; (ii) solver calculation. These three
actions can be individually performed as explained below.
1) Domain generation
Launch the domain generator using the simulation file specified:
[simulation-folder]> [xflow-installation-path]/generateDomain3d [simulation-
folder]/project.xfp <options>
2) Engine execution
The XFlow-engine.bat (xflow-engine in Linux) handles the execution of the solver.
Launch the engine for serial calculation:
[simulation-folder]> [xflow-installation-path]/xflow-engine [simulation-
folder]/project.xfp <options>
Launch the solver for MPI calculation: more details in the Distributed computations section below.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 315
10.1 Advanced command lines
Alternatively, it is possible to specify the actual executable required by each flow model.
Launch the engine for serial calculation:
[simulation-folder]> [xflow-installation-path]/engine-3d[-flow-model]
[simulation-folder]/project.xfp <options>
Launch the solver for MPI calculation: more details in the Distributed computations section below.
Please note: In this section the input file used is the .XFP file format, however the same procedure
applies with the .XFZ file. Both formats can be used to run the domain generator as well as the XFlow
engines.
In order to run a distributed MPI computation firstly the domain must be decomposed in n partitions. This
process is performed at the domain generation stage by running the domain generator with the -mpi option:
The [mpi-version] flag defines which engine to use in order to guarantee compatibility with the system
MPI version. The default options defined for the Linux installation are:
The available [mpi-version] options are defined in the text file xflow_solver_mpi_ids.txt located
in the XFlow installation folder. This file should not be deleted nor modified.
The user should specify the mpi option that matches the MPI implementation installed on the computing
environment.
Alternatively, it is possible to specify the actual executable required by each flow model.
where the [mpi] suffix corresponds to the specific MPI compatible engine:
engine-3d[-flow-model]-mpi: for Intel MPI
engine-3d[-flow-model]-mpi-ompi: for OpenMPI 1.4 (Linux only)
engine-3d[-flow-model]-mpi-ompi6: for OpenMPI 1.6 (Linux only)
engine-3d[-flow-model]-mpi-ompi10: for OpenMPI 1.10 (Linux only)
316 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
10 Command lines
Please note: The MPI command illustrated above is a generic one assuming OpenMPI is used. This
command mostly depends on the MPI implementation (Intel MPI, OpenMPI, etc.) and HPC system.
Please contact your system administrator for more details.
GUI options
Engine options
Please note: The options syntax for Windows is "/", whereas it is "-" for Linux. Example: /
maxcpu=4 becomes -maxcpu=4 on Linux.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 317
10.1 Advanced command lines
Please note: The option /initializewithdatafolder can be defined in the project file directly (Project
Tree > Environment > Environment > Global attributes > Initial conditions:
Simulation data) but the command line option will have priority over it. Note the path must be
defined as seen by the machine executing the calculation.
The domain generator features additional options for advanced MPI partition optimization. Default values are
recommended however.
Tip: The -mpi option can be cumulated several times in order to create several partitions at once.
This is very useful when the number of nodes/cores that will be used for the MPI simulation is not yet
determined since it avoids to generate the domain again for another number of partitions. Example:
generateDomain3d project.xfp -mpi=4 -mpi=8 -mpi=16.
Executables
Each flow model requires a different engine executable. This is automatically selected when executing the
xflow-engine command.
Nonetheless, the list of the available engine executable is here provided:
List of the executables and how they are related to the values in the .XFP.
If a combination of values does not appear on this list, it means that it is not allowed:
engine-3d
318 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
10 Command lines
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 319
10.1 Advanced command lines
To execute a simulation by command lines, a few files are necessary for XFlow. The required files for the
given engine executable are:
for non-MPI engines:
[project-name].xfp (or xfz)
[project-name].xfd
In addition, if the simulation is run with the GPU solver: [project-name].blocks.xfd
The [project-name].xfd file is the fluid domain file output by the executable generateDomain3d. The [project-
name].xfd.part.[N] is the partition file for distributed calculation on N partitions.
XFlow data can be exported in several formats, see Export data. This can be executed with command lines as
follows:
XFlow.bat project.xfp -exportdata=ensight,cgns, Data format to export: Ensight Gold,
paraview CGNS, Paraview. Only one
argument allowed.
-exportfrom=N Starting frame to export. Example:
from frame 0.
-exportto=M Ending frame to export.Example: to
frame 20.
-exportdatatype=inst,avg, Data type to export: instantaneous,
std averaged, or standard deviation.
Only one argument allowed.
-exportfields=vel,sp,vort, List of fields to export:
tp,ti,temp,vof, Volumetric fields (ex: vel)
vel_proj,sp_proj,vort_proj, Projected fields (ex: vel_proj)
tp_proj,ti_proj,temp_proj, Surface fields (ex: cp)
vof_proj, Can contain more than one field
cp,cf,yplus,pplus separated by commas.
XFlow numerical data can be exported into a tabular data file running the xflow_numericaldata_export
executable available in the simulation folder. This can be executed with command lines as follows:
320 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
10 Command lines
xflow_numericaldata_export.bat
-s "simulationfolder1, Indicates the simulation folder to
simulationfolder2" extract. A maximum of 2
simulation folders can be
extracted at the same time.
-d "entity1/component1, Must indicate the entity and
entity2/component2" component of the data to extract.
The entity and component are
described in the numericaldata.xml
file located in the simulation folder
(and within the subfolder node_N
folder for MPI simulations).
-o outputFilename.txt Name of the file to output.
-h Displays the help.
Some of XFlow post-processing capabilities can be automated through command lines while opening an
XFlow project file. The automated tasks are the following:
XFlow.bat project.xfp - Loads an xfpp file (post-processing
importpostprocessingfile="p file),defined in "pathToFile", when
athToFile" xflow-gui starts. Equivalent to Import
xfpp.
-refreshpostprocessing Refreshes all the post-processing
features defined in the xfp file
(project file) when xflow-gui starts.
Equivalent to Refresh Post-
processing object.
- Exports a tabular file with all the
exportpostprocessingresults curves corresponding to the post-
="pathToDir" processing non-default numerical
data (stream tracers, volume/
surface integrals, sensors, data plot
lines) when xflow-gui starts.
Equivalent to Export numerical data.
-exportanimation Generates an animation when xflow-
gui starts.Equivalent to Animation.
- Export all plot lines in .txt format. The
exportallplotlines="PathToD specification of "PathToDir" is
ir" optional. Default directory is the
simulation directory.
Tip: In order to specify the properties of an animation thorugh an xfpp file, it is possible to combine
-exportanimation with -importpostprocessingfile="pathToFile" command.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 321
10.1 Advanced command lines
Please note: The post-processing and exportation options must be executed with the XFlow.exe
instead of the XFlow.bat in Windows.
Co-simulation Orchestrator
The cosim_orchestrator is an utility tool provided with the XFlow installation to streamline the execution
of co-simulation workflows (+info).
Dsls_stat
The dsls_stat is an utility tool provided with the XFlow installation to query DSLS license servers and
provide license availability and usage information. This utility can be used, for example, to check XFlow
license availability before execution in HPC environments.
The default behaviour of the utility is to check any DSLS server that has been configured to be used (e.g.
checking the system default location for the DSLicSrv.txt license client configuration file). However, the
following command line options are available:
-server Use this option to specify the name of the server machine and the
port number on which the DSLS
software is running; for example dsls_stat -server jupiter:4085
-usage Use this option to show license usage details for individual users in
the output
Server: xxx
Name : xxx
Port : 4085
Status : Running
Type : Standalone
Version : 6.422.0
OS Name : Windows 10
OS Version : 10.0
OS Arch : amd64
Computer Id : xxx
Licenses:
+ Feature | Version | Model | Type | Number |
InUse | Expires | Server Name | Customer ID
+ ------------------------- | ------- | --------------- | ----- | --------- |
------- | -------------------- | -------------------- | -----------
| XFE | 0 | ConcurrentUser | STD | 1 |
0 | 16-Oct-2020 01:59:00 | xxxx | xxx
| XFE | 0 | Token | STD | 10 |
0 | 11-Dec-2020 00:59:00 | xxxx | xxx
| XFG | 0 | ConcurrentUser | STD | 1 |
1 | 16-Oct-2020 01:59:00 | xxxx | xxx
| XFG | 0 | ConcurrentUser | STD | 10 |
0 | 11-Dec-2020 00:59:00 | xxxx | xxx
322 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
10 Command lines
Please note: The default domain partition is strongly recommended, and the use of the domain
partition optimization is available for advanced users only and may deeply affect the scalability
performance if it is not employed correctly.
Stage 1
Options available for this stage with default values:
-maxAllowedImbalance=0
-nPruneIterations=100
Pruning of the small partitions or segments in the Hilbert curve. All the segments are enumerated and their
lengths put in a list which is sorted. The resulted list is divided in nPruneIterations parts and we attempt
to remove all the segments with sizes smaller than the considered length Lc. If this results in an imbalance
smaller than maxAllowedImbalance, the segments with lengths smaller than Lc are discarded from the
partition.
Please note: When one of these options is set to 0 (default value), the Stage 1 will be disabled
altogether.
Example:
Segments: 100 100 20 19 15 15 5 5 5 5 2 2 2 2 2 2 1 1 1 1 1 2 5 1 2 5 1
List of lengths: 1 2 5 15 19 20 100
Assuming nPruneIterations=3, lenghts to consider: 5, 19, 100
Assuming maxAllowedImbalance=3:
Attempt at removing smaller than 5, resulting imbalance ->1
Attempt at removing smaller than 19, resulting imbalance ->10. End.
Stage 2
Options for this stage with default values:
-nSAIterations=0
Optimization of the resulting list after pruning, we employ a simulated annealing-like algorithm, with a given
number of iterations.
Please note: When this parameter is set to 0 (default value), the Stage 2 will be disabled altogether.
Additionally
Additionally, weights have been introduced for the different types of cells, which are weighted on a link-by-
link basis. In principle these need to be adjusted, by default they are assumed to be 1, so the default
partitioning behavior should be recovered with -nPruneIterations=0 and -nSAIterations=0.
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 323
10.2 Domain partition optimization
Links that see a lower (coarser) level, in principle these require the most expensive interpolation and
should have the highest weight:
-weightLower=1
324 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
Index
Index -C-
cables 170
CGNS 311
-1- check holes 88
heal 98
1-way Thermal 300 child 162
children 162
-A- Co simulation 271
command lines 315
abaqus 200, 278 computation 199
Abaqus co-simulation 167 progress 208
Absorbing boundary conditions 159 resume computation 199
acoustics analysis 114 run 199
Adams 271 stop 209
adaptive 178 compute
Adiabatic index 146 average fields 190
advanced computation 57, 201 markers 190
distributed (MPI) 204 rms 190
serial 201 standard deviation 190
advanced options 119 static pressure filters 190
acoustics analysis 114 conjugate heat transfer 163
analysis settings 44 conventions 12
animated geometry 312 co-sim 200
animation 252 Cosimulation 271
advanced 254 co-simulation 200, 271, 278, 284
basic 252 Coupled energy 110
application coupling 271, 292, 300
labs 66 CSS 200
normal 66 cutting plane 227
application mode 305
arbitrary reference frame 168 -D-
-B- discard narrow regions 178
domain structure 227
back-face culling 82
batch 315 -E-
batch mode 315
bins 238 edit project 50
boundary condition 156, 157 editing mode 50
boundary conditions 152 edition mode 52
buffer zone length 178 engine 103
bulk viscosity 141 advanced options 119
analysis type 109
flow models 105
multiphase model 107
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 325
XFlow 2022 User Guide
326 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
Index
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 327
XFlow 2022 User Guide
328 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
Index
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 329
XFlow 2022 User Guide
visualisation material
rubber 79
shadows only 79
visualisation mode
bounding box 81
mesh 81
shading 81
wireframe 81
volume heat 163
volumetric heat source 130
voxels 227
vtk 33
vtu 33
-W-
W/m^3 130
wall boundary condition 153
wall function 153
window functions 114
-X-
XFlow files 53
XFlow native 311
330 XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU
XFlow 2022 User Guide © 2011 - 2021 Dassault Systèmes España, SLU 331