Numeca Cfview Manual
Numeca Cfview Manual
CFView™ v8.7
Flow Visualization and Post-Processing
- May 2010 -
NUMECA International
5, Avenue Franklin Roosevelt
1050 Brussels
Belgium
CFView™ iii
Contents
iv CFView™
Contents
CFView™ v
Contents
vi CFView™
Contents
CFView™ vii
Contents
viii CFView™
Contents
CFView™ ix
Contents
x CFView™
Contents
CFView™ xi
Contents
xii CFView™
CHAPTER 1: Getting Started
1-1 Overview
Welcome to the CFView™ User Manual, an illustrated presentation of the CFView™ capabilities.
This chapter presents the basic concepts of CFView™ and shows how to get started with the pro-
gram. Specifically, this chapter describes:
• what CFView™ does and how it operates,
• how to use this guide,
• how to run CFView™.
1-2 Introduction
CFView™ is the flow visualisation tool of the FINE™ integrated environment. It is designed for
the visualization of structured and unstructured meshes in multi-domain (multi-block) configura-
tions and provides a user friendly graphical interface (GUI) integrating two dimensional and three
dimensional plotting capabilities in a multi-window environment.
1-2.1 Features
CFView™ provides a set of powerful exploration tools for the interactive qualitative and quantita-
tive analysis of the field. This analysis can be performed on any surface and consists of representa-
tions such as local values, isolines, Cartesian plots, streamlines, contour shading and thresholding.
In addition, CFView™ provides a set of numerical probes for a quantitative investigation of the
flow properties anywhere in the computational domain.
The most important tools comprise the local value extraction, the quantity distribution along curves
(arbitrary section or mesh lines or streamlines) for detailed analysis of specific regions such as
boundary layers.
CFView™ 1-1
Getting Started Introduction
CFView™ provides the ability to display in Cartesian and cylindrical coordinates as well as in tur-
bomachinery blade to blade views. Scalar and vector quantities can be displayed and new quantities
can be computed by providing their mathematical formula. Pitchwise averaging can be performed
and comparison with experimental data or with other numerical data is easily obtained.
Another interesting feature of the system is the ability of scanning instantaneously the computa-
tional volume by scrolling through constant I, J, K mesh surfaces or by moving arbitrary cutting
planes. This feature gives the possibility to localize rapidly regions of interest in the field.
CFView™ is capable to visualize surfaces in hidden lines or shaded models with userdefined light
sources assigned to the views. When saving pictures several formats are available. The creation of
animations from unsteady data sets is extremely easy and the animations can be recorded as ani-
mated GIF files.
All these features are integrated in a highly interactive multiwindow environment which allows
loading different data sets for comparison during the same CFView™ run.
This version of CFView™ contains macro capabilities. A macro is a powerful tool that allows
recording a sequence of operations that can be played back later. It is also possible to create librar-
ies of custom macros to perform repetitive operations quickly.
1-2 CFView™
Conventions Used in this Manual Getting Started
A light bulb in the margin indicates a section with more detailed information on a
specific subject for advanced use of CFView™.
1-4 Outline
The first five chapters of this manual contain all information necessary for a beginning user to work
with CFView™. The advanced user may however also consult these first chapters when requiring
more detail about a specific task.
This first chapter tells how to start the application. Chapter 2 introduces the basics: the graphical
user interface and project management. To learn how to use and how to perform a specific task, turn
to Chapter 3 to Chapter 5. All the functionalities of the system software are gathered in a
step-by-step learning method.
For the more advanced user Chapter 6 and Chapter 7 and Appendix B provide more detailed infor-
mation. Chapter 6 describes the analysis of time dependent data sets. In Chapter 7 the macro system
of CFView™ is described with the available commands in Python language. The macro system is a
powerful feature that allows automating CFView™. To learn how to generate input files in the
CFView™ native file format, turn to Appendix B. It contains the description of the CFView™ input
data file system.
CFView™ 1-3
Getting Started Advanced Options
• Hardware and operating system requirements should be verified to see whether the chosen
machine is supported.
• Installation of CFView™ according to the described procedure in a directory chosen by the user
and referenced in the installation note as ‘NUMECA_INSTALLATION_DIRECTORY’.
Depending on the provided installation package CFView™ is installed alone or in combination
with other NUMECA software.
• A license should be requested which allows for the use of CFView™. This license should be
installed according to the described procedure.
• Each user willing to use CFView™ or any other NUMECA software must perform once a user
configuration as described.
When these points are checked the software can be started as described in section 1-5.2.
1-4 CFView™
Advanced Options Getting Started
The command line arguments allow to override some system defaults (used graphics acceleration
driver, display device name, doublebuffering and updateabort options) or to specify files to be
loaded immediately (project, macro, defaults settings, macro module).
The supported command line arguments are:
• -help: prints a summary of the command line arguments.
• -version: prints the CFView™ version number.
• -backward <version number>: necessary when executing a macro file created with an earlier
version than CFView™ v8.
• -date: prints the CFView™ version date.
• -defaults <defaults file name>: starts CFView™ with the default settings from the specified file
(see section 4-11 for a complete description of defaults settings).
• -project <project file name>: starts CFView™ and opens immediately the specified project.
• -nob2b on: starts CFView™ and allows to avoid the hub and shroud projections process when
loading a turbomachinery solution file.
• -macro <macro script file name>: starts CFView™ and executes the specified macro script.
• -macromodule <macro module file name>: starts CFView™ and loads a specified macro mod-
ule (see section 2-6.2.8 for a description of the macro module feature).
• -display <display name>: starts CFView™ on the specified display device, overwriting the DIS-
PLAY environment variable (this feature is available only on UNIX and LINUX platforms).
• -doublebuffering (or -doublebuffering on): activates double buffering, overwriting the
NI_DOUBLEBUFFERING environment variable if existing (see section 1-6.2 "Customizing
the Graphics Option"). The argument -doublebuffering off disables the double buffering feature,
overwriting the environment variable.
• -updateabort (or -updateabort on): activates update aborting, overwriting the UPDATEABORT
environment variable if existing (see section 1-6.2 "Customizing the Graphics Option"). The
argument -updateabort off disables the update abort feature, overwriting the environment varia-
ble.
• -driver <driver name>: starts CFView™ with the specified graphics accelerator (see for infor-
mation on graphics accelerators section 1-6.2.4).
• -reversevideo (or -reversevideo on) starts CFView™ with black background color, overwriting
the REVERSEVIDEO environment variable if existing (See section 4-11.4.1). The argument
-reversevideo off starts CFView™ with a white background color (the default).
• -facedisplacement <n>: starts CFView™ with the specified face displacement (See
section 4-11.4.3).
• -loaddata all (-loaddata none, -loaddata ask). With the -loaddata all option (the default), when
opening a project the quantities fields are loaded in the computed memory. With the -loaddata
none, no quantity are loaded. And with the -loaddata ask argument, a specific dialog box is
raised where the user choose the field variables to be loaded. See section 4-2.2.1 for a descrip-
tion of the data management facility and of the associated dialog box
• -batch (or -batch on): starts CFView™ without graphical user interface. This mode can be used
in combination with the -macro command line option in order to perform the execution of a
macro script without user interaction.
• -turbomode (or -turbomode on): starts CFView™ with the turbomachinery analysis mode ena-
bled (see section 5-4), overwriting the TURBOMODE environment variable if existing. The
argument "-turbomode off" starts CFView™ in the standard mode, overwriting the environment
variable.
• -hoops_relinquish_memory off: this option disables the garbage collection feature in the
HOOPS graphics library that is activated when CFView™ is idle during a long period of time.
CFView™ 1-5
Getting Started Advanced Options
1-6 CFView™
Troubleshooting Getting Started
on Windows:
• Log in as Administrator.
• Launch regedit from the Start/Run menu.
• Go to the HKEY_LOCAL_MACHINE/SOFTWARE/NUMECA International/Fine# register.
• Modify the DRIVER entry to either OPENGL or MSW.
The selection will take effect at the next session.
1-7 Troubleshooting
Unexpected termination of CFView™ may occur due to memory resources, network or graphics
server problems or other problems. In case of unexpected termination CFView™ tries to save a
script that allows, once CFView™ is restarted, to retrieve the visualization session at the point it
was interrupted.
On Windows platforms, the script is saved in the user home directory under the name
cfview_recover.py. On Windows the home directory is defined by the environment variable HOME.
If this variable is not defined the home directory is set to the concatenation of HOMEDRIVE and
HOMEPATH environment variables.
On UNIX and LINUX platforms, the script is saved in the .numeca subdirectory under the user
home directory and with the name .Cfview.recover.
To restart the session, CFView™ has to be restarted and the script has to be executed by selecting
File/Macro/Execute... This opens a file chooser dialog box, in which the recovery file has to be
selected.
CFView™ 1-7
Getting Started Troubleshooting
1-8 CFView™
Overview Graphical User Interface, Projects & Views
2-1 Overview
This chapter presents the basic concepts used in CFView™. It is divided in 6 sections:
• user interface description,
• opening project,
• manipulating active view,
• manipulating graphics area (multi view operations),
• adding coordinate axis in a view,
• templates and macros.
The first section describes the basic concepts of the interface. The remaining sections provide
step-by-step instructions for loading and working with a project.
CFView™ 2-1
Graphical User Interface, Projects & Views Graphical User Interface (GUI)
Creating flow field pictures with print quality is made very easy with CFView™ and usually con-
sists of the following steps:
1. The fluid flow simulation project is opened and a sketch of its geometry is drawn automatically
in the graphics area. When used in the FINE™ GUI environment, CFView™ is opening auto-
matically the current computational project. More than one project can be opened simultane-
ously (see section 2-3.3 for multiple project handling and section 2-3.2 for a detailed description
of the supported file formats).
2. One or several surfaces on which a flow quantity is to be represented are selected or created.
CFView™ allows selecting any of the boundary surfaces on which boundary conditions have
been defined, but also allows creating cuts at arbitrary locations as well as iso-surfaces. Please
refer to Chapter 3 for a detailed description of surface selection and creation.
3. The flow quantity and the type of representation are selected. Isolines, color contours, stream-
lines, iso-surfaces, solid rendering, Cartesian plots are among the most frequently used repre-
sentations available. The graphics area is updated automatically. Refer to Chapter 4 for a
detailed description of quantity selection and creation and also for a detailed description of the
various types of representations.
4. If necessary, the viewing point can be modified (see section 2-5) and the representation parame-
ters can be modified through dialog boxes (see section 4-10).
5. The final picture is printed in one of the available graphic formats (PNG, JPEG, PostScript...).
2-2 CFView™
Graphical User Interface (GUI) Graphical User Interface, Projects & Views
The user interface is organized in various parts: the menu bar, the toolbar, the Quick Access Pad, the
graphics area, the message area, the information area and the viewing buttons, as can be seen in Fig-
ure 2.2.0-1. Each part plays a specific role, as explained in the following sections.
The menu bar is situated at the top of the layout. It consists of ten pull down menus: File, Edit, Geom-
etry, Render, Quantity, Representation, Update, View, Window, Preferences and Macros. They
contain all the commands needed to control CFView™.
The pull down menus are dynamic. Their content depends on the active project type (2D or 3D, struc-
tured or unstructured) and on the quantity selected. For example:
• In 2D, the Render pull down menu and a part of the Geometry pull down menu as well as other
items are not available.
• When selecting a scalar quantity, the content of the Representation pull down menu is different
from the menu available for a vector quantity.
• The content of the Quantity pull down menu is based on the quantities given in the project file.
For example, if there is no validation data loaded, this item will not be available.
When a command is not available, it appears in light grey and it is not possible to select it.
CFView™ 2-3
Graphical User Interface, Projects & Views Graphical User Interface (GUI)
2-4 CFView™
Graphical User Interface (GUI) Graphical User Interface, Projects & Views
2-2.2 ToolBar
The toolbar is located right under the menu bar and allows performing common tasks. This bar is com-
posed of 14 buttons that allow performing different tasks.
In the case of unsteady data sets, the toolbar is extended by a set of specific buttons:
CFView™ 2-5
Graphical User Interface, Projects & Views Graphical User Interface (GUI)
2-6 CFView™
Graphical User Interface (GUI) Graphical User Interface, Projects & Views
• The Representations subpanel provides icons for creating representations and for the computation
of surface integrals (see Chapter 4).
Each subpanel may be closed and reopened by clicking on its header.
The width of the Quick Access Pad may be augmented or narrowed by clicking and dragging the
square button situated on the right side of the Surfaces subpanel header.
The height of the Surfaces and Quantities subpanels may be increased or decreased by clicking and
dragging the square buttons situated at the bottom right of the subpanels.
CFView™ 2-7
Graphical User Interface, Projects & Views Graphical User Interface (GUI)
The viewing buttons are described in section 2-5.3 and the three other regions are outlined below.
2-8 CFView™
Project Management Graphical User Interface, Projects & Views
To open a project, the user must have the read permission on the file and the execute per-
mission on the whole directory path where the project related files are located.
CFView™ 2-9
Graphical User Interface, Projects & Views Project Management
2-10 CFView™
Project Management Graphical User Interface, Projects & Views
The first entry should contain the name of the geometry file, the second one should contain the name
of the solution file and the last two entries should contain the name of the function file and the associ-
ated name file. A Plot3D project must always contain a geometry file. A project can also be composed
of a geometry and a solution file. The last kind of project contains the four file types.
As various kind of file formats are allowed in the Plot3D format, the user should provide information
on the file format by clicking on the File Format... button in the Plot3D file chooser box or by select-
ing the Plot3D file type... item in the Preferences menu. The dialog box as shown below will appear.
The dialog box contains, on the left side, the parameters related to the grid type:
• multiblock: must be selected if the grid contains more than one block;
• blanking: must be selected if blanking information is included in the files. It should be emphasized
that this parameter relates to the presence of the blanking information in the file. It may happen
that such information is included even if no grid point is blanked.
On the right side, the parameters related to the file formatting are as follows:
• file type: may be ASCII, binary single precision, binary double precision, unformatted single preci-
sion or unformatted double precision;
• binary big endian/binary low endian: this information relates to the byte ordering on the machine
on which the files were created. This does not apply to ASCII formatted files.
CFView™ 2-11
Graphical User Interface, Projects & Views Project Management
The file format is stored as a part of the user defaults. If the file format default options are changed
during a CFView™ session, CFView™ prompts the user that the defaults have changed and pro-
poses to save them. Saving of the defaults is done automatically at the moment CFView™ is quit. If
the user saves the new defaults, the Plot3D file format may be restored in the next sessions. Default
restoring may be automatic or manual (see section 4-11 for further information on loading
defaults).
Plot3D files created by FINE™/Turbo can be binary low endian (little endian) single precision
unformatted or ASCII (imposed in the Outputs/Computed Variables page within FINE™/Turbo),
whatever the platform was used to run the computation. This is also the CFView™ default. Note
that Intel processor and Compaq alpha processor based platforms are natively low endian (little
endian), while the RISC processors (used in SGI, HP, IBM and SUN UNIX workstations) are
natively big endian.
With binary or unformatted file, a wrong binary ordering specification (e.g.: big
endian instead of low (little) endian) may lead to unpredictable behaviour, including
application crash.
If CFView™ is already open, click Open ( ) on the toolbar or choose Open Project... in the File
menu to open a new project. The number of files that can be opened at the same time is limited by
the memory of the system.
2-12 CFView™
Project Management Graphical User Interface, Projects & Views
The data file can be selected from the pop-up file chooser window. Selection of the data file leads to
the Partial Loader dialog box. Depending on the selection of a steady, harmonic or unsteady project,
the dialog box is different.
• When a steady project is selected, the Partial Loader dialog box appears as shown in Fig-
ure 2.3.4-1.
— The left frame in the dialog box allows loading part of the geometry by selecting their corre-
sponding check box among the existing geometries available in the data file.
— The right frame in the dialog box allows loading part of the available quantities by selecting
their corresponding check box among the existing quantities available in the data file.
— Filter string input area allows to select or deselect the geometries by their name, if the Select or
Unselect button is selected respectively. Type full or fractions of the name of the geometries
need to be filtered and click the Select or Unselect button as defined by the requirement and
press <Enter>.
• When an unsteady project is selected, the Partial Loader dialog box appears as shown in Fig-
ure 2.3.4-2. Two extra radio buttons are available for time step selection:
— All Time Steps: load all the time steps available in the directory of the unsteady data file.
CFView™ 2-13
Graphical User Interface, Projects & Views Project Management
— The second radio button applies for selecting Initial and Final time steps along with an
Interval between two consecutive time steps.
• When an harmonic project is selected, the Partial Loader dialog box appears as shown in Fig-
ure 2.3.4-3. New buttons are available:
— Reconstruct unsteady project: ability to reconstruct solutions in time from harmonic
results.
— The radio button applies for selecting the Number of time steps.
— The second input is the Number of repeated blade channels in each row.
2-14 CFView™
Import Validation Data Graphical User Interface, Projects & Views
To remove a given project from CFView™, click Close ( ) on the toolbar or choose File/Close
Project... from the menu. The active view and all the views related to that project are closed. Remem-
ber that each view has always one project associated with it.
To quit CFView™, select File /Quit CFView.
CFView™ 2-15
Graphical User Interface, Projects & Views Views Manipulation
2-16 CFView™
Views Manipulation Graphical User Interface, Projects & Views
target plane
width
v
u
target point
n view point
Each viewing operation affects one, some or all the parameters of this camera. The parameters affected
by each operation are specified at the end of each description.
Whenever a view is opened or a new surface is added to the active view, CFView™ automatically
computes the box such that all the graphics objects fit inside.
The interactive picking cannot be done in perspective views. Hidden line may not work
properly in perspective views, when the projection point is too close to the object.
CFView™ 2-17
Graphical User Interface, Projects & Views Views Manipulation
There are 13 buttons allowing to perform various operations on the active view: viewing operations
affect the way the user looks at the project.
Most viewing operations are interactive:
• Press on the left (<1>) or middle (<2>) mouse button to initiate the operation.
• Drag the mouse. Depending on the operation, the position of the mouse will affect some param-
eters of the camera.
• Release the mouse button when finished.
If the option View/Parameters/Full Render is disabled then the scene in the active view is reduced
(hidden surface removal is deactivated, markers are removed, text is removed, colormaps are
removed, etc....) during interactive operation in order to maximize the response of the graphic sys-
tem.
2-18 CFView™
Views Manipulation Graphical User Interface, Projects & Views
• Press, drag and release the left button in the graphics area to rotate the camera. Move the mouse
left-right for a rotation around the vertical axis or forward-backward for a rotation around a hori-
zontal axis.
• Press and release the left mouse button with the <Shift> key pressed to select a new rotation center.
The rotation center is chosen in two steps: first if at least one active surface is under the mouse
pointer, the point which is the closest to the observer is chosen. If no such points exists,
non-selected surfaces are considered and if no point is found, the selection is aborted.
• Press, drag and release with the middle mouse button to translate the camera. This is also available
with the left mouse button with the <Ctrl> key pressed.
• Press, drag and release the middle button with the <Shift> key pressed for zooming in or out. This
is also available through the left mouse button with the <Ctrl> and <Shift> keys pressed simultane-
ously.
• Roll the middle-mouse button to perform a zoom where the mouse is pointing.
• Press and release the right button to quit to operation mode.
CFView™ 2-19
Graphical User Interface, Projects & Views Views Manipulation
2. Then drag the mouse to the left or to the right to zoom in or out.
3. Release when finished.
This button allows also a continuous zoom in or zoom out operation:
1. Press on the middle mouse button to initiate the zoom operation.
2. Then drag the mouse to the left or to the right to start a continuous zoom. The zooming speed is
proportional to the dragging amplitude.
3. Release when finished.
2-5.4.1 View/Projection
The Projection submenu in the View menu contains the following commands:
a) Original
To reset the view in its default orientation select this item. The associated viewing button is ( ).
2-20 CFView™
Views Manipulation Graphical User Interface, Projects & Views
The keyboard shortcut to reset the view in its default orientation select <o>
The keyboard shortcuts for X constant, Y constant or Z constant are respectively <x>,
<y> or <z>.
To go back to the original view use View/Projection/Original or use the short cut: <o>.
2-5.4.2 View/Parameters
This menu allows to exactly setup the view by giving an orientation to the view coordinate system.
This is done through two variables, the Normal vector and the Up Vector. The Normal vector is a
vector perpendicular to the screen and pointing outside it. The Up Vector is a vertical vector in the
plane of the screen. Giving the coordinates of this vector rotates the coordinate axes around the normal
vector. These two vectors are always perpendicular. If the perpendicularity is not respected when
entering the coordinates of the Up Vector, the system will automatically replace it with its projection
in a plane perpendicular to the Normal vector.
This submenu allows also to set some of the viewing parameters and to choose the projection mode
(see section 2-5.2.1): Orthographic, Stretched or Perspective.
a) Normal
This command allows to enter the coordinates of the Normal vector. To do so:
1. Choose Normal from the Parameters pull right menu.
2. Move the mouse to the keyboard input area and enter the coordinates of the Normal vector or
press, drag and release with the left mouse button in the active view to indicate the desired normal
direction.
b) Up Vector
This command allows to enter the coordinates of the Up Vector. To do so:
1. Choose Up Vector from the Parameters pull right menu.
2. Move the mouse to the keyboard input area and enter the coordinates of the Up Vector or press,
drag and release with the left mouse button in the active view to indicate the desired up direction.
c) Full Render
When not being in Full Render mode CFView™ automatically degenerates all shaded representa-
tions, such as solid model and color contour during rotation and translation in order to improve the
operation speed. This is the default mode. To disable or enable this feature, select this item. It acts as a
toggle.
CFView™ 2-21
Graphical User Interface, Projects & Views Views Manipulation
d) Display Shadow
When activating the Display Shadow feature in this menu or the button in the QAP, a shadow
is drawn under the scene. Its position and the light direction change according to the view. The
shadow is always drawn on an horizontal plane, located at the bottom of a bounding box, enclosing
the scene. The direction of the light source generating the shadow is always vertical.
e) Fast Preview
When the user has semi-transparent surfaces in its view, the time needed to generate an image in a
big scene can acheive a couple of seconds. Because of this lack of interactivity, changing the cam-
era position is really difficult. To solve this problem, the Fast Preview mode can be activated. In
this mode, all the costly rendering options are disabled (transparency, environment map).
This mode will give different opportunity to help the user in large scenes:
— Set the materials in normal mode, switch temporary to the Fast Preview mode to set the
camera, and switch back to normal mode to see the final result.
— Switch to Fast Preview mode, edit a set of material properties, and switch back to normal
mode to see all the modification at once.
The message "Fast preview mode" is displayed when the mode is active in the menu
f) Transparent
This command allows to make a view transparent. To do so:
1. Activate the view to make transparent.
2. Choose Transparent from the Parameters pull right menu. The view becomes transparent.
This command acts as a toggle: a second selection disables the transparency.
g) Border
This command allows to hide the border of the view. To do so:
1. Activate the view to edit.
2. Choose Border from the Parameters pull right menu. The border of the view disappears.
This command acts as a toggle: a second selection makes the border visible again.
2-22 CFView™
Views Manipulation Graphical User Interface, Projects & Views
The keyboard shortcut for Open Cartesian is: <Shift-n> and the toolbar buttons associ-
ated to the opening of respectively Cartesian and cylindrical views are and .
The keyboard shortcut <Ctrl-n> and the toolbar button permit to close the view.
a) Maximize
To expand the active view over the entire Graphics area, choose Maximize from the View pull down
menu.
The keyboard shortcut is: <f> and the toolbar button associated is .
CFView™ 2-23
Graphical User Interface, Projects & Views Views Manipulation
b) Preferred Size
To return to the size of the active view before the last full screen or icon operation select Preferred
Size from the View pull down menu.
c) Minimize
To iconize the active view select Minimize from the View pull down menu.
The keyboard shortcut is: < . > and the toolbar button associated is .
d) Push Back
To push back a view, select the Push Back item. The active view is redrawn behind any overlap-
ping view.
e) Move/Resize
To move or resize the active view in the graphics area, choose Move or Resize from the View
menu. Both are starting the interactive move or resize mode described in section 2-5.5.6.
For compatibility with previous versions, two shortcuts are recognized: <m> and
<r>.
2-24 CFView™
Views Manipulation Graphical User Interface, Projects & Views
The orientation axis is inserted in the active view by selecting the toolbar button or by selecting
Axis in the Geometry/Coordinate system submenu. The button and the menu item are acting as tog-
gles: a second selection removes the axis representation.
The orientation axis origin may be changed easily:
CFView™ 2-25
Graphical User Interface, Projects & Views Views Manipulation
1. Select the axis representation in the view by clicking on it. A set of highlighting markers are
appearing.
2. Place the mouse cursor on the axis, then press, drag and release with the left mouse button to
place it at the desired location.
The size of the orientation axis may be increased or decreased in the following way:
1. Select the axis representation in the view by clicking on it. The highlighting markers are shown.
2. Press the right mouse button, a pop up menu appears.
3. Select Set Larger or Set Smaller to increase or decrease the representation size.
The pop up menu offers also the possibility to discard the axis representation from the view. To do
so, select the Hide item in the pop up menu.
The graduated axes are inserted in the active view by clicking on the toolbar button or by
selecting Graduated Axis in the Geometry/Coordinate System submenu. The axis origin and
range is set automatically to values appropriate in order to fit with the represented geometry.
When the viewing direction is parallel to one of the main coordinates axis, the axis close to that
direction is not drawn (since its representation would be degenerated to a point).
Several options are available to customize the graduated axis representation. These are accessible in
the graduated axis editor dialog box (see section 2-5.6.3). To open this dialog box, there are two
possible ways:
• select the Axis Editor... in the Geometry/Coordinate System submenu,
• select the graduated axis in the active view, highlighting markers are drawn. Then, press the
right mouse button, a pop up menu is appearing. In the pop up menu, select Edit axis.... Note
that the pop-up menu contains a series of items that are shortcuts for common update options.
2-26 CFView™
Views Manipulation Graphical User Interface, Projects & Views
FIGURE 2.5.6-1 : Ticks & Line Type and the Numbers Type pages from the Graduated Axis
Editor
In the page entitled Ticks & Line Type, the following parameters are controlled:
• the origin and extend in each direction. The coordinate system origin is situated at the point which
coordinates are below the From label and the axis extends to the values given below the To label.
The ticks spacing and their associated labels are given below the Spacing label. In order to change
those values, type the new values and press the Apply button.
• The size of the ticks (with respect to the axis size) is displayed at the centre. In order to change it,
type the new value in the entry and press the Apply button.
• In the lower part of the page, the line type used for drawing the axis and the ticks is displayed. The
parameters controlling the line type are detailed in section 4-10.4.
The second page Numbers Type of the Graduated Axis Editor provides control of the type of text
used for the numbers labels displayed along the axis.
• The numbers orientation can be set to Horizontal (the numbers text appear horizontal whatever the
axis orientation) or to Perpendicular to the axis (the numbers text are always orthogonal to the axis
direction). This can be controlled individually for each axis. This control is also accessible directly
from the graduated axis popup menu.
• The font type, size and color can be changed in the Text Type frame. Further details on these
parameters are provided in section 4-10.3.1.
CFView™ 2-27
Graphical User Interface, Projects & Views Templates & Macro Scripts
The third page Labels of the Graduated Axis Editor provides control over the positioning and text
type of the axis labels:
• The axis labels can be set at the end of the axis or at the centre (at mid range). Select Top or
Center in the Position frame in order to change this setting.
• The font type, size and color can be changed in the Text Type frame (see section 4-10.3.1 for fur-
ther details on these parameters).
The pop-up menu also offers shortcuts to enlarge or shrink all the text sizes in the represented grad-
uated axis. To do so, select Larger Texts or Smaller Texts. The pop-up menu provides also an item
to discard (Hide axis) the representation from the active view.
2-28 CFView™
Templates & Macro Scripts Graphical User Interface, Projects & Views
There are some limitations to the applicability of templates. If the project from which the
template was created is too different from the target project, the template may not work
properly, leading to error messages and/or incomplete building of the representation layout.
The templates are working with difference in number of points in the mesh and with small
modifications in the geometry. However, differences in topology (different boundary condi-
tion patches type or names, differences in number or in name of blocks) and differences in
coordinate scales (e.g. difference in units) would most probably lead to inapplicable tem-
plates.
The ability to save templates has been replaced by saving macros, see section 2-6.2 for
more details on how to use macros in CFView™.
CFView™ 2-29
Graphical User Interface, Projects & Views Templates & Macro Scripts
The execution of the macro is also recorded if the Record button is turned on. It is dif-
ferent from loading and then playing a macro only from the point of view of the macro
recorder. If a macro is loaded, the recorder is reset. If a macro is executed, the new script
is appended to the active macro.
Two macro modules having the same file name should not be loaded in the same
CFViewTM session.
2-6.2.9 Viewer/Debugger
The viewer/Debugger module allows to control macro execution and editing at runtime. It contains
the following functionalities:
• load a macro file and view the contents of the macro file,
• edit any particular macro,
• set breakpoint at any particular macro,
• delete breakpoint from any macro for which a breakpoint has already been set,
• step through the macros n at a time, n being controlled by the user,
• delete any particular macro,
• print a variable that has been assigned any value during macro execution,
• notify the user of failure if execution fails at any particular macro,
• auto cleaning of macros depending on various clauses,
• at any time user can either highlight all the macros for which breakpoints have been set or the
macro that will be executed next.
2-30 CFView™
Templates & Macro Scripts Graphical User Interface, Projects & Views
Limitation: loops only a linear sequence of instructions works (only one line). For exam-
CFView™ 2-31
Graphical User Interface, Projects & Views Templates & Macro Scripts
2-32 CFView™
Overview Creating & Handling Surfaces
3-1 Overview
This chapter provides a detailed description of the Blade to Blade surface handling features in
CFView™. Surfaces are playing a fundamental role in CFView™ as nearly all the representations
of the flow quantities are made on surfaces. This chapter is divided in 6 sections:
• surface types and attributes description,
• handling the list of selected surfaces,
• creating new surfaces,
• visualizing the surfaces mesh,
• surfaces rendering and shadow,
• mesh cell visualization.
The commands related to surface handling, creation and representation are available mainly from
the Geometry and the Render menus.
CFView™ 3-1
Creating & Handling Surfaces What are Surfaces in CFView™?
3-2 CFView™
Select Surfaces Creating & Handling Surfaces
Group symbol
The Surfaces subpanel is made of three parts: the surfaces list, the surfaces creation shortcut but-
tons and the filter frame.
CFView™ 3-3
Creating & Handling Surfaces Select Surfaces
3-4 CFView™
Select Surfaces Creating & Handling Surfaces
To set the current selection to the surfaces highlighted in blue, choose the Select item. All the sur-
faces highlighted in blue become active, while the others are removed from the active surfaces list.
In order to add (or remove) the surfaces highlighted in blue to (or from) the current set of active sur-
faces, choose Make Active (or Make Inactive).
CFView™ 3-5
Creating & Handling Surfaces Select Surfaces
f) Create/Delete Group
To create a group from the current browsing selection, select the Make Group item. A group is
formed. The name of the group can be changed by selecting the Rename item described here
below.
To delete a group, select the Ungroup item. This is only removing the group from the surfaces list,
all the member surfaces are left unchanged.
These items are included only when relevant: the Make Group item is present if the browsing
selection is made of several surfaces and the Ungroup item is present only if the browsing selection
contains exactly one group.
g) Rename Surface/Group
To change the name of a surface or a group, select the Rename item. The name in the list becomes
an editable string. Once the new name is typed, press <Enter> to validate the entry. The renaming
mode is left if the <Esc> key is pressed or if a click with the left mouse button is performed outside
of the editable string area.
An internal check against duplicated names is performed before the new name becomes effective. If
the name is already associated to another surface or group, an error box is raised and the renaming
is not performed.
These buttons are offering shortcuts to open the surface creation dialog boxes:
• select Cut in order to open the cutting plane creation dialog box (see section 3-4.1).
• Select IJK Surf in order to open the mesh surfaces creation dialog box (see section 3-4.2).
• Select Blade to blade in order to open the blade to blade surfaces creation dialog box (see
section 5-2.3).
The surface selection can also be made by entering a string in the Filter frame. Several possibilities
are available:
• In order to select all the surfaces whose names are matching an expression, press the Name
check button, enter the expression in the area next to the Select label and press <Enter>.
3-6 CFView™
Select Surfaces Creating & Handling Surfaces
• In order to remove from the selection all the surfaces whose name are matching an expression,
press the Name check button, enter the expression in the string area next to the Unselect label
and press <Enter>.
• In order to select all the boundary patches of a given type, select the Type check button, enter the
type string and press <Enter>. Only the first 3 letters are used: e.g. inl, out, sol, mir, ext, con,
per, rot or sin.
• In order to remove from the selection all surfaces of a given type, select the Type check button,
enter the type string and press <Enter>. As for the selection, only the first 3 letters are used: e.g.
inl, out, sol, mir, ext, con, per, rot or sin.
As an example, in order to select all the surfaces that contain the word "rotor" in their name, select
the Name button, enter the "rotor" string next to the Select label and press <Enter>.
It contains a hierarchical list of all the surfaces and a filter box. Several operations can be per-
formed from this dialog box. These are:
• Setting the surface selection for flow field representation,
• Visualization of group composition (Show...),
• Visualization of a surface for quick identification (Show...),
• Removing of all representations of a surface in the active view (Remove...from view),
• Deletion of surfaces from the project (Delete...),
• Renaming of surfaces or groups (Rename...).
All these functions are accessible through a popup menu which is raised by pressing on the right
mouse button (see Figure 3.3.2-1). The popup menu entries are mentioning the targeted surface
name for an easier control. These functions are detailed in the following sections.
CFView™ 3-7
Creating & Handling Surfaces Select Surfaces
After the selection process, the inactive surfaces still remain on the screen but are not
affected by the users requests.
The keyboard shortcut for opening the Select Surfaces dialog box is: <Ctrl-s>.
3-8 CFView™
Select Surfaces Creating & Handling Surfaces
CFView™ 3-9
Creating & Handling Surfaces Select Surfaces
In order to select only one area of the surface, the following command can be used within a macro:
LimitedCutPlaneSave(x,y,z,nx,ny,nz)
where x, y, z are the coordinates of a point belonging to the requested area of the cutting plane and
nx, ny, nz are the plane normal.
3-10 CFView™
Create Surfaces Creating & Handling Surfaces
For example, if the area of the top of the blade is required, a macro file containing the command
"LimitedCutPlaneSave(0.25,0.01,0.004,0,0,1)" will select the area of a cutting plane normal to the z
axis and that is containing the point (0.25,0.01,0.004) as illustrated on Figure 3.3.4-2.
LimitedCutPlaneSave(0.25,0.01,0.004,0,0,1)
Z cst
(0.25,0.01,0.004)
To create surfaces:
CFView™ 3-11
Creating & Handling Surfaces Create Surfaces
1. Choose Create IJK Surface... from the Geometry pull down menu. A dialog box appears.
It contains:
• if a multi-block project is active a Domains (block) chooser appears for selection of one,
more or all existing domains.
• three radio buttons for the surface family selection (I, J or K). The family defines the
constant index of the scrolled surfaces. The family I, for example, contains surfaces
which have I constant;
• one string editor per family to input the constant index value of the scrolling operation;
• two scroll buttons per family to move up and down the constant index;
• two string editors per family to input the lower and upper limits of the non constant
indexes for the scrolling operation;
• if a quantity is selected, a mode selector (Geometry or Quantity);
• Apply, Save, Reset and Close push buttons;
2. Choose a representation mode. Click the left mouse button on Geometry or Quantity.
3. Choose a surface family. Click the left mouse button on the desired J, K Index button or I.
4. Choose the upper and lower limits for the non constant indexes.
5. Start step by step scrolling. Dependent on the used button, a different action is performed:
• click the left mouse on the up arrow button to increase the value of the constant index
value.
• click the left mouse on the down arrow button to decrease the value of the constant index
value.
6. The selected surface can be visualized and saved by respectively clicking on the Apply and Save
buttons.
7. Close the dialog box by clicking on the Close button.
The previous actions can be repeated with constant I, J or K surfaces any number of times. After
any saving operation, the boundaries of the newly created surfaces are displayed and indicate that
they have been properly created. The figure below illustrates the definition of a structured surface
and its simultaneous representation in the active view.
3-12 CFView™
Create Surfaces Creating & Handling Surfaces
FIGURE 3.4.1-2 Mesh surface definition dialog box with geometry representation
This command is related to structured meshes. The creation of surfaces for unstruc-
tured meshes is done through arbitrary cutting planes
The keyboard shortcut for Create IJK Surface... is: <Ctrl-z> and the item is accessi-
ble in the Quick Access Pad: .
CFView™ 3-13
Creating & Handling Surfaces Create Surfaces
1. Choose Create Cutting Plane... from the Geometry menu. A dialog box appears.
Mode control
Plane translation
button
Plane rotation
button
Axis direction
button Step by step
scrolling
dialog box buttons X, Y, Z plane buttons control
2. Define a plane (if the user does not define a plane, a default cutting plane defined by the current
view camera target and camera normal is activated):
• Use the Plane Point control to input the plane point.
• Use the Plane Normal control to input the plane normal.
• Press on the Apply button to see the defined plane.
3. Select the appearance of the cutting plane using the mode control.
• select Quantity to visualize a color contour on the cutting plane (available if a quantity
is selected).
• select Geometry to visualize only the mesh off the cutting plane.
• select Polygon to see a semi-transparent blue cutting plane. The contour of the plane is
drawn in red. A cross has been added to better show the 3D aspect of the plane.
4. Translate the plane along the normal direction.
• Press on the left mouse button to initiate a translation.
• Then drag the mouse to the left or to the right to translate forward or backward.
• Release when finished.
5. Rotate the plane around the axis.
• Press on the left mouse button to initiate a rotation operation.
• Then drag the mouse to the left or to the right to rotate clockwise or counterclockwise.
• Release when finished.
The direction used for the rotation is actually the normal projection on the plane of the
rotation axis as specified in the axis direction control (Normal).
3-14 CFView™
Create Surfaces Creating & Handling Surfaces
The keyboard shortcut for Create Cutting Plane... is: <Shift-l>and the item is acces-
sible in the Quick Access Pad: .
FIGURE 3.4.2-2 Cutting plane definition dialog box with active quantity color contour
representation
CFView™ 3-15
Creating & Handling Surfaces Create Surfaces
face list the intersection between this last surface of revolution and the computational domain as
presented in the Figure 3.4.3-1.
FIGURE 3.4.3-1 Intersection surface (grid on right side) between the computational domain
(left side) and the revolution surface ( )
The user-defined curve used to generate the surface of revolution must respect the format presented
below:
Example:
IGG first line comment
XYZ space coordinates (i.e. XYZ, YXZ, ZR or RZ)
3 number of points to define curve
0.0 0.0 0.0
0.05 0.05 0.05 space coordinates of each point
0.09 0.09 0.09
When the curve is defined in XYZ coordinates, CFView™ will first project it on a ZR
plane (Theta=0) before generating the surface of revolution.
Afterwards to define the surface of revolution and its intersection with the computational domain,
the user-defined curve data has to be selected through the menu Geometry/Create Cutting Sur-
face Along Igg Curve....
3-16 CFView™
Create Surfaces Creating & Handling Surfaces
When the Save button is pressed, a new surface is created that is the portion of all active surfaces
included between the two planes.
Geometry
Polygon
The green lines show the surface normals pointing to the direction excluding the surface portions in
order to avoid the two normals overlay and provide therefore more visibility. This is available in
Cartesian coordinates as well as in cylindrical or STM coordinates that allows for example to
extract surfaces included between two span values.
2. Choose Iso-Surface from the Representation pull down menu or press the button in the
Representations / Contours & Iso Values subpanel.
3. Choose the iso-surface value by using one of the following possibilities:
• move the mouse to the keyboard input area, enter a single value (included between the
maximum and the minimum of the quantity) and press <Enter>.
• with the mouse in the colormap: move the mouse to the colormap (by default on the right
side of the graphics area) and click at a level which represents the value.
• with the mouse on an active surface: move the mouse over an active surface, click at the
location where the iso-surface is going to intersect the surface. An iso-surface with the
active quantity value at that location is displayed.
Each new input for the iso-surface value removes the previous iso-surface and displays the new
one.
CFView™ 3-17
Creating & Handling Surfaces View Surfaces
3-18 CFView™
View Surfaces Creating & Handling Surfaces
If the boundary representation is present on some active surfaces, but not on all of
them, choosing this item a first time removes all the representations. Select it a second
time in order to turn on the boundary display on all active surfaces.
• Select the Curve Type... item, a Line Type Editor dialog box is raised (see section 4-10.4 for a
description of the parameters appearing in this dialog box).
• Modify the parameters in the dialog box and press Apply to validate the new parameters.
The Line Type Editor dialog box may be also opened by selecting the Line Type Editor... item in
the Update menu.
CFView™ 3-19
Creating & Handling Surfaces View Surfaces
The default grid line pattern, color and width may be modified using the Default Grid Line Type
Editor (Preferences/Grid line type...). See section 4-10.4, for further informations.
To change the grid line type in the graphical area, see section 3-5.5.
If the grid representation is present on some active surfaces, but not on all of them,
choosing this item a first time removes all the grid representations. Select it a second
time in order to turn on the grid wireframe display on all active surfaces.
• Select the Grid Line Type... item, a Line Type Editor dialog box is raised (see section 4-10.4 for
a description of the parameters appearing in this dialog box).
• Modify the parameters in the dialog box and press Apply to validate the new parameters.
The Line Type Editor may also be opened by selecting the Line Type Editor... item in the Update
menu.
When Hidden line rendering is activated, flat and smooth shading are not available
(see section 3-5.8).
The keyboard short cut for Hidden line representation is: <h>.
3-20 CFView™
View Surfaces Creating & Handling Surfaces
CFView™ 3-21
Creating & Handling Surfaces View Surfaces
• Select the Material Type... item. The Surface Material Editor... is opened. This dialog box
allows to modify the material light reflection properties of the active representations.
The dialog box may be also opened by selecting the Surface Material... item in the Update menu
or click on the button in the Representations/Material subpanel.
The surface material properties are defined by 4 parameters:
• Diffuse: is the base color of the surface.
• Specular: affects the light reflections on the surface.
• Opacity: controls the transmission of light through the surface. An opacity of 1.0 means a com-
pletely opaque surface. An opacity of 0 means a completely transparent surface.
• Reflection: is the property of a surface to reflect the surrounding environment.
3-22 CFView™
View Surfaces Creating & Handling Surfaces
3-5.11.1 Diffuse
The diffuse color is the fundamental color of the surface. It is chosen using the color picker Diffuse/
Color.
• Amount: is the strength of the highlight. It is a value ranging from 0 to 1. A value of 0 means
that the surface has no specular highlight; a value of 1 means that the surface presents a strong
specular highlight.
CFView™ 3-23
Creating & Handling Surfaces View Surfaces
• Gloss: defines the extent of the highlight. It is a value ranging from 1 to 30. A value of 1 means
that the specular highlight is widespread. It will be the case for rough material. A value of 30
means that the highlight is very narrow. It will be the case for very smooth surfaces, like glass.
3-5.11.3 Opacity
Set the opacity of the surface, ranging from 0 to 1. An opacity of 1.0 means a completely opaque
surface. An opacity of 0 means a completely transparent surface.
Opacity set to 1
3-5.11.4 Reflection
Reflection is the property of a surface to reflect the surrounding environment. A “spherical environ-
ment mapping” technique is applied on the selected surface(s) when the option use reflection map-
ping is set active:
• An image, also called “map”, is provided for each surface. This map represents a given material.
3-24 CFView™
View Surfaces Creating & Handling Surfaces
• The color of each surface point is found by using the local normal at the surface point to address
the map.
CFView™ 3-25
Creating & Handling Surfaces View Surfaces
Select the icon to toggle the lighting on/off for all the active color contours.
Select the icon to toggle the lighting on/off for all the active grids.
Select the icon to toggle the lighting on/off for all the active surface rendering.
3-26 CFView™
View Surfaces Creating & Handling Surfaces
The light editor ( ) allows to change the settings of the light of the active view. The type, posi-
tion and direction of the light can be controlled.
CFView™ 3-27
Creating & Handling Surfaces View Surfaces
• Omni: the light is coming from a punctual point, like a candle. The lights illuminates in all
directions in a uniform way.
In the Position & orientation section, the light direction can be controlled by dragging the spot on
the surface of the sphere.
The Back light option imposes a light coming from the other side of the hemisphere (i.e light comes
from the back of the objects in the direction of the viewer).
When an omni light is selected, a Distance slider allows to set the distance of the light to the center
of rotation of the view.
In the Light Intensity section, a slider enables to change the power of the light.
In the Refresh Options section, instantaneous update of the lightning and visualization of the light
can be controlled by respectively the Instant Refresh and the Display in View options.
The Default button reset the active light to its default value.
FIGURE 3.5.13-1 Geometry representation before (left) and after (right) repetition (mirror)
3-28 CFView™
View Elements (Unstructured Meshes Only) Creating & Handling Surfaces
The repetition option creates only an image of the graphical objects. No interactive
operation, such as interactive picking, can be performed on the duplicated surfaces.
The list of cells is specified as a comma separated list. Each item is a single number or a set of two
numbers separated by a ’-’ symbol. ’-’ separated pairs of numbers are used to specify a range of ele-
ment numbers.
The size factor can be specified in the Size Factor entry or adjusted using the increase/decrease
arrows. A value of 1.0 indicates that the element is represented with its geometric size. A factor
smaller than one indicates that the element is shrunk and a value larger than one is used to enlarge
the element.
By default, the cell edges are represented and the cell faces are rendered with a flat shading. Modi-
fying these attributes can be made by first selecting the "domain" item in the surface list chooser
(section 3-3). The edge representation can be toggled by the Geometry/Grid menu item. The ren-
dering can be modified in the same way as for surfaces (section 3-5.11).
CFView™ 3-29
Creating & Handling Surfaces View Elements (Unstructured Meshes Only)
3-30 CFView™
Overview Flow Quantities Visualization
4-1 Overview
This chapter provides a detailed description of how to represent the flow quantities. It is divided in
5 sections:
• Select and create flow quantities,
• Visualize scalar data,
• Work with Cartesian Plots,
• Visualize vector data,
• Update the data representation.
The first section describes the basic concepts needed before going further into details. The remain-
ing sections provide step-by-step instructions to create and modify a project.
CFView™ 4-1
Flow Quantities Visualization Select & Create Flow Quantities
• The field quantities: they are defined for the complete domain. For example, the pressure or the
velocity field around a body is calculated through all the computational volume, from the inlet
to the outlet. Two kinds of data are supported:
— scalar data such as pressure, Mach number or velocity magnitude,
— vector data such as the velocity field.
• The solid quantities: they are defined on the solid surfaces only. For example, the skin friction
on the solid surfaces of a body. These data are defined only on a defined set of surfaces. There-
fore, they are separated from the field data.
Like for the field data, there can be scalar or vector quantities.
• The computed thermodynamical quantities: these are the quantities that can be computed from
the field quantities by standard formulas and that have not been computed by the flow solver
EURANUS. They are computed in CFView™ upon request.
• The components of vector quantities: these are directly extracted from a vector field quantity.
• The quantities defined as the gradient, divergence or curl of an existing quantity.
• The derived quantities: these are quantities respecting a user defined definition. CFView™ sup-
ports field derived quantities (defined in the whole computational domain) as well as surface
derived quantities (defined only on surfaces).
Besides these data types, CFView™ also supports data for specific purposes:
• The validation data: these are comparison data defined along curves. For example, they allow to
make comparisons between experimental and computed data or between different numerical
data sets.
• The plot data: this is a generic container for any type of data defined along a curve. They can be
convergence curve, surface averaged data from FINE™ GUI (Surface Averaged Variables
page).
• The particle traces data: these are related to externally computed trajectories of particles, such as
those generated by the Lagrangian module of FINE™ GUI (Fluid Particle Interaction page).
All these quantities are not available in all file formats. As an example, computed thermodynamics
and particle traces data are available only in the FINE™ GUI environment.
The quantities are selected by using the Quantity menu or the Quantities subpanel in the Quick
Access Pad. The Quantity menu contains a complete set of submenus allowing to select any of the
quantities, while the Quantities subpanel provides a convenient shortcut to select the most com-
monly used ones.
4-2 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
• To select a quantity from the Quantity menu, choose Quantity/Field Data/Basic Quantities.
This menu contains a list of all scalar and vector fields that are present in the project. Then,
select one of them.
After the selection, CFView™ displays the active quantity name in the lower left corner, with the
minimum and maximum values and, if available, its units label.
The active quantity can always be replaced by another for further analysis. All the graphical objects
related to the previous quantity representation remain in the view.
CFView™ 4-3
Flow Quantities Visualization Select & Create Flow Quantities
By default, the torque will be computed with respect to the axis defined by the two points Origin
and Direction. In this case the resulting torque will be a scalar field equal to the component along
the axis. The user can also compute the torque with respect to a point by activating the check button
“With respect to point”. In this case, the resulting torque is a vector field.
In the quantities frame, a new menu Mechanics has been added that enables the calculation of
mechanics quantities on Solid surfaces. When double clicking on Mechanics->Force, the Force is
computed on all solid surfaces and the quantity Force is added below the Solid Data menu. The
force is given by P.1n + S where P is the pressure, 1n is the normalized normal and S is the Viscous
Stress Vector (τ ij .1n ) and has been computed by the solver (what has been computed by the solver,
the viscous stress vector' This is not clear). S will be omitted if the solver has not saved it. This is
actually the Force By Surface Unit (not clear to me, should this be Force per Surface Unit') and
example is provided in the next picture.
4-4 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
If the check button “With respect to point” is not activate, when double clicking on
Mechanics->Torque, the field Scalar Torque is added under the Solid Data menu and can be
visualized as any scalar field as shown in the picture below.
If the check button “With respect to point” is activate, when double clicking on
Mechanics->Torque, the field Vector Torque is added under the Solid Data menu and can be
visualized as any vector field as shown in the picture bellow.
CFView™ 4-5
Flow Quantities Visualization Select & Create Flow Quantities
The total Scalar Torque can be compute by clicking on the scalar Integral button that integrates the
Scalar Field on all active surfaces.
The total Force and Vector Torque norms can be compute by clicking on the Flux button that
integrates the Vector Field on all active surfaces and compute the norm of the resulting vector.
4-6 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
A new button Vector Integral that integrates the active vector field on all active surfaces and prints
the tree components of the resulting vector.
For FINE™/Turbo computations made with condensable gas, the Computed Ther-
modynamics menu is not available, since the computation of these quantities relies on
the thermodynamic tables which are not available in CFView™.
CFView™ 4-7
Flow Quantities Visualization Select & Create Flow Quantities
If it is not present, the absolute velocity is automatically deduced from the relative velocity (or the
relative velocity from the absolute velocity) when the quantity is required.
a) Perfect Gas
For perfect gas, the following quantities are defined:
2
Vxyz
Absolute Total Temperature = Static Temperature + ------------------
2Cp
2
Wxyz
Relative Total Temperature = Static Temperature + -------------------
2Cp
2
Vxyz
Absolute Mach Number = -----------------------------------------2-
Speed of sound
2
Wxyz
Relative Mach Number = -----------------------------------------2-
Speed of sound
Static Pressure
Internal Energy = -----------------------------------
( γ – 1 )Density
where Reference Pressure and Reference Temperature are asked for in a specific dialog box if the
entropy item is selected. Note that log refers to Neperian (or natural) logarithm. Note also that no
Reference Pressure and Temperature are required to visualize the entropy if the quantity is already
provided by the flow solver.
2
Absolute Total Enthalpy = Cp Static Temperature + 0.5 Vxyz
2
Relative Total Enthalpy = Cp Static Temperature + 0.5 Wxyz
b) Incompressible Fluid
For incompressible fluids, the following standard thermodynamical quantities are supported:
2
Vxyz
Absolute Total Temperature = Static Temperature + ------------------
2Cp
2
Wxyz
Relative Total Temperature = Static Temperature + -------------------
2Cp
2
Absolute Total Pressure = Static Pressure + Density ⋅ Vxyz ⁄ 2
4-8 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
2
Relative Total Pressure = Static Pressure + Density ⋅ Wxyz ⁄ 2
· Static Temparture
Entropy = Cp log ⎛ --------------------------------------------------------⎞
⎝ Reference Temperature⎠
where the Reference Temperature is asked for in a specific dialog box if the entropy item is
selected. Note that log refers to Neperian (or natural) logarithm. Note also that no Reference Tem-
perature is required to visualize the entropy if the quantity is already provided by the flow solver.
2 Static Pressure
Absolute Total Enthalpy = Cp Static Temperature + 0.5 Vxyz + -----------------------------------
Density
2 Static Pressure
Relative Total Enthalpy = Cp Static Temperature + 0.5 Wxyz + -----------------------------------
Density
where Density is a constant value retrieved from the FINE™ project file.
c) Real Gas
For real gas, the thermodynamical quantities are computed by interpolation in tabulated piecewise-
polynomial functions.
In project files created by FINE™/Turbo version 5 or higher, these quantities are associated to the
unit system selected in the FINE™ interface. As a consequence, unit conversion is performed and a
unit label is automatically attached to the quantity.
• radial, tangential and axial amplitudes with respect to the z axis: Vr = xVx + yVy
------------------------- ,
2 2
x +y
xVy – yVx 2 2
Vt = ------------------------- and Vm = Vr + Vz where x and y are the local geometrical coordinates,
2 2
x +y
• flow angle: atan ( Vt ⁄ Vm ) in 3D and atan ( Vy ⁄ Vx ) in 2D.
CFView™ 4-9
Flow Quantities Visualization Select & Create Flow Quantities
A menu containing a list of respectively scalar and vector operable fields appears.
To launch the operator, left-click in the menu on the field on which the differential operator has to
be applied.
The computation of the gradient, divergence and curl may also be selected from the Quantities
subpanel:
• Click on the quantity for which the computation should be made, it is highlighted in blue.
• Press the right mouse button, a popup menu appears.
Scalar
Vector Quantity
Quantity Vector
Scalar Quantity
Quantity
4-10 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
CFView™ 4-11
Flow Quantities Visualization Select & Create Flow Quantities
By double clicking with the mouse left button on any of the items listed in the Quantities,
Geometry, Op. or Constants frames, its name is automatically inserted in the Definition. For
example, enter the string "normalized pressure" in the Name entry, the string "Static Pressure /
101325" in the Definition entry to create a normalized pressure quantity.
4. Press the Apply button to create the new quantity and to insert it into the project. The new quan-
tity can be selected for visualization in the same way as the project field quantities.
To delete or unload a derived quantity, use the unload option or the Quantities Status
dialog box as described in section 4-2.2.2 or section 4-2.2.3 respectively.
In the unloading process of any solid data quantity from Solid Data list in the Quantities sub-panel
shows a different menu list when right mouse button is pressed. However the functionality of the
Unload option is the same as for the field quantities.
4-12 CFView™
Select & Create Flow Quantities Flow Quantities Visualization
Once the quantity is unloaded, a small bitmap file (unload icon) is placed at the left of the unloaded
quantity as observed in the right hand side image of Figure 4.2.2-3.
CFView™ 4-13
Flow Quantities Visualization Select & Create Flow Quantities
The dialog box is listing the scalar fields on the left and the vector fields on the right. The button on
the left of each quantity name is an on/off button indicating if the quantity is loaded in the computer
memory (the button is on if the quantity is present).
By toggling the buttons and then clicking on Apply, the computer memory storage is modified
according to the user’s specification.
For a derived quantity, this removes the field as well as its definition. The name used for the derived
quantity is available again for another derived quantity definition.
For a quantity defined in the project itself, this removes only the data storage. If the quantity is
needed later, it is reloaded automatically.
Below the list of quantities, a first line indicates the type of the quantity at the cursor position. This
may be "Quantity from file" or "Derived quantity". The second line is present only when a derived
quantity is under the cursor and it presents the quantity definition.
On the right, the memory used for the storage of the complete field data is mentioned.
You can access this feature through the button Free Memory On/Off available in the anima-
tion toolbar when an unsteady project is loaded. By default, this button is active and highlighted in
yellow. The Free Memory On/Off button is not highlighted anymore when inactive.
4-14 CFView™
Visualize Scalar Data Flow Quantities Visualization
Press the left mouse button on Free Memory On/Off button, to toggle this functionality on or off.
When the Free Memory On/Off button is active, and the Next Time Step button ( ) is pressed,
the memory allocated to all field and solid data quantities at the current time step is freed, before
moving to the next time step. If the Free Memory On/Off button is inactive, all the field and solid
quantities are kept in the memory for every time step.
CFView™ 4-15
Flow Quantities Visualization Visualize Scalar Data
It contains 4 items:
— select Marker Type... in order to modify the type of marker. A marker editor is opened (see
section 4-10.4 for a detailed description of marker parameters).
— Select Number Format... in order to modify the way the figures are formatted. A number
format editor is opened (see section 4-10.5 for a detailed description of number formats).
— Select Text Type... in order to modify the font type and size. A Text Type editor is opened
(see section 4-10.3.1 for a description of text font parameters).
— Select Delete to suppress the local values from the screen.
4-3.2 Isolines
Single or multiple isolines are available. It is also possible to select uniformly colored isolines or
isolines colored according to the value.
4-16 CFView™
Visualize Scalar Data Flow Quantities Visualization
Isoline drawing is restricted to the current range. See section 4-7.2 for more details on
the quantity range.
the button in the Representations/Contours & Iso Values subpanel. A dialog box is opened:
• the isolines may be specified by the number of isolines to draw or by their relative increment.
— To modify the increment between two isolines:
• click the increment option and
• click in the Value box and enter the new value.
— To modify the number of isolines:
• click the number option and
• click in the Value box and enter the new value.
Isolines drawing is restricted to the current range. See section 4-7.2 for more details
on the quantity range.
CFView™ 4-17
Flow Quantities Visualization Visualize Scalar Data
It contains 4 items:
— Select Line Type... in order to edit the type of line used for the representation. Note that the
line color parameter is effective only if the isolines are set in the color lock mode (see
section 4-10.4 for an explanation of the line type parameters).
— Select Color Lock in order to draw the isolines in a fixed color.
— Select Color by Value to draw each isoline in a color according to the isoline value.
— Select Delete to suppress the selected isolines from the screen.
All colorings are restricted to the current range. See section 4-7.2 for more details on
the quantity range.
4-3.3.1 Flat
Choose Flat from the Representation/Color Contour menu or click on the button in the
Representations/Contours & Iso Values subpanel. In this mode, each cell is assigned to a unique
color that corresponds to the average value of the quantity in that cell.
4-18 CFView™
Visualize Scalar Data Flow Quantities Visualization
4-3.3.2 Smooth
Choose Smooth from the Representation/Color Contour menu or click on the button in the
Representations/Contours & Iso Values subpanel. In this mode, the color is interpolated inside
each cell from the values of the quantity at the cell vertices.
4-3.3.3 Strip
Choose Strip from the Representation/Color Contour menu or click on the button in the
Representations/Contours & Iso Values subpanel. In this mode, the color interpolated on each
cell contour from the values of the quantity at the surface vertices is kept constant over small sub-
ranges.
CFView™ 4-19
Flow Quantities Visualization Visualize Scalar Data
• Above Range: The specified color will be used for all regions in which the quantity value is
higher than the specified maximum treshold value.
The settings in the Range Colors Type Editor are only taken into account when a
project is opened in CFView™.
The region of the surface in which the quantity lies between the limits is represented. This com-
mand remains active until another quantity representation requiring interactive input is selected. An
example of a tresholded smooth colour contour is given in Figure 4.3.3-2.
4-20 CFView™
Visualize Scalar Data Flow Quantities Visualization
CFView™ 4-21
Flow Quantities Visualization Visualize Scalar Data
It contains 6 items for smooth and strip contour (for flat contours, only the Delete item is available):
— Select Filled to let the color contour fill the surfaces completely.
— Select Wireframe to get colored surface wireframes.
— Select Markers Only to get only the markers colored.
— Select Line Type... to edit the type of line used for the wireframe representation. Note that
the line color parameter does not have any effect in this context (see section 4-10.4 for an
explanation of the other parameters).
— Select Marker Type... to edit the type of markers used for the "markers only" representa-
tions. Note that the color parameter does not have any effect in this context (see section 4-
10.4.2 for an explanation of the marker parameters)
— Select Delete to suppress the contour representations from the screen.
FIGURE 4.3.3-3 Color contour shown as markers only, mesh wireframe and filled.
4-3.4 Streamlines
The Streamlines module allows the user to color the streamlines based on any scalar field quantity
available in the field quantities list in the Quantities subpanel. By default the streamlines are com-
puted by using the relative velocity vector field. To color the streamlines by integration of the active
scalar quantity, select Streamline from the Representation menu. A submenu appears, containing
three options to plot streamlines: Local, Section and From Grid Line…. The default computation
and representation parameters can be changed by using the Streamlines Parameters dialog box
available from Parameters… menu.
4-22 CFView™
Visualize Scalar Data Flow Quantities Visualization
In the string input area, type the desired x y z coordinates of the starting point on the active surface,
then press <Enter> in the keyboard input area in order to validate the entry.
The streamline starts from this point and extends to the first non-connected boundary (i.e. full-non-
matching boundaries, rotor-stator interfaces…) encountered or until the maximum number of points
per streamline is exceeded (more details can be found in section 4-3.4.4).
CFView™ 4-23
Flow Quantities Visualization Visualize Scalar Data
4. To create the originating section of streamlines through the active surface (selected in the Sur-
faces subpanel), move the mouse in the graphical area and click the left mouse button to select
the first point of the section line. Hold the mouse button and drag it, a red line is attached to the
cursor. Move the cursor in the desired direction and release the left mouse button to define the
second point of the line.
FIGURE 4.3.4-3 Grid line definition dialog box for streamline plot
2. In the Index area, click the desired radio button. The i and j radio buttons do not necessarily cor-
respond to the IGG™ indices:
• If the surface is constant in I, the first index corresponds to J and the second to K.
• If the surface is constant in J, the first index corresponds to K and the second to I.
• If the surface is constant in K, the first index corresponds to I and the second to J.
3. Set a value of the constant index in the Value box between 1 and the maximum value indicated.
4. Select the nodes from which the streamlines need to be generated in Node Range area. To do
this, enter a node range:
• Enter a number in the First box included between 1 and the maximum of the unselected
index.
4-24 CFView™
Visualize Scalar Data Flow Quantities Visualization
• Enter a number in the Last box included between the number given in First box and the
maximum of the unselected index. This number has to be different from the first node
number. Initially the Last box indicates the maximum node number available.
5. Click the Apply button to start the streamline computation and display.
6. Click the Close button to close the dialog box.
CFView™ 4-25
Flow Quantities Visualization Visualize Scalar Data
The parameters settings are applicable for the next streamline(s) to be created.
It contains 4 items:
— Select Uniform Color to color the streamline with pre-defined uniform color.
— Select Quantity Color to color the streamline based on the scalar quantity which was
selected when creating the streamline.
— Select Curve Type... to edit the type of curve used for the streamline representation. Note
that the line color parameter only has an effect if Uniform Color was selected before (see
section 4-10.4 for an explanation of the other parameters).
— Select Delete to suppress the contour representations from the screen.
4-26 CFView™
Visualize Scalar Data Flow Quantities Visualization
4-3.5 Iso-Surfaces
This option allows to visualize in 3D the surfaces where the active quantity remains constant. To do
so:
1. Choose Iso-Surface from the Representation menu or click on the button in the Repre-
sentations/Contours & Iso Values subpanel.
2. Choose the iso-surface value:
• click in the string input box, enter a single value (included between the maximum and
the minimum of the quantity) and press <Enter>.
• With the mouse: move the mouse to the colormap and click at a level which represents
the value.
Each new input for the iso-surface value removes the previous iso-surface and displays the new
one.
In previous versions of CFView, the rendering of iso-surface presents lighting artefacts, because the
normals of the surface are not computed correctly by HOOPS. These artefacts are white and black
areas on the iso-surface, or a faceted look of the surface.
The following solution has been implemented: the normals are computed analytically, as the local
gradient of the scalar field, after the iso-surface has been computed.
The gradient is only computed locally, on the proximity of the iso-surface.
One can see the faceted aspect of the iso-surfaces on the left and the smoother look of the iso-
CFView™ 4-27
Flow Quantities Visualization Visualize Scalar Data
The default style for the line and markers may be modified by using the Default Node
Line Curve Type Editor (Preferences/Node line curve type...), see section 4-11 for fur-
ther information. If the default color is different from black or white, the color is changed
from curve to curve in order to facilitate curves identification. Similarly, the marker type
and the line style are changed from curve to curve.
If no solid surface is selected at the time the Cartesian Plot/Along Solid Boundary is
requested, an empty Cartesian plot view will appear on the screen.
4-28 CFView™
Visualize Scalar Data Flow Quantities Visualization
• move the mouse to the graphical area and click the left mouse button to select the first
point of the section line. A red line is attached to the cursor. Drag the cursor in the
desired direction and release the left mouse button to define the second point of the line.
• or, move the mouse to the string input area and successively enter the coordinates of the
two points defining the section. Press <Enter> to apply.
The section line actually defines a cutting plane perpendicular to the plane of the screen. This plane
crosses the active surfaces and generates sections. The quantity values on these sections are imme-
diately mapped in the Cartesian plot view, while the traces of the sections appear on the active sur-
faces.
The section in Figure 4.3.6-1 is obtained from a cylindrical coordinates view (constant radius). The
viewing direction is along theta and the section line is a horizontal line which intersects the blade
pressure and suction sides.
The default style for line and markers may be modified by using the Default Section Curve Type
Editor (Preferences/Section curve type...). section 4-11 for further information. If the default Sec-
tion Curve Type is different from black or white, the curve color is changed from curve to curve, as
well as the line and marker styles.
This option remains active until another scalar representation which requires interactive picking is
activated.
The arc lengths are independent for each curve extracted from the active surfaces.
CFView™ 4-29
Flow Quantities Visualization Visualize Scalar Data
3. Click on the Value string input and enter a number included in the limits.
4. Click on the First and Last string inputs and enter the number of the first and last grid node to
consider in the plot curve.
5. Click the Apply button to perform the action. The result is immediately mapped in the Cartesian
plot view, while the trace of the section appears on the active surfaces.
6. Click the Close button to close the dialog box.
FIGURE 4.3.6-2 Grid line definition dialog box for vector line plot
The default style for the line and markers may be modified by using the Node Line Curve Type Edi-
tor (Preferences/Node line curve type...). section 4-11 for further information. If the default color
is different from black or white, the curve color is changed from curve to curve as well as the line
and marker styles.
4-30 CFView™
Visualize Scalar Data Flow Quantities Visualization
1. In the sub menu Function of, select the desired item to change the variable which is attached to
the axis.
2. Select Fit Range in order to set the minimum and maximum range values to those of the repre-
sented curves. Note that if no element is selected in the Cartesian plot view, the popup menu
raised by pressing the right mouse button, contains the item Fit Range that performs the same
operation on both the ordinate and the abscissa axes.
3. Select Set Range... to enter a new range. There are two possible ways of doing this:
— enter the minimum and the maximum value in the string entry below the graphical area or
— press on the axis desired minimum value, drag and release on the axis desired maximum
value to provide the minimum and maximum values. During the interactive operation a red
bar appears along the axis.
4. Select Set Logarithmic in order to display the data in logarithmic scale. When an axis is
already in logarithmic scale, select the Set Linear item to come back to a linear display.
5. Select Set Reverse in order to display the data in decreasing values. When an axis is reversed,
select Unset Reverse to come back to the normal display.
The viewing buttons are also providing shortcuts for some of the frequently used operations (see
also section 2-5.3 for a detailed explanation of their use):
These buttons are selecting the quantity for the abscissa axis
The axes ranges are always updated automatically to reflect the range modifications.
CFView™ 4-31
Flow Quantities Visualization Visualize Scalar Data
3. Select the Curve Type... item: a Curve Type Editor dialog box is raised.
4. Modify the line and marker attributes (see section 4-10.4 for a detailed explanation of the
parameters for line and markers)
5. Press the Apply button in the dialog box.
Note that the selected curves set can still be modified after the dialog box is opened. The line and
markers style is applied to the curves that are selected at the moment the Apply button is pressed.
The Set Thicker/Set Thinner items allow to increase or reduce the thickness of the line.
The Limited Section item allows to restrict the plot between the two selected points instead of, by
default, a complete line on whole domain passing through the two selected points.
4-32 CFView™
Visualize Scalar Data Flow Quantities Visualization
Note that when plot curves are deleted in a Cartesian plot, the representations of the curve in the
original 2D/3D view is also deleted. But, when a plot curve is deleted in a 2D/3D view, it is not
removed from the Cartesian plot view.
Numbers Numbers
orientation text type
Numbers
Graduations distance
b) Axis Label
In order to modify the axis label, it should be selected by clicking on it with the left mouse button.
Red markers are displayed around it to indicate the selected element.
When the axis label is selected, a popup menu is raised by pressing the right mouse button.
CFView™ 4-33
Flow Quantities Visualization Visualize Scalar Data
• Select Larger Font Size or Smaller Font Size to enlarge or shrink the label text.
• Select Edit Text... in order to edit interactively the text. During its edition, the text is displayed
horizontally for a better readability. The following functions are available during the edition:
— The text is inserted at the cursor position. Initially, this cursor is positioned on the first char-
acter.
— The left and right arrow key to move the insertion cursor.
— The <Backspace> key suppresses the character on the left side of the insertion cursor.
• Select Font & Position... in order to open a dialog box in which the label font and position can
be modified.
— The Font Type frame allows to choose the font type, size and color (see section 4-10.3.1 for
further details on text fonts).
— The Position frame allows to choose the position (either at the axis origin, at mid-range or an
the axis end) as well as the distance between the numbers and the label text.
When graduation lines are represented, these items are replaced by Hide H Grid Lines or Hide V
Grid Lines which are used to remove the grid lines from the Cartesian plot. Furthermore, the
popup menu contains the items H Grid Lines Type... or V Grid Lines Type.... By selecting one of
these items, a Grid Lines Type dialog box is opened in which the grid line type, color and thickness
may be modified (see section 4-10.4.1 for a detailed description of the dialog box and of the line
type parameters).
4-34 CFView™
Visualize Scalar Data Flow Quantities Visualization
• the first page (Scale) provides access to the axis quantity and range selection.
• the second page (Axis Labels) provides access to the axis labels text and text type.
• the third and fourth pages (Major Units - Minor Units) provides access to the grid line types.
• the fifth page (Ticks Labels) provides access to the graduation numbers text type.
CFView™ 4-35
Flow Quantities Visualization Visualize Scalar Data
In addition of the default file containing the quantity function of X, Y and Z, a new
file will be automatically generated containing the ordinate function of the abscissa used
in Cartesian plot ("usernameOrdinateFctOfAbscissa.dat")
A file containing a single section in this format can be directly loaded as a validation
data (see section 2-4 and section 4-4). Note that files that are containing several curves
must be split before being loaded as validation data.
4-36 CFView™
Represent Validation Data Flow Quantities Visualization
Automatically, a new view is opened that contains the plot or, if the plot view is existing, the curve
is added to the plot view related to that quantity. The line and markers default style for the valida-
tion data curve may be modified by using the Default Validation Data Curve Type Editor (Prefer-
ences/Validation curve type...).
The line and markers default styles for the interpolated data curve may be modified using the
Default Comparison Curve Type Editor (Preferences/Comparison curve type...). See section 4-11
for further information.
CFView™ 4-37
Flow Quantities Visualization Represent Plot Data
2. Select a plot data curve with the mouse. Another submenu appears. It contains one or more
quantities defined for the selected plot data curve. Choose one of them to end the selection pro-
cedure. Automatically, a new view is opened that contains the plot.
The line and markers default style may be modified by using the Default Plot Data Curve Type Edi-
tor (Preferences/Plot data curve type...). section 4-11 for further information.
The plot data on the right side of Figure 4.5.0-1, is the convergence curve of the computed drag. On
the left side, a color contour of the vertical velocity shows the velocity distribution.
4-38 CFView™
Visualize Vector Data Flow Quantities Visualization
1. Choose Vector on Grid Nodes... from the Representation menu or select the button in
the Representations/Vectors subpanel. A dialog box appears.
The “I” and “J” appellation do not necessarily correspond to the IGG™ index:
• if the surface is constant in I, the first index corresponds to J and the second to K.
• if the surface is constant in J, the first index corresponds to K and the second to I.
• if the surface is constant in K, the first index corresponds to I and the second to J.
2. Click on the I - Min box and enter the I value or use the small up and down arrow buttons to set
the starting node. Do the same for I - Max which is the I value of the ending node. If necessary,
change the default I - Step number.
3. Set the J value of the starting node in the J - Min box. Do the same for J - Max which is the J
value of the ending node. If necessary, change the default J - Step number.
4. Click the Apply button to represent the vector field.
5. Click the Close button to discard the dialog box.
CFView™ 4-39
Flow Quantities Visualization Visualize Vector Data
• select the Thresholded item in the Representation menu or click on the button in the
Representations/Vectors subpanel.
• Provide the threshold range in one of the following ways:
— with the mouse: move the mouse into the colormap and click at a level which represents the
first limit. Drag the mouse along the colormap up to a suitable value (a line appears between
the selected point and the cursor). Release the mouse button to fix this second limit.
— with keyboard input: click in the string input box and enter 2 values separated by a blank.
They are forming a single range, the first one must be smaller than the second one.
The vector arrows having an amplitude lying between the limits are represented at the active sur-
faces vertices.
4-40 CFView™
Visualize Vector Data Flow Quantities Visualization
6. Choose Along Grid Line... from the Representation menu or click on the button in the
Representations/Vectors subpanel. The above dialog box appears.
The “I” and “J” appellation do not necessarily correspond to the IGG™ index:
• if the surface is constant in I, the first index corresponds to J and the second to K.
• if the surface is constant in J, the first index corresponds to K and the second to I.
• if the surface is constant in K, the first index corresponds to I and the second to J.
7. Select the constant index: click on the desired Index button and set its value in the Value entry.
8. In the Node Range frame, set the value of the first and last node to consider along the line.
9. Click the Apply button to see the vectors along the grid line.
10. Click the Close button to discard the dialog box.
• click on the button to enlarge the vectors or on the button to scale down the vector
• Select Line Type... to open a Line Type Editor allowing to modify the line type used for the vec-
tor arrows (see section 4-10.4.1 for a detailed explanation of the line type parameters).
• Select Color Lock to change the coloring mode into single color.
• Select Color by Amplitude to color the vectors according to their amplitude.
CFView™ 4-41
Flow Quantities Visualization Visualize Vector Data
The representation type and color mode parameters are applicable for the next vectors
to be created, while the scale and arrow shape are applied to all represented vectors.
4-42 CFView™
Visualize Vector Data Flow Quantities Visualization
1. Choose Local from the Representation/Vector line menu or click on the button in the
Representations/Vector Lines subpanel.
2. Select the starting point. This can be done in different ways:
• with the mouse: select with the left mouse button a point on an active surface.
• with the keyboard: the message “Vector line starting point:” appears in the string input
area. Click on the string input box and enter the coordinates (the coordinates must be
separated with a blank) of the starting point. The actual start point is the projection of the
provided point on the closest active surface.
The vector line starts from this point and extends to the first non-connecting boundary encountered
or until the maximum number of points per vector line is exceeded (see section 4-6.4).
1. Choose Section from the Representation/Vector line menu or click on the button in the
Representations/Vector Lines subpanel.
2. Select a section defined by two points: move the mouse in the graphical area and click the left
mouse button to select the first point of the section line. A red line is attached to the cursor.
Move the cursor in the desired direction and click the left mouse button to define the second
point of the line.
The two points are actually defining a plane perpendicular to the screen. The section along
which the vector lines starting points are set is the intersection of that plane with the active sur-
faces. The starting points are equally distributed between the two points.
A default number of 5 vector lines are generated from this section and extend to the first boundary
encountered.
When choosing Section, a message “Number of Points:” appears on the left of the
string input area. To modify the default number of starting point in the section, click on
the string input box and enter a number larger than 2.
CFView™ 4-43
Flow Quantities Visualization Visualize Vector Data
The keyboard shortcut for vector lines from Section is: <Shift-j>.
1. Choose From Grid Line... from the Representation/Vector line menu or click on the but-
ton in the Representations/Vector Lines subpanel. A dialog box appears as shown in Fig-
ure 4.6.3-1.
The “I” and “J” appellation do not necessarily correspond to the IGG™ index:
• if the surface is constant in I, the first index corresponds to J and the second to K.
• if the surface is constant in J, the first index corresponds to K and the second to I.
• if the surface is constant in K, the first index corresponds to I and the second to J.
2. Select the constant index. Click on the desired Index button.
3. Set the value of this constant index in the Value box.
4. Select the nodes from which the lines are generated. To do this, enter a node range:
• Enter in the First box a number included between 1 and the maximum of the unselected
index.
• Enter in the Last box a number included between 1 and the maximum of the unselected
index. This number shall be different from the First Node number.
5. Click the Apply button to start the vector line computation and display.
6. Click the Close button to close the dialog box.
The keyboard shortcut for vector lines From Grid Line is: <Ctrl-j>.
1. Choose Parameters... from the Representation/Vector line menu or click on the button
in the Representations/Vector Lines subpanel. A dialog box appears, as shown in Figure 4.6.4-
1.
4-44 CFView™
Visualize Vector Data Flow Quantities Visualization
2. To modify the integration direction: click on the pull down menu and choose between three
options:
• forward, to set up a downstream integration,
• backward, to set up an upstream integration or
• both, to set up a fullstream integration.
3. To modify the computation mode: click on the pull menu and choose between two options:
• volume, to define vector line(s) in the 3D space or
• surface, to constrain the vector line on the surface from which it is started
4. To modify the maximum number of points per vector line: click on the Max points per line box
and enter the desired number of points or use the increment-decrement buttons (little up-down
arrows).
5. To modify the maximum number of points calculated inside each cell (this number allows to
avoid continuous calculations when the vector line goes in a spiral inside a cell): click on the
Max points per cell box and enter the desired number of points or use the increment-decrement
buttons (little up-down arrows). This parameter is used only for surface streamlines on mesh
surfaces.
CFView™ 4-45
Flow Quantities Visualization Visualize Vector Data
6. To modify the average number of points inside each cell (this average defines the number of
points calculated inside a cell): click on the Average points per cell box and enter the desired
point average or use the increment-decrement buttons (little up-down arrows). This parameter is
used only for surface streamlines on mesh surfaces.
7. Click the Apply button to apply the modifications.
8. Click the Reset button to discard the modifications and go back to the initial parameters.
9. Click the Close button to close the dialog box.
To modify the Line Type or the Marker Type click on the corresponding thumbnail which allows to
modify the default line and marker types (section 4-10.4 for a detailed description of these parame-
ters).
The selected parameters are applicable for the next vector line(s) to be created.
4-46 CFView™
Visualize Vector Data Flow Quantities Visualization
The two buttons "Variable" allow you to choose if you want the ribbon and the tube have their size
and twist varying along the stream line.
When "Variable size" is selected, the size of the ribbon/tube is proportional to the divergence of
the flow.
When "Variable twist" is selected, the twist of the ribbon/tube is proportional to the vorticity of the
flow.
The "ro" parameter is the size of the ribbon/tube at the beginning of the stream line.
The "r0" number is not an physical size, but it’s relative to the geometry extent of the project.
The computation of the twist and of the size is based on the interpolation of the curl and of the
divergence of the velocity field. These quantities are computed automatically the first time they are
needed and stored for later use, when they are not present in the project.
The two "Scale" parameters are two scaling factors that can be used to show the change of size and/
or twist in a better way. In that case, the ribbon size and twist are not related anymore to a physical
quantity. These scale parameters can be useful for illustrational purposes, to emphasize the flow
divergence and rotational properties.
The "Tube vertices" parameter is only used for tube generation: it defines the number of vertices of
the polygonal cross section of the tube.
CFView™ 4-47
Flow Quantities Visualization Visualize Vector Data
Initial direction: The normal at each point of the curve is computed automatically. However, the
choice of the first normal direction is left to the user, and has to be set by the "Initial direction"
parameter. All the directions are allowed, and you do not have to chose explicitly one of the coordi-
nate axis, but for the user's facility 3 shortcut buttons "X", "Y" and "Z" allow to align the normal
with one of the axis coordinate.
It is better to use the same initial direction for all the ribbons of a given picture.
Advanced parameters:
• Coincident point removal
The algorithms used to generate ribbons and tube geometry fail when the stream line curve has
coincident points. The coincident point removal options allow to remove all the points that are too
close to each other: all the points that are closer than the "Min. Distance" parameter are collapsed.
When the creation of a ribbon or tube fails, the problem can often be solved by the coincident point
removal algorithm, and increasing the "Min. Distance" parameter.
Even if it is not its primary goal, the coincident point removal can be used to reduce
the number of points of a stream line, in order to reduce the ribbon geometric complex-
ity.
• Laplacian filter
The "laplacian filter" algorithm allows to smooth the stream lines and the stream tubes. The filter is
a sliding window average filter. The "Pass count" parameters represents the number of time the fil-
ter is applied. The "Kernel size" is the size of the filter's kernel (i.e. the number of points that are
taken into account in the average computation)
When filtering is on, these quantities are filtered: the position of the curve points, the
normals of the curve, the size and the twist angle.
Twist subdivision:
In case of high vorticity flow, the quality of the ribbons can be low when the ribbon's geometric
density is not sufficient in comparison with the twist of the ribbon. The "Twist subdivision" algo-
rithm allows to refine locally the stream ribbon geometry. The general principle is to add new
points to the curve, until two successive normals never present a relative angle greater than the
"Minimum angle" parameter threshold. New points are added to the curve when the angle between
two successive point is too high.
The "Max. point" parameter is the maximum number of points that will be inserted every time a
refinement is necessary.
Limitations:
a) Generation failure
The streams ribbon/tubes generation algorithm will fail when :
the initial stream curve contains coincident points
the local normal at the point P(i) of the curve is parallel to the local segment P(i-1)- P(i)
In these cases, a stream line will be used instead of a stream ribbon/tube.
Solution: In most of the case, the coincident point removal procedure solves these issues.
4-48 CFView™
Visualize Vector Data Flow Quantities Visualization
When the procedure fails, these errors are detected while computing the normals, with the corre-
sponding warning messages "warning: Curve contains coincident points. Can not compute nor-
mals" and "warning: normal and previous_segment are coincident. Can not compute normals". If
they are detected during the ribbon/tube generation itself, the message will be "Ribbon stream gen-
eration error: ribbon not created because of stream line data degeneracies"
b ) twist angle refinement
If the local twist angle is higher than "Min angle" parameter, the algorithm will add new points to
the stream ribbon/tube. However, if the number of points to add is higher "Max Points" parameter,
only this maximum number of points will be added, with the message: "Ribbon stream generation
warning: twist is too high...try reducing the twist scaling factor"
c) local computation of divergence and of curl
As explained before, the vorticity and the cross divergence computation are based on the interpola-
tion of the divergence and of the curl of the velocity field. These quantities must be computed and
stored for all the domains, even if they are only used locally by the stream line. An amelioration
could be to compute the divergence and the curl quantities only at the curve points where they are
required
In this menu
— select Uniform color to have vector lines represented in a single color or
— select Velocity color to have vector lines colored according to the local amplitude.
CFView™ 4-49
Flow Quantities Visualization Colormap & Representations Range
• By selecting Update/Delete/Vector Lines: all vector lines representation of the active quantity
that were started from one of the active surfaces are deleted.
• By selecting Update/Delete/All: all representations (not only the vector lines) on all surfaces
are deleted.
The quantity range is a global setting. It affects all the views related to the project that
is edited.
4-50 CFView™
Colormap & Representations Range Flow Quantities Visualization
• Move the mouse to the string input area and enter the range of the colormap. The two limits
must be separated by a blank.
• Move the mouse on the colormap and click at a level which represents the first limit. Drag the
mouse in the colormap to a suitable value and release to fix the second limit.
A zoom to the selected range is performed.
on the toolbar.
In the above popup menu raised by pressing the right mouse button:
• Select Smooth Only to have only a smooth colormap represented.
• Select Strip Only to have only a strip colormap represented.
• Select Smooth and Strip to have both smooth and strip map represented.
Depending on the current representation, two of these three items are present.
CFView™ 4-51
Flow Quantities Visualization Colormap & Representations Range
• In the above popup menu raised by pressing the right mouse button:
— select the item Place at Left in order to place the colormap at the extreme left of the view.
The axis and colormap label are then placed on the right side of the colormap.
— select the item Move or Resize to start an interactive move or resize operation:
To resize the colormap:
• move the cursor on one of the corner markers, the cursor is changed into a resizing
symbol.
• press, drag and release the marker to the desired position.
To move the colormap:
• move the cursor inside the colormap, the cursor is changed into a moving symbol.
• press, drag and release the move the colormap to the desired position.
To leave the move or resize mode:
• click with the left or the right mouse button or press the <Esc> key.
Numbers Numbers
orientation text type
Numbers
Graduations distance
4-52 CFView™
Colormap & Representations Range Flow Quantities Visualization
• The Numbers distance entry allows to enlarge or shrink the spacing between the axis and the
graduation numbers.
b) Colormap Label
In order to modify the axis label, it should be selected by clicking on it with the left mouse button.
Red markers are displayed around it to indicate the selected element.
When selected, an insertion cursor is activated and the colormap label text may be modified in the
following way:
• The text is inserted at the cursor position. Initially, this cursor is positioned on the first character.
• The left and right arrow key to move the insertion cursor.
• The <Backspace> key suppresses the character on the left side of the insertion cursor.
When the axis label is selected, a popup menu is raised by pressing the right mouse button. This
menu contains the following elements:
• Select Larger font or Smaller font to enlarge or shrink the label text.
• Select Text Type... in order to open a Text Type Editor dialog box in which the label font can be
modified (see section 4-10.3.1 for a detailed description of the text type attributes).
CFView™ 4-53
Flow Quantities Visualization Represent Particle Traces Data
4-54 CFView™
Decoration Texts Flow Quantities Visualization
Press the right mouse button, a popup menu appears. Select the Curve Type... item to open a Curve
Type Editor dialog box (see section 4-10.4 for a detailed description of this dialog box).
1. Choose Update/Insert Text menu or click on the button in the main tool bar.
2. Click in the active view at the position where the text should appear.
3. Input the text. Multiple text lines can be inserted by pressing the <Enter> key.
The default text font type, size and color may be changed using the Default Decoration Text Type
Editor, invoked from Preferences/Decoration Text type... (section 4-11, for further information on
default settings and section 4-10.3.1 for a detailed description of the text type attributes).
CFView™ 4-55
Flow Quantities Visualization Update Representations
4-10.1 Undo
For some of the representations type, several representations can be inserted on the same surface.
This is the case for local values, isolines, vectors, vector lines and plot curves. For these representa-
tion types, choose Undo from the Update menu to remove the last inserted representation. Each
time this command is invoked, the latest representation from the group is deleted. This command
can be repeated until no object is left for that representation type.
4-10.2 Delete
It is possible to delete all or a specific representation type in the active view. To do so:
1. Choose Delete from the Update menu. A submenu appears.
2. Select a delete operation:
• choose All to remove at once all the data representations from all the active and inactive
surfaces in the active view.
• choose Text All to remove all the text from the active view.
• choose Text Last to remove the last inserted text in the active view.
• choose one of the other items to remove the associated data representations type from the
active surface(s) in the active view.
4-56 CFView™
Update Representations Flow Quantities Visualization
Representations cannot be removed from the active surface(s), with the Update/
Delete menu, if the corresponding quantity is not selected.
Spacing Controller
Anchor alignment
dialog box buttons Controller
CFView™ 4-57
Flow Quantities Visualization Update Representations
• An anchor alignment controller allowing to change the position of the text relatively to its
anchor point.
• An anchor point controller allowing to change the text anchor position.
Several dialog boxes are made out of the same controls, the most common controllers are described
in the rest of this section. More specific controllers are described later in the text.
The color controller allows to change various colors in the system. To change the color either select
one of the 18 predefined ones or invoke a standard color editor by clicking on the color editor but-
ton (Ed.).
Predefined
colors
Current color
The color editor allows to select a color by specifying its definition in the RGB color model. The
RGB color model is a hardware oriented color model: Red, Green and Blue are the 3 additive com-
ponents used in a color monitor to define a color).
4-58 CFView™
Update Representations Flow Quantities Visualization
On Unix platforms, use the RGB sliders or the entry fields to modify the color in RGB color model
space. On Windows platforms, select a color in the predefined area or in the colormap or specify its
RGB or its HSV values (Hue, Saturation, Value color model). Once a satisfying color is obtained,
click on OK to set the color in the controller and to close the dialog box. Click Cancel to quit the
dialog box without validating the choice.
The font type can be selected by clicking on the button on the right side of the entry showing the
currently selected font (arial in the above example) and its size by specifying an integer value.
Starting from version 3.8-22 of CFView™, two TrueType™ fonts have been introduced: Arial™
and Times™ (both are trademarks of Agfa Monotype Ltd). These fonts are based on the TrueType
technology and are rendered exactly in the same way on the screen and in bitmapped pictures (PNG,
JPEG, TIFF, PPM, PBM, PGM, NTSC). The Arial™ font is selected as the system default font.
CFView™ 4-59
Flow Quantities Visualization Update Representations
The Line Type Editor allows to modify the parameters that are controlling the appearance of lines in
the graphical area. In Figure 4.10.4-1, it is represented as the first page of the Curve Type Editor.
The following parameters are controlling the line appearance:
• the line Pattern (solid, dashed, dotted, etc...)
• the line End cap.
Butt
Square
Round
Bevel
Round
4-60 CFView™
Edit, Save & Restore Defaults Flow Quantities Visualization
• the precision: it can be increased, or decreased. The sample displayed next to the Precision
label shows on an example the current number formatting. To increase or decrease the number
of significant figures, click on the little up or down buttons on the right side.
CFView™ 4-61
Flow Quantities Visualization Edit, Save & Restore Defaults
At start-up the system tries to load the personal defaults file. This file should be
located in the subdirectory .numeca of the users home directory and should be named
.cfview.def (see section 1-7 for the location of the home directory).
At the end of the CFView™ session, the system checks if changes were brought to the
defaults configuration. If changes occurred, the system will ask whether these changes
should be saved or not.
4-11.4.2 AutoGrid
The AutoGrid item from the Preferences menu enables or disables an invisible grid on which the
views corners are attracted when performing a move or a resize operation. It is turned on by default.
4-62 CFView™
Surface Integrals Flow Quantities Visualization
• Surface Area ∫ dS : select this item in the Representation/Surface Integral menu to compute
S
the sum of the areas of all the active surfaces.
Integrals subpanel to compute this integral. The weighting factor w can be selected in the pop
down entry below the integral buttons. By default, the available weighting factors are Den-
sity*Vxyz, Density*Wxyz, Vxyz, Wxyz and 1. However, any valid vector equation can be entered
as weighting factor.
The integration result is written in the string output area, on the lower right of the graphical area.
CFView™ 4-63
Flow Quantities Visualization Surface Integrals
• Surface Area ∫ dS : select this item in the Representation/Surface Integral menu to compute
S
the sum of the areas of all the active surfaces.
• Flux ∫ v • dS : select this item in the Representation/Surface Integral menu or click on the
S
button in the Representations/Integrals subpanel to compute the flux of the vector quan-
tity through the active surfaces.
∫
• Weighted Flux ( w ⋅ v • dS ) : select this item in the Representation/Surface Integral menu to
S
compute a flux integral weighted by a scalar field. The weighting scalar (w) is selected by click-
ing on a scalar field name in the Weighted Flux sub-menu.
The integral is performed on the active surfaces.
When computing flux on multiple IJK surfaces, the sign of the flux is depending of the
local surface orientation.
K -d irectio n
F lu x T o ta l = F lu x - F lu x
FIGURE 4.12.2-1 Flux through K cst surfaces where combined flux sign has to be corrected.
∫
• Massflow ( ρ ⋅ v • dS ) : activate a surface from the Surfaces subpanel in the Quick Access Pad
S
and then click the button in the Integrals page of Representation subpanel to compute
the massflow through the active surface. The integration result is displayed in the string output
area.
4-64 CFView™
Curve Integrals Flow Quantities Visualization
B B
B
B
FIGURE 4.13.0-1 Illustration of integration from A to B.
CFView™ 4-65
Flow Quantities Visualization Output Generation
Example:
Block_1.Kmin Mirror
3 1 9425 |Vxyz_X| |Vxyz_Y| |Vxyz_Z|
6.500100e-002 6.000000e-002 0.000000e+000 -1.457787e-006 -5.816685e-006 0.000000e+000
...
1.200000e-001 6.000000e-002 0.000000e+000 7.074288e-002 -3.901238e-002 0.000000e+000
Block_2.Kmin Mirror
3 1 4225 |Vxyz_X| |Vxyz_Y| |Vxyz_Z|
1.200000e-001 0.000000e+000 0.000000e+000 1.168020e-001 7.446105e-004 0.000000e+000
...
2.900000e-001 1.200000e-001 0.000000e+000 1.159577e-001 9.697273e-004 0.000000e+000
4-66 CFView™
Output Generation Flow Quantities Visualization
The Options frame allows to select various options which depend on the selected file format. The
options are described in section 4-15.1.
a) PNG
PNG is a compressed bitmapped colored format that is recommended in most cases. This format
reduces greatly the created picture file size without any degradation and it is supported by nearly all
the word processors and image handling tools.
In the Options frame, the size of the picture may be specified in percent of the screen display (by
selecting the scaling option) or by setting directly the number of pixels in width and height (option
size).
The first way of specifying the size is more intuitive. The default size is 100%, meaning that the
created picture is of the same size as the screen display.
Please note that the text rendering may suffer some degradation if arbitrary size values are used.
Recommended values are multiple of 100%, in such a way that the text size in pixels remains an
integer.
b) PostScript
PostScript is a page description format used for hard copy prints. Both vectorised and pixelised (bit-
mapped) options are supported. This format is widely accepted by printer devices.
The PostScript format may be useful if the created picture is sent directly to a PostScript printer.
However, it should be noted that if a picture contains color, the size of the created picture may be
very large. It is recommended to use bitmapped PostScript (by selecting the Bitmapped option in
the Options frame) as soon as coloring is included in the picture.
CFView™ 4-67
Flow Quantities Visualization Output Generation
Furthermore, in the Options frame, the resolution is specified in dots per inch (dpi). The size and
positioning of the created picture is controlled by a specific dialog box, the Page Layout Editor,
which is opened by pressing the Page Layout button (see section 4-15.2)
c) Other Formats
If the button Others... is selected, a more extensive list of file formats is proposed. These formats
should be used only when format compatibility problems are encountered. The proposed formats
are:
• EPS is the encapsulated PostScript format. It is similar to PostScript except that it is independ-
ent of any page size definition.
• PBM is a black and white bitmap format (all non white pixels become black).
• PGM is a greyscale (256 levels of grey) bitmap format.
• PPM is a color (16 million colors) bitmap format.
• TIFF is the standard TIFF RGB full color format (16 million colors)
• JPEG is a compressed colored format.
For the 5 last formats, the size may be specified in the same way as for the PNG file format (see
section 4-15.1)
4-68 CFView™
Overview Turbomachinery Specific Features
CHAPTER 5: Turbomachinery
Specific Features
5-1 Overview
This chapter provides a detailed description of the functionalities specific to turbomachinery appli-
cations. It is divided in 3 sections:
• visualization in blade to blade coordinates,
• computing a meridional view by azimuthal averaging,
• the turbomachinery mode.
CFView™ 5-1
Turbomachinery Specific Features Visualization in Blade to Blade Coordinates
In case these two steps are not successful, it is strongly advised to open and save the mesh file in a
recent version of AutoGrid™. Otherwise, CFView™ will use the old approach described below.
This approach is not adivsed since the computation of span and stream positions can be very long.
In case you want to compute the span and stream positions for only one row, please
use the Partial Loader (see section 2-3.4).
CFView™ detects the hub and shroud surfaces by the naming convention used in AutoGrid™. Hub
surfaces are containing the word "hub", while shroud surfaces are containing the word "shroud".
These are the surfaces selected by default (except that the surfaces related to a blade gap are
excluded).
If necessary, the surface sets defining the hub and the shroud may be modified. This is done in the
Define Hub And Shroud dialog box. Selecting Geometry/Set Hub and Shroud... opens this dialog
box, presented in Figure 5.2.1-1.
On the left side, the list of solid surfaces is displayed. The surfaces must be “moved” to the hub and
shroud lists using the arrow buttons, in the following way:
• Select one or several surfaces or groups in the Surfaces list (the list on the left side).
Selected surfaces (highlighted in blue) can be visualized in the graphics area by mouse
right-click.
• Press the upper button displaying a right pointing arrow.
• The selected surfaces are removed from the Surfaces list and added to the Hub Surfaces list.
A surface can be removed from the hub list by selecting it and pressing on the left pointing arrow
button. Similarly, the buttons situated next to the Shroud Surfaces frame can be used to set up the
shroud surfaces list.
It is strongly recommended to carefully check the validity of the choice of hub and
shroud surfaces before starting to create blade to blade representations. Attention should
be paid on the fact that the RZ-plane projections of hub or shroud surfaces have to coa-
5-2 CFView™
Visualization in Blade to Blade Coordinates Turbomachinery Specific Features
lesce in a uniform curve. The zoom functionality should allow to verify if the apparently
coalescent set of hub or shroud RZ-plane projection curves is not consisting in fact in a
set of side by side running curves. If this is the case, surfaces should be removed from
the hub or shroud lists until a coalescent set of projection curves is reached.
For example, if there is a tip clearance at the blade tip, the blade top surface should not
be present in the shroud surfaces list.
Finally, press the Ok button to validate the hub and shroud surfaces declaration, or press Cancel to
discard the dialog box without validating the new definition.
To open such a view, select Open Blade to Blade from the Window menu. CFView™ prompts for
an interactive definition of the view size and position. Once the position and size are provided,
CFView™ computes if necessary the blade to blade coordinates for the geometry to represent.
A blade to blade view is a standard three-dimensional view in which all the representations of scalar
fields described in Chapter 4 are available. For vector quantities, only the vector arrow representa-
tions are available, the vector line representation is not supported.
In blade to blade views, cutting planes at specific span height may be obtained from the Create Cut-
ting Plane dialog box or from the Blade to blade Surface dialog box described in section 5-2.3.
On the left side, the constant span or constant stream position is selected from 0 to 1 (e.g. S = 0.5 at
mid-span). The middle frame allows to sweep in the geometry with a user defined increment. On
the right side, the kind of representation can be selected:
CFView™ 5-3
Turbomachinery Specific Features Visualization in Blade to Blade Coordinates
• Quantity: representation of the active quantity color contour or vector field. This option is only
available if a quantity is selected at the time the dialog box is opened.
• Geometry: representation of the cut surfaces grid.
• Polygon: representation of the cut as a flat polygon. This representation is very fast but is lim-
ited to the views in STM coordinates.
The layout of the push buttons is similar to the one of the cutting plane creation dialog box:
• Press the Apply button in order to get a graphical representation of the surface corresponding to
the selected span or stream position.
• Press the Save button to save the surface which corresponds to the selected span or stream posi-
tion. The surface becomes part of the surfaces that can be selected later with the surface selec-
tion functionality (section 3-3).
• Press the Reset button in order to reset the parameters to their default value (a blade to blade sur-
face at mid-span).
• Press the Close button in order to discard the dialog box.
Figure 5.2.3-2 illustrates the use of the blade to blade feature. Cutting planes at a specified distance
between the hub and the shroud can be visualized in several coordinate spaces.
On the left side of Figure 5.2.3-2 the mid-span cut is shown in red in the original XYZ coordinate
space. On the lower right side, the static pressure distribution on the same surface is shown in the
STM coordinate space. On the upper right, a zoom to the blade leading edge is shown.
5-4 CFView™
Compute Meridional View by Azimuthal Averaging Turbomachinery Specific Features
CFView™ 5-5
Turbomachinery Specific Features Compute Meridional View by Azimuthal Averaging
If the mesh contains more than one domain, it may happen that more than one surface has to be
selected, each of them in their distinct domains.
5-6 CFView™
Compute Meridional View by Azimuthal Averaging Turbomachinery Specific Features
If the mesh contains only one domain, the layout of the dialog box is simplified:
The dialog box contains only the selection frame and the buttons to choose the weighting factors.
Once the meridional patches are selected,
• Press the Ok button to validate the choice and quit the dialog box,
• Press the Reset button to come back to the initial choice or
• Press the Close button to discard the dialog without applying the meridional patches selection.
If the RhoV mode of weighting is selected, first ensure that a vector field Vxyz or
Wxyz is present. If the scalar field Density is not present, its value is assumed to be uni-
formly 1.
If the Density field is not present, such a field can be generated by making use of the
derived quantities functionality (see section 4-2.1.8).
CFView™ 5-7
Turbomachinery Specific Features TurboMachinery Mode
• Hub & Shroud section: Select the Edit Definition button to open the Define Hub And Shroud
dialog box. This allows to check and, if necessary, to modify the definition of the hub and of the
shroud that will be used to create blade to blade representations in the turbomachinery mode.
• Meridional Average section:
— Load Flow Solver Pitch Average to open automatically the FINE™/Turbo output file.
— Compute Pitch Average to compute a new meridional average output from FINE™/Turbo
3D outputs by defining the meridional patches thanks to the Edit CFView Meridional
Patches button that open the Define Meridional Patches dialog box. This allows to check
and, if necessary, to modify the meridional mesh used to compute and represent the pitch
averaged data.
• Select the Ok button to proceed or
• select the Cancel button to open the project in the standard mode.
5-8 CFView™
TurboMachinery Mode Turbomachinery Specific Features
• a meridional view obtained by pitchwise averaging. If Load Flow Solver Pitch Average is acti-
vated, the view is the results already computed by the EURANUS flow solver. If Compute
Pitch Average is activated, the solution is computed using the meridional patches list. In this
view, only the averaged domains are active by default. The blade surfaces are also inserted
(their boundaries are visible), but they are not active by default.
• a 3D view in Cartesian coordinates,
• a blade to blade view showing the blade passages at mid-span and
• a meridional view in turbomachinery coordinates showing the blade surfaces. In this view, the
blade surfaces are selected by default. The hub and shroud surfaces are also inserted (their
boundaries are visible), but they are not active by default.
In the surfaces list, specific groups for the hub, shroud and blades are defined. These groups are
facilitating the identification and selection of these surfaces.
When a scalar quantity is selected, two additional buttons are available in the Representations/Plot
& Values subpanel:
• The Blade Section button allows to create plots at constant span height:
— select this button to start creating such plots. The blade view is automatically selected.
— click at the desired span height or provide its value in the string keyboard entry.
— the curve is inserted in a Cartesian plot as a function of the streamwise position.
• The Span distribution button allows to create plots showing the span profile:
— select this button to start creating such plots. The meridional view is automatically selected.
— press, drag and release with the left mouse button to specify the profile location or provide
the values in the string keyboard entry.
CFView™ 5-9
Turbomachinery Specific Features TurboMachinery Mode
— The curve is inserted in a Cartesian plot as a function of the normalized arc length.
Once the Turbomachinery mode has been started on a project, it is not possible to
modify the hub and shroud definition. In order to modify this definition, it is necessary to
close the project and reopen it.
5-10 CFView™
Overview Animations & Unsteady Data Analysis
6-1 Overview
This chapter provides a description of animation capabilities in CFView™. The animation capabili-
ties are divided into two main areas: the animation of steady state data sets and animations of
unsteady data sets.
The first section describes the animations that can be performed on steady state data sets. These are:
• the animation of vector lines,
• the animation by mesh surfaces sweeping and
• the animation by cutting planes sweeping.
The second section describes how to create animations from unsteady data sets and how to record
such animations in video files.
CFView™ 6-1
Animations & Unsteady Data Analysis Animations in Steady State Data Sets
To start the animation of the vector lines, select the button in the Stream line animation dialog
box from the Geometry/Animations/StreamLine Animation... menu. The animation consists of
markers or arrows moving along the streamlines with a velocity proportional to the local velocity
amplitude.
The max frame/sec control allows to limit the number of animation steps by second. During the
animation, a different value may be entered into the string area and validated by pressing the Apply
button.
To end or pause the animation, select respectively the button or from the dialog box. The
animation markers are respectively erased or frozen on the vector lines.
To start recording the animation, select the button . Once the animation parameters are set, or if
the animation parameters have to be modified during the animation:
• Select Apply to validate any modification of the content of the dialog box. This affects the ani-
mation in real time.
• Select Reset to cancel all modifications and the dialog box finds back its original status.
• Select Close to cancel the animation. The dialog box is closed and the animation markers are
erased from the vector lines.
a) Markers
The markers density is controlled by the marker Emission rate control in the dialog box.
The marker type used for the animation is the one which is associated to the vector lines. The actual
marker type of a vector line may be:
• the default marker type for the vector lines. This marker type may be modified in the Curve
Type Editor dialog box opened by selecting Curve Type... in the popup menu of the vector line
(see section 4-6.4) or
6-2 CFView™
Animations in Steady State Data Sets Animations & Unsteady Data Analysis
• the marker type applied to an individual vector line or to a group of vector lines. Refer to
section 4-6.5 for a description of how to modify the curve type attributes of vector lines.
The animated markers are always visible, independent of the visibility (Visible) of the vector lines
markers.
b) Arrows
The interface for drawing arrows on streamlines is shown in Figure 6.2.1-1. This can be accessed in
two ways:
• If a scalar quantity is active select Representation --> Steamlines --> Parameters and if a vec-
tor quantity is active select Representation --> Vector line --> Parameters.
• Right click on a streamline or a vector line and select Parameters.
In Vector Lines Parameters dialog box a new entry was added that will control the visibility, size
and density of arrows. The three widgets perform following functions:
• Visibility: by default this is set to off for backward compatility issues. To make arrows visible
on streamlines first set Visibility to on and secondly press Apply.
CFView™ 6-3
Animations & Unsteady Data Analysis Animations in Steady State Data Sets
After this whenever a new streamline is created, arrows will be drawn on it by default.
Arrows are made visible only when streamlines are drawn with LINE representation. In case of
TUBE or RIBBON representation no arrows are drawn.In order to draw moving arrows instead od
moving markers in streamline animation, user will have to activate arrow visibility option for the
streamline.
• Size of Arrows: Arrows are drawn in the form of two-dimensional filled equilateral triangles as
shown in Figure 6.2.1-2.
Size of arrow is a relative variable and its default value is 1. When this value is decreased a rela-
tively smaller equilateral triangle is drawn such that the front vertex of the triangle remains
unmoved. The two vertices in the aft position are made closer to the front vertex as well as to the
streamline. These two aft vertices are alwaysdrawn such that the equilateral triangle remains nor-
mal to camera view for all times.
6-4 CFView™
Animations in Steady State Data Sets Animations & Unsteady Data Analysis
• Density of Arrows: This variable controls the number of arrows per unit length. The default
value is such that approximately 20 arrows will be drawn on any streamline that encompasses
the length of the bounding box/sphere of the whole domain. This model is based on an already
existing model that is currently used for the default density of markers in streamline animation.
All the arrows are equidistant as shown in Figure 6.2.1-3.
When the streamlines are drawn with the non-uniform color, the color of the arrows also vary
depending the arrow location as shown in Figure 6.2.1-4. In case of uniform color is used, all
arrows are drawn in same color.
CFView™ 6-5
Animations & Unsteady Data Analysis Animations in Steady State Data Sets
— when the animation is paused, this button steps back to the previous surface.
— when the animation is paused, this button steps to the next surface.
Furthermore, two string editors provide additional control on the speed of the scrolling:
— The Step control allows to choose the value of the scrolling index increment between two
animation steps.
— The max frame/sec control allows to limit the number of animation steps by second.
• The buttons Geometry and Quantity appear only if a quantity is selected.
— The surfaces are represented by their grid wireframe if the option Geometry is selected.
— The surfaces are represented by a color contour if the option Quantity is selected.
6-6 CFView™
Animations in Steady State Data Sets Animations & Unsteady Data Analysis
Once the animation parameters are set, or if the animation parameters have to be modified during
the animation:
• Select Apply to validate any modification of the content of the dialog box. This affects the ani-
mation in real time.
• Select Reset to cancel all modifications and the dialog box finds back its original status.
• Select Close to cancel the animation. The dialog box is closed.
— The three buttons allow the choice of the direction of the cutting plane normal
which will be oriented respectively along the X, Y or Z axis.
— The three buttons allow to rotate the cutting plane around X,Y and Z axes.
Activating one of them with the left mouse button, and dragging the mouse to the left will
rotate the cutting plane clockwise, and to the right, counterclockwise.
• The Animation Control area allows to control the animation as described in section 6-2.2. The
Step string editor allows to input the distance between two consecutive cutting planes.
• The Geometry and Quantity buttons allow, when a quantity is selected, to choose between a
grid wireframe representation (the Geometry option) or a color contour representation (the
Quantity option).
• The Apply button allows to validate new parameters during the animation.
• The Reset button allows to restore the initial values of the animation parameters.
• The Close button stops the animations and discards the dialog box.
CFView™ 6-7
Animations & Unsteady Data Analysis Animations in Steady State Data Sets
In order to record streamline animation user will have to perform following steps:
1. Right click on Record button to activate it (Figure 5b).
2. Animation Output Set Up dialog box (Figure 5c) will pop up. This dialog box is same as that
used for unsteady recording except for one change – Delete Image Files is active by default.
Make necessary changes. Press Ok.
3. Save Animation in GIF Format dialog box (Figure 5d) will pop up. Enter the name for the
animated GIF file. Press Ok.
4. Animate required frames using Play button. For each frame an image will be saved.
5. Right click on Record button to deactivate it. All the images saved during the interval when the
Record button was active are combined in the form of an animated GIF file with the name spec-
ified by the user.
If in step 3, user specifies the name of the animated GIF file to be “animated.gif”, the PNG
imagesin step 4 are created with names derived from “animated.gif” by appending “_steadycfvtmp”
to it (e.g animated_steadycfvtmp_t01.png, animated_steadycfvtmp_02.png, etc).
6-8 CFView™
Animation of Unsteady Data Sets Animations & Unsteady Data Analysis
When the user activates the Record button and presses Play button, an image is saved for each
frame. It may happen that the user gets busy with some other work and does not deactivate the
Record button after sometime. In that case the hard disk will get filled with images. This may even
lead to a system crash. To avoid such a scenario following approach has been undertaken. All the
three steady animations – streamline/cutting-plane/structured-surface animation – are repeated
after a certain number of frames. Suppose that the streamline animation gets repeated after every 10
frames. In that case, only the images for first 10 frames will be saved and although the animation
goes on indefinitely till the user presses Stop button, no image will be saved for any frame starting
from frame 11.
• Select All Time Steps to perform an analysis on all the available time steps.
• Select Initial and set the initial and final time steps to the desired value for an analysis of a pre-
defined range.
• Press Ok to start the project opening.
• Press Cancel to cancel the project opening.
If the Partial Loader is used, the interval between consecutive time steps can also be selected, see
section 2-3.4.
When the project is loaded, the first time step is loaded and a set of animation control buttons is
added to the general toolbar.
This button allows to enable or disable the animation recording. It acts as a toggle: when the record-
ing is turned off, the button background is grey (this is the default) and when the recording is turned
on, the button background is yellow.
This button allows to come back to the first time step.
This button allows to reach the next time step. The same representations are drawn in the views, but
with the data from the next time step.
This button allows to start an animation of the current representation. The same representations are
drawn in the views, for each time step successively.
This button allows to stop a running animation.
This button allows to enable or disable the automatic restart at the first time step, when the anima-
tion has reached the last time step. If the feature is turned on, the first time step is considered as the
CFView™ 6-9
Animations & Unsteady Data Analysis Animation of Unsteady Data Sets
one following the last time step. If the feature is turned off, the animation stops when it reaches the
last time step.
This button allows to free the RAM usage at each time step when post-processing unsteady data
sets. By default it is activated. See section 4-2.2.4 for a more detailed description.
When working with an unsteady data set, the time value may be added in the graphical view by
selecting Time Label in the Quantity menu. The time label appears as a text “t=----” that can be
selected interactively for changing its position or its text type.
To create an animation, proceed as follows:
• first create the representations on the initial time steps.
• Start the animation either step by step ( ) or continuously ( ).
By default the state of this button is “off”. When this button is clicked for the first time, the state is
changed to “on”, and an “Animation Output Set Up” dialog box pops up asking for the parameters
for creating the animation. This dialog box contains all the parameters that are needed for creation
of PNG images. The top part of the dialog box is very similar to the “Print Output Set Up” dialog
box that is invoked from File->Print menu. The lower part of the dialog box contains options
specific to the animation. “Other Options” allows the user to specify the delay between two frames
(in 1/100 th of a second) and the number of loops in the animation (0 corresponds to a never ending
loop). User can also choose to delete image files after an animated GIF has been created from them.
After the setting these parameters, a click on “Ok” button pops up file selection dialog box (“Save
Animation in GIF Format”) that allows the user to specify the name for the animated file. The
dialog boxes are shown in the figure given below:
6-10 CFView™
Animation of Unsteady Data Sets Animations & Unsteady Data Analysis
In Step 3, a series of PNG images are created that are used for creating animation in Step 4. If the
user specifies the name of the animation file to be “animated.gif”, the PNG images are created with
names derived from “animated.gif” by appending “_cfvtmp” to it (e.g animated_cfvtmp_t01.png,
animated_cfvtmp_02.png, etc).
CFView™ 6-11
Animations & Unsteady Data Analysis Animation of Unsteady Data Sets
6-12 CFView™
Overview Macro Language
7-1 Overview
This chapter describes the macro language of CFView™ and the available instruction set. The
macro script is a very powerful feature that allows to automate CFView™.
‘Macros scripts’ are programs that are written using a macro language. They can be produced either
by recording the actions performed during a visualization session or from scratch using a normal
text editor. Macro scripts can be recorded, saved, loaded and executed in CFView™, using the
items in the File / Macro menu (section 2-6.2).
CFView™ 7-1
Macro Language Python Language Overview
• The command returns the name of the view that is created during the command execution.
• Its associated menu item is File/Open Project: the command performs the same operation as
the selection of this menu item.
• The actual operation performed is to open the project in a new view (the view appears in full
screen mode).
• If the project cannot be loaded the command will raise an IOError exception. By default, this
error message will be indicated in a dialogue box that pops up. If CFView™ was started in batch
mode, the error message is written in the shell terminal from which CFView™ was launched.
To load the project ‘/usr/people/me/case.cfv’ type: FileOpenProject(‘/usr/people/me/case.cfv’)
The character “\” in a string will lead to tab character when combined with “t” (“\t”)
and to carriage return when combined with “n” (“\n”). Instead of writing “\”, “\\” has to
be used.
7-2 CFView™
Python Language Overview Macro Language
The mathematical operations supported in the Python language are different from
those available for the definition of derived quantities (see section 4-2.1.8 for a descrip-
tion of mathematical operations supported in derived quantities definition)
CFView™ 7-3
Macro Language Python Language Overview
7-4 CFView™
Python Language Overview Macro Language
Each line of the function’s body is indented with a <TAB> character. The function definition ends
with the first line which is not indented by a <TAB> character.
All arguments are passed by value. When arguments are passed by value to a function, even if the
values of the arguments are modified inside the function, the values of the arguments, seen from the
main program or the calling function, are not modified by the execution of the function.
A returned value may be specified using the ‘return’ statement followed by the name of the variable
or by a value. In any case, a value is returned and not a reference on a local variable or object. The
type of the returned value is a list, this means that appending a new element in the returned list is
obtained by the statement ‘return.append(x)’.
Global scope variables can be accessed if they are declared as such by a statement ‘global’ (e.g.
‘global x’ specifies that the x variable is a global variable for the current function). The global vari-
able lifetime is not limited to the present scope.
CFView™ 7-5
Macro Language Macro Script Examples
• f.write(string) write string to file (f.write(string+‘\n’) is writing the string content on a line).
The standard CFView™ macro commands are part of the module CFView, when they
are used in another module, they have to be imported (from CFView™ import *).
7-6 CFView™
Macro Script Examples Macro Language
1. In CFView™ load the project provided with the CFView™ test case distribution from
Open toolbar button.
2. Select Record (File/Macro) to turn on the macro recorder by selecting.
3. Select the desired surface on which the integrals should be computed from the Sur-
faces subpanel by pressing the right mouse button and selecting the Select item in the
popup menu. Also you may create a new surface using Geometry menu options (sec-
tion 3-4, p. 3-11 for detailed information about surface creation).
4. Select the required field quantity to be integrated from Quantities subpanel (say 'Den-
sity').
At this point, all the operations regarding the surface creation and selection as well as the quantity
selection are recorded internally in CFView™.
5. Select Save… from File/Macro menu to save the macro script, this raises a file
chooser.
—Enter or select the file name in the file chooser.
—Press OK to validate the entry.
6. Using
a text editor, open the saved file ('.py').
7. Add the commands for surface integral computation and the display of the results of
the calculations in the active view (See section 7-5.22, p. 7-44 for a description of
each command):
a=GmtArea()
(area of the surface)
i=SclIntegral()
(scalar surface integral of 'Density')
wi=SclWeightedIntegral('Static Pressure')
("Static Pressure"-weighted surface integral)
pf=SclForce()
(vector surface integral of 'density')
pt=SclTorque(x,y,x)
(vectorial surface integral of 'Density' , taken as a
torque with respect to the point having coordinate x,y,z)
pta=SclTorqueAmplitude(x,y,z, i,j,k)
(scalar product of the same integral as SclTorque with the unit vector i,j,k)
QntFieldVector('Vxyz')
f=VectorFlux()
(flux of 'Velocity' through the active surfaces)
wf=VectorWeightedFlux('Density')
('Density'-weighted flux of 'Velocity' through the active surfaces)
InsertText(0.1,0.9,0.0,"Area . . . . . . . . . . . : %11.4e"%(a))
InsertText(0.1,0.8,0.0,"Integral density . . . . . : %11.4e"%(i))
InsertText (0.1,0.7,0.0,"Integral pressure x density : %11.4e"%(wi))
InsertText (0.1,0.6,0.0,'Flux velocity . . . . . . : %11.4e'%(f))
CFView™ 7-7
Macro Language Macro Script Examples
(file opening)
fi=open(‘/disk1/people/etienne/macros/listIn.dat’,’r’,0)
fo=open(‘/disk1/people/etienne/macros/listOut.dat’,’w’,0)
(write header line)
fo.write(‘Node# x_cord y_cord z_cord fieldValue\n’)
(select quantity -
if the following line is commented, the active quantity is used)
#QntFieldScalar(‘Static Pressure)
(import the type module for later use)
from types import *
(skip the first line, read the file lines and extract the quantity
value.)
s=fi.readlines()
for i in range(1,len(s)-1) :
(scan line)
lineList=[]
for x in splitfields(s[i]) :
if (x!=’’) : lineList.append(atof(x))
(write number and point coordinates)
7-8 CFView™
CFView™ Command Description Macro Language
(close files)
fi.close()
fo.close()
All macros created with CFView™ v8.7, contain as a first line CFViewBack-
ward(84). This line should not be removed. If no such line is present, the macro can only
be executed if the CFVIEW_BACKWARD variable has been set to 74, as described
above.
CFView™ 7-9
Macro Language CFView™ Command Description
— Operation (section 4-11.2, p. 4-62): opens filename and loads its content as a new set of
default parameters.
— Exceptions: Raises IOError if the project cannot be loaded.
• DefaultDecorationTextType(TextType texttype, int lineAlign, int lineSpacing)
— Associated menu item: Preferences/Decoration Text type...
— Operation (section 4-11.1, p. 4-61): sets the default type for text insertion. The parameter
lineAlign may have a value of 0 (centring), 1 (left justification) or 2 (right justification). The
parameter lineSpacing may have a value of 0 (normal spacing), 1 (spacing 50% larger) or 2
(double spacing), section 7-5.29, p. 7-55 for the textType argument description.
• DefaultGridLineType(LineType line)
— Associated menu item: Preferences/Grid line type...
— Operation (section 4-11.1, p. 4-61): sets default type for the wire frame of mesh surfaces,
section 7-5.29, p. 7-55 for the lineType argument description.
• DefaultBoundaryCurveType(CurveType curve)
— Associated menu item: Preferences/Boundary curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for the boundaries of mesh surfaces,
section 7-5.29, p. 7-55 for the curveType argument description.
• DefaultSectionCurveType(CurveType curve)
— Associated menu item: Preferences/Section curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for curves associated to cartesian plots
on sections, section 7-5.29, p. 7-55 for the curveType argument description.
• DefaultNodeLineCurveType(CurveType curve)
— Associated menu item: Preferences/Node line curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for curves associated to cartesian plots
along grid lines, section 7-5.29, p. 7-55 for the curveType argument description.
• DefaultPlotDataCurveType(CurveType curve)
— Associated menu item: Preferences/Plot data curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for plot data curves, section 7-5.29, p.
7-55 for the curveType argument description.
• DefaultValidationCurveType(CurveType curve)
— Associated menu item: Preferences/Validation curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for validation data curves, section 7-
5.29, p. 7-55 for the curveType argument description.
• DefaultComparisonCurveType(CurveType curve)
— Associated menu item: Preferences/Comparison curve type...
— Operation (section 4-11.1, p. 4-61): sets default type for curves presenting mesh interpolated
values to be compared with validation data, section 7-5.29, p. 7-55 for the curveType argu-
ment description.
• DefaultLocalValueType(MarkerType markerType, TextType textType, DoubleFormat dou-
bleFormat)
— Associated menu item: Preferences/Local value type...
— Operation (section 4-11.1, p. 4-61): sets type for local values, section 7-5.29, p. 7-55 for the
textType argument description, section 7-5.29, p. 7-55 for the markerType, textType and
doubleFormat arguments descriptions.
7-10 CFView™
CFView™ Command Description Macro Language
• DefaultComparisonToleranceValue(float f)
— Associated menu item: Preferences/Derived quantity epsilon...
— Operation: sets default value for the epsilon of a derived quantity.
CFView™ 7-11
Macro Language CFView™ Command Description
— title is the text to be inserted in the banner if the banner parameter is set to 1 (otherwise, the
content is not used).
— date is a boolean value indicating if the print date should be mentioned in the banner or not.
This argument may be omitted.
— quality is an integer value, ranging from 0 to 3. It specified the internal size of the image
that will be computed, as well as the number of blur passes. “normal” corresponds to quality
= 0, “high” to quality = 1, “thin lines” to quality = 2, “very thin lines” to quality = 3
• PostScriptSave(string filename)
— Operation (section 4-15, p. 4-66): saves the current display in PostScript format. Aspect
ratio and resolution depend on the actual size of the display on the screen and are automati-
cally computed.
• EPSSave(string filename)
— Operation (section 4-15, p. 4-66): saves the current display in Encapsulated PostScript for-
mat. Aspect ratio and resolution depend on the actual size of the display on the screen.
• PPMSave(string filename), PGMSave(string filename), PBMSave(string filename)
— Operation (section 4-15, p. 4-66): saves the current display in PPM, PGM or PBM format.
• NTSCSave(string filename)
— Operation: saves the current display in NTSC format. Produces 3 files with suffix ‘.U’,
‘.Y’.and ‘.V’ that can be used to produce animations.
7-12 CFView™
CFView™ Command Description Macro Language
CFView™ 7-13
Macro Language CFView™ Command Description
7-14 CFView™
CFView™ Command Description Macro Language
— sizemode: 0 means that the scaling mode will be used, 1 means that the pixels mode will be
used.
— scaling: performs a scale of the picture (maximum: 1600 and minimum: 30).
— xpixels and ypixels: define the the number of pixels along X and Y directions (maximum:
5000 and minimum: 16)
— bannermode: includes a banner if it sets to 1.
— bannertext: text included in the banner if bannermode is set to 1.
— datemode: the date is included in the animation.
— delay: imposes a delay between 2 frames (in 1/100th of a second).
— loops: includes a number of loops in the animation.
— deleteimagefilesmode: deletes the intermediate pictures when saving the animation.
— animationfilename: name of the animation file.
• AnimPrint()
— Operation: this macro is similar to Print macro (section 7-5.2). It creates PNG image files
using the information that has been set through SetRecordAnimParam macro.
• AnimationLoop(bool b)
— Operation: this macro activates the loop for the recorded animation if the boolean is set to 1.
• FreeMemory(bool b)
— Operation: activates or deactivates the "Free Memory On/Off" button respectively (section
2-2.2.5 on page 2-6).
The following section describes the macros for steady animation control. It includes all of these:
streamline, cutting plane, and structured surface animations.
• RecordSteadyAnimation(bool b)
— Operation: its usage is similar to RecordAnimation macro used for unsteady animation.
This macro is executed when the Record button is activated (b = 1) or deactivated (b = 0).
• SteadyAnimationNextStep()
— Operation: draws the next frame for steady animation.
• SetRecordSteadyAnimParam(int viewmode, int sizemode, int scaling, int xpixels, int ypix-
els, bool bannermode, string bannertext, bool datemode, bool annotatemode, string annota-
tetext, int annotatelocation, bool bordermode, int delay, int loops, bool
deleteimagefilesmode, string animationfilename)
— Operation: Its usage is similar to SetRecordAnimParam macro used for unsteady anima-
tion. This macro sets the values of animation parameters.
• StreamLineAnimationInit()
— Operation: initializes and draws the first frame of the animation.
• StreamLineAnimationStop()
— Operation: stops the animation and clears the markers used for the animation
• CuttingPlaneScrollingInit()
— Operation: initializes and draws the first frame of the animation.
• CuttingPlaneScrollingStop()
— Operation: stops the animation and clears the markers used for the animation
• SurfaceIJKScrollingInit()
CFView™ 7-15
Macro Language CFView™ Command Description
7-16 CFView™
CFView™ Command Description Macro Language
weightOption: a string value specifying the applied weighting. The supported values are:
“1” means a value 1 is given to the weighting coefficient,
“Density*Vxyz” or “Density*Wxyz” means that a mass flow weighting is applied.
CFView™ 7-17
Macro Language CFView™ Command Description
— Operation: the command OpenPitchAveraged() computes the pitch average based on the
provided meridional mesh and open a new view in which the results are shown. The com-
mand SetDefaultPitchAveragePatches() defines the default meridional mesh used by the
command OpenDefaultPitchAverageView().
• string OpenDefaultPitchAveragedView()
— Associated menu item: Window / Compute & Open Pitch Average
— Operation: computes and opens a pitch average view, by using the default meridional
patches taken from the project file or specified by the command SetDefaultPitchAverage-
Patches().
When the user creates a pitch averaged view, the numerotation is modified. For exam-
ple, for a multistage project including 6 blocks, the user creates a meridional view in
which there is only 4 patches leading to a different resulting numerotation. The function
StructuredDomainSize will not return the same results in the 3D view and in the pitch
averaged view.
7-18 CFView™
CFView™ Command Description Macro Language
• LimitsFull()
— Associated menu item: View / Full.
— Operation (section 2-5.5.5, p. 2-23): sets current view to full size.
• Limits(float xmin, float xmax, float ymin, float ymax)
— Associated menu item: View / Move and View / Resize.
— Operation (section 2-5.5.5, p. 2-23): sets the lower left corner of the active view to (xmin,
ymin) and its upper right corner to (xmax, ymax). The lower left corner of the graphics area
is in (-1,-1) and its upper right corner is in (1,1).
• ViewIconize()
— Associated menu item: View / Minimise.
— Operation (section 2-5.5.5, p. 2-23): iconizes the current view.
— Exceptions: raises an Attribute Error if no view is active.
• LimitsPref()
— Associated menu item: View / Preferred Size.
— Operation (section 2-5.5.5, p. 2-23): resets the current view to the size it had before a Vie-
wIconize command (only if the last resizing command was ViewIconize).
• UpdateUndo()
— Associated menu item: Update / Undo.
— Operation (section 4-10.1, p. 4-56): deletes the last added representation.
CFView™ 7-19
Macro Language CFView™ Command Description
7-20 CFView™
CFView™ Command Description Macro Language
— Operation (section 2-5.2, p. 2-16): moves the camera target and the associated clipping
planes along the line of view. The new target position is obtained by multiplying the distance
between the camera and the view point by f. The clipping plane are moved by an equal dis-
tance.
• SetCamera(float p1, float p2, float p3, float t1, float t2, float t3, float v1, float v2, float v3,
float w, float h, float p1_old, float p2_old, float p3_old, float t1_old, float t2_old, float
t3_old, float v1_old, float v2_old, float v3_old, float w_old, float h_old)
— Associated menu item: dynamic viewing button (also see Figure 2.5.2-1).
— Operation (section 2-5.3, p. 2-18): sets the camera position and viewing parameters).
— Arguments:
— p1, p2, p3 are the coordinates of the camera position (the view point, see figure on p. 1-
16 of the manual).
— t1, t2, t3 are the coordinates of the target point.
— v1, v2, v3 are the coordinates of the vertical vector direction.
— w and h are respectively the width and height of the view.
CFView™ 7-21
Macro Language CFView™ Command Description
— Operation (section 3-5.4, p. 3-19): toggles or sets the visibility of the grid (mesh wire frame)
of surfaces. The b argument is interpreted as a boolean value: if b=0, the grid visibility is
turn off, otherwise it is turned on. If a name is provided, the visibility of the specified surface
is set, otherwise the visibility off all the active surfaces is set. There may be more than one
name passed as argument.
• GmtScale(float sx, float sy, float sz)
— Associated menu item: Geometry / Scale.
— Operation: sets the scale of the current view in x, y, and z directions to sx, sy and sz.
— Exceptions: Negative or zero scales will produce a ValueError.
• GmtRepetitionToggle(), GmtRepetitionSet(int b)
— Associated menu item: Geometry / Repetition on/off.
— Operation (section 3-5.13, p. 3-28): toggles or sets repetition on domains having at least one
active surface in the view. The argument b is interpreted as a boolean value: if b=0, the rep-
etition is disabled, otherwise it is enabled.
• repetitionType GetMeshRepetitionType(), repetitionType GetDomainRepetitionType(int
domId), repetitionType GetSurfaceRepetitionType(string name)
— Operation: returns the repetition description associated to the current project, to the specified
domain or to the specified surface. A domain is specified by its index, between 1 and the
number of domains. A surface is specified by its name. The returned value is a variable list
of parameters. The first parameter in the list indicates the repetition type:
— 0: no repetition. In that case the list does not include other parameters.
— 1: repetition by translation. The following parameters in the list are the 3 compo-
nents of the translation vector, followed by the number of repetition.
— 2: repetition by rotation. The following parameters indicate the rotation angle, then
the three components of the rotation axis direction and then the three components of
the point defining the rotation axis position.
— 3: repetition by mirroring. The following parameters are the three components of the
point defining the mirror position followed by the three components of the normal to
the mirror.
All components of vectors and positions are specified in Cartesian coordinates.
• SetDomainRepetitionType(int domId, repetitionType type)
— Operation (section 3-5.13, p. 3-28): sets the type of repetition for the specified domain (see
previous command for a description of the arguments).
— Exceptions: invalid domain index will produce a ValueError.
• GmtRepetitionNumber(int n)
— Associated menu item: Geometry / Repetition Number.
— Operation (section 3-5.13, p. 3-28): sets the number of repetitions on domains having at least
one active surface in the view.
— Exceptions: Negative or zero number will produce a ValueError.
• AddRprCellList, RprCellList, RemoveRprCellList(float sizeFactor, int domainIndex, int
cellListSize, int cellIndex1, ..., int cellIndexn)
— Associated menu item: Geometry/Cells
— Operation (section 3-6, p. 3-29): adds or removes cells representation; sizeFactor is the scal-
ing factor applied to the cell representation; cellListSize is the number of cells respectively:
added to the representation, represented, or removed from the representation, their indexes
are contained in the remaining parameters: cellindex1,...cellIndexn.
7-22 CFView™
CFView™ Command Description Macro Language
• ShowSelectedSurfacesNormal(string names)
— Associated menu item: Right-click on selected surface
— Operation: shows the normals on the surfaces defined by names
• ReverseSelectedSurfacesNormal (string name)
— Associated menu item: Right-click on selected surface
— Operation: reverses the normals on the surfaces defined by names
• RemoveSelectedSurfacesNormal(string name)
— Associated menu item: Right-click on selected surface
— Operation: removes the normals on the surfaces defined by names
CFView™ 7-23
Macro Language CFView™ Command Description
i3: J*max of the surface = Jmax if K constant surface & Kmax if I or J constant surface
i4: 0, 1, 2 respectively if I, J or K constant surface
i5: constant indice of the surface
• GetFluidType()
— Operation: returns the fluid type of the computation.
• ThermoTableCompute(string “TableName”, float arg1, float arg2)
— Operation: returns the value of a thermodynamic field according to the table name, arg1 and
arg2 are two real numbers for the two thermodynamic field input values.
— Examples:
. If the table is the 1D saturation table: Table name=PSA, arg1 is the pressure (real number)
and arg2 is the option (integer) that controls the returned value:
1=D liquid; 2=D vapor; 3=H liquid; 4=H vapor; 5=S liquid; 6=S vapor; 7=E liquid;
8=E vapor
rl=ThermoTableCompute("PSA",1e+5,1)
rl is D liquid at 100000 Pa.
. If the the table is a 2D table:
s = ThermoTableCompute("SHP",2.73e+6,187000)
s is the entropy for the enthalpy= 2.73e+6 an pressure = 187000 Pa
Warning: The RHS table does not return D but the ratio P/D
7-24 CFView™
CFView™ Command Description Macro Language
Please note that, along with the version 3.8-22 of CFView™, the automatic naming of
cut planes has changed. Macros scripts including the names created automatically in ear-
lier versions may not work with newer version. The macro scripts where the cut planes
names are handled by means of Python variables do not have this limitation.
• CutSurfaceSave (float p1_x, float p1_y, float p1_z, float n1_x, float n1_y, float n1_z, int
coord1, float p2_x, float p2_y, float p2_z, float n2_x, float n2_y, float n2_z, int coord2, string
name)
— Associated item: Geometry / Split Surface...
— Operation: extracts the portions of active surfaces delimited by two planes. This macro is
based on the macro CutPlaneSave (see description of the parameters in section 7-5.13)
• string SurfaceIJKSave(2, 8, int domainIndex, int surfaceType, int surfaceValue, int Is1, int
Js1, int Is2, int Js2, int displayMode)
— Associated item: none.
— Operation (section 3-4.1, p. 3-11): creates, saves and returns the name of a mesh surface for
one domain. The two first parameters should be present with their prescribed value. The
parameter ‘domainIndex’ specifies the domain number (first domain is 0). The parameter
‘surfaceType’ indicates the surface type: I (index=0), J (index=1) or K (index=2) constant.
The parameter indexValue is the index of the surface within its family. Is1, Js1, Is2 and Js2
CFView™ 7-25
Macro Language CFView™ Command Description
indicate the node ranges for the surface as indicated in the table here below. The parameter
displayMode is not used. The values are in the range 0, “number of points”-1, where
“number of points” is the number of points in the respective direction.
7-26 CFView™
CFView™ Command Description Macro Language
CFView™ 7-27
Macro Language CFView™ Command Description
— Operation (section 3-3, p. 3-3): selects the surfaces having names name1, name2, etc from
the project into the active view.
• SelectFromProjectRegExp(string regexp)
— Operation: activates the surfaces from the project having names matching the regular excep-
tions regexp (for example empty string (‘’) will match all and simply typing ‘solid’ will
match all solids etc...).
• SelectTypeFromProject(string type), UnselectTypeFromView(string type)
— Operation: activates or inactivates all the surfaces which have a boundary condition type
identic to the specified one (only the first 3 letters are considered, i.e. type may be sol, con,
ext, inl, out, rot, mir, per, sin or sng).
• DeleteFromProject(string name1, string name2, ...)
— Operation (section 3-3, p. 3-3): deletes the surfaces having names name1, name2, ..., from
the project (and also from the active view). DeleteFromProject removes all representations
on the indicated surfaces in all the views of the project AND deletes the surface(s) from the
project ONLY IF the surface was created during the project session. The names name1,
name2,..., can also be the name of a group of surfaces: DeleteFromProject deletes the
groups but not the surfaces inside.
• DeleteFromProjectRegExp(string regexp)
— Operation: deletes the surfaces from the project having names matching the regular excep-
tions regexp (for example ‘*’ will match all, ‘*solid*’ will match all solids etc...). Delete-
FromProject removes all representations on the indicated surfaces in all the views of the
project AND deletes the surface(s) from the project ONLY IF the surface was created during
the project session.
— (e.g. a cutting plane).
• SurfaceActivate(float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
— Associated menu item: Geometry / Activate Surface ().
— Operation (section 3-3.3, p. 3-9): toggles the selection status of the surface intersected by the
line defined by the points (p1x,p1y,p1z) and (p2x,p2y,p2z). If more than one surface is inter-
sected, the closest one to the camera is selected (section 2-5.2, p. 2-16).
7-28 CFView™
CFView™ Command Description Macro Language
CFView™ 7-29
Macro Language CFView™ Command Description
7-30 CFView™
CFView™ Command Description Macro Language
CFView™ 7-31
Macro Language CFView™ Command Description
7-32 CFView™
CFView™ Command Description Macro Language
The returned value depends on the grid dimensionality and on the type of the active quantity. If
the active quantity is a scalar, the returned type is a float. If the active quantity is a vector, the
returned type is [float, float, float] in 3D grids and [float, float] in 2D grids.
— Error: raises a ValueError if no quantity is selected or if the point falls outside of the meshed
domain.
• float / [float, float] / [float, float. float] ProbeTIJK(int domId, int i, int j, int k):
Operation: for unsteady projects with N time steps reconstructed from a project with harmonics,
this function returns an array of N+1 values of the active quantity. The first value is the time
step, the rest are the values in time of the active quantity at the grid point of the domain domId
and whose indices are provided (domId=1 correspond to the first domain). The required
number of indices depends on the grid type:
— for 3D structured grids i, j and k are required (values between 1 and the maximum number of
grid nodes should be provided);
— for 2D structured grids, i and j are required;
— The returned value depends on the grid dimensionality and on the type of the active quantity.
If the active quantity is a scalar, the returned type is a float. If the active quantity is a vector,
the returned type is [float, float, float] in 3D grids and [float, float] in 2D grids.
• QuantitySetScalarIJK(string quantity_name, int domain_nb, float value, float i, float j,
float k)
— Operation: this will set the value of scalar field with name quantity_name at cell index (i, j,
k) in domain domain_nb to value.
• QuantitySetVectorIJK(string quantity_name, int domain_nb, float val_X, float val_Y, float
val_Z, float i, float j, float k)
— Operation: this will set the value of vector field with name quantity_name at cell index (i, j,
k) in domain domain_nb to (val_X, val_Y, val_Z).
• [float, float] QuantityRangeDomain(int domId, float Imin, float Imax, float Jmin, float
Jmax, float Kmin, float Kmax)
Operation: this function returns the minimum and maximum values of the active quantity in the
specified domain range.
The domain range is specified by the arguments:
— domId is the domain number (first domain has the number 1).
— Imin and Imax specify the normalised node range in the I direction. Imin and Imax must
have a value between 0 and 1 (0 meaning the first node index and 1 meaning the last one).
These values are denormalized automatically.
— Jmin and Jmax specify the normalised range in the J direction;
— Kmin and Kmax specify the normalized range in the K direction.
If the quantity is a vector, the returned range is the range of the amplitude.
— Example, this command can be used to obtain the quantity range at a mid-range grid surface
(mid range in the I direction)
• float QuantityStdDevDomain(int domId, float Imin, float Imax, float Jmin, float Jmax,
float Kmin, float Kmax)
— Operation: this function returns the standard deviation of the active quantity over a domain
range. The domain range is specified as explained here above for the QuantityRangeDo-
main command.
• [float, float] QuantityRangeActiveSurfaces()
CFView™ 7-33
Macro Language CFView™ Command Description
— Operation: this function returns the minimum and maximum values of the active quantity on
the active surfaces. If the active quantity is a vector, the standard deviation is the standard
deviation of the vector magnitude.
• float QuantityStdDevActiveSurfaces()
— Operation: this function returns the standard deviation of the active quantity on the active
surfaces.If the active quantity is a vector, the standard deviation is the standard deviation of
the vector magnitude.
• SaveActiveSurfaces(string fileName)
— Associated menu item: Representation / Export Active Surfaces...
— Operation: this function exports the values of the active quantity on the selected surfaces.
The output is stored in the file called fileName. The first line represents the name of the sur-
face, the second line contains the number of coordinates (X,Y,Z), the second number is there
for backward compatibility and shows the number of colums for the quantity (1 for a scalar
and vector), then the number of points is stored and the last information is the name of the
quantity between two “|”.
7-34 CFView™
CFView™ Command Description Macro Language
CFView™ 7-35
Macro Language CFView™ Command Description
— Operation: toggles the lighting status of the points, edges or faces of the current color con-
tour representations on the active surfaces.
• DeleteContour()
— Associated menu item: Update / Delete / Color Contour.
— Operation: deletes the color contour representations on the active surfaces.
7-5.19.3 Isolines
• SclIsolinePoint(float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
— Associated menu item: Representation / Isolines / Local Isoline.
— Operation (section 4-3.2.1, p. 4-16): draws the isolines containing the intersection between
the line defined by the points (p1x,p1y,p1z) and (p2x,p2y,p2z) and each of the active sur-
faces.
• SclIsolineValue(float value)
— Associated menu item: Representation / Isolines / Local Isoline.
— Operation (section 4-3.2.1, p. 4-16): draws the ‘value’ isoline on each of the active surfaces.
• SclIsolineRange(float min, float max, float inc)
— Associated menu item: Representation / Isolines / Isolines...
— Operation (section 4-3.2.2, p. 4-17): draws a set of isolines starting from the value min to the
value max with increment inc.
• SclIsolineMulti(2, 4, float min, float max, float inc, int color)
— Associated menu item: Representation / Isolines / Isolines...
— Operation (section 4-3.2.2, p. 4-17): draws a set of isolines starting from the value min up to
the value max with increment inc. The isolines are colored according to their value (Color
=0) or not (color=1).
• SclIsolineColorLock(int c)
— Associated menu items: Representation/ Isoline / Color Contour and Color Uniform.
— Operation: sets the coloring attribute to color contour (c=0) or to color uniform (c=1).
• DeleteIsoline()
— Associated menu item: Update / Delete / Isoline.
— Operation: deletes the isolines on the active surfaces.
7-5.19.4 Iso-Surfaces
• SclIsoSurfaceValue(float value)
— Associated menu item: Representation / Iso-Surface.
— Operation (section 4-3.5, p. 4-27): builds an iso-surface based on a field value.
• SclIsoSurfacePoint(float p1x, float p1y, float p1z, float p2x, float p2y, float p2z)
— Associated menu item: Representation / Iso-Surface.
— Operation (section 4-3.5, p. 4-27): builds iso-surfaces containing the intersection of the line
defined by the points (p1x,p1y,p1z) and (p2x,p2y,p2z) and the active surfaces.
• SclIsoSurfaceSave([float value])
— Associated menu item: Representation / Iso-Surface Save.
7-36 CFView™
CFView™ Command Description Macro Language
— Operation (section 3-4.5, p. 3-17): saves an iso-surface and includes it into the project and
current view surface sets. If a value is provided, the iso-surface corresponding to that value
is computed and saved, otherwise, the iso-surface currently represented is saved. The macro
also resturns the name of the created iso-surface.
— Exceptions: if no scalar quantity or if no current iso-surface.
• DeleteIsoSurface()
— Associated menu item: Update / Delete / Iso-Surface.
— Operation: deletes the current iso-surface.
CFView™ 7-37
Macro Language CFView™ Command Description
— Operation (section 4-3.6.4, p. 4-29): adds to the active quantity plot view (creates it if not
existing) a plot curve along the grid line i from node number min to node number max
(index = 0 or 1 for a line along surface index I or J, respectively). The two first parameters
must be present with their prescribed values (2 and 4).The function returns the name of the
cartesian plot view in which the curve is inserted.
• string SclPlotBoundarySolid()
— Associated menu item: Representation / Cartesian Plot / Along Solid Boundary.
— Operation (section 4-3.6.2, p. 4-28): adds to the active quantity plot view (creates it if not
existing) a plot of the active quantity along active solid surfaces boundaries.The function
returns the name of the cartesian plot view in which the curve is inserted.
• string SclPlotBoundary()
— Associated menu item: Representation / Cartesian Plot / Along Boundary.
— Operation (section 4-3.6.1, p. 4-28): adds to the active quantity plot view (creates it if not
existing) a plot of the active quantity along active surfaces boundaries.The function returns
the name of the cartesian plot view in which the curve is inserted.
• SelectPlotCurves(string name)
— Operation: selects the specified plot curves.
• DeletePlotCurves(string name)
— Operation: deletes the specified plot curves.
7-38 CFView™
CFView™ Command Description Macro Language
— This macro is here for backward compatibility. It is only recorded from older CFView™ ver-
sion, and should not be used anymore. It has been replaced by 5 new macros:
StreamLineRepresentation, StreamLineAdvancedParameters, StreamLineComputa-
tionParameters, StreamLineCurveType, StreamLineSurfaceType).
• StreamLineCurveType(CurveType c)
— Operation: sets the streamline curve type for the active streamline (only used when the
"Line" representation is chosen).
— CurveType: standard curve settings (see section 7-5.29).
• StreamLineSurfaceType(SurfaceType m)
— Operation: sets the streamline surface property for the active streamlines (only used when
the "Ribbon"/"Tube" representations are chosen).
— SurfaceType: standard material settings (see section 7-5.29).
• StreamLineRepresentation(int representationType, int colorType, string colorQuantity,
float r0, float initialDirectionX, float initialDirectionY, float initialDirectionZ, int itHasVar-
iableSize, int itHasVariableTwist, float twistScaleFactor, float sizeScaleFactor, int TubeV-
erticesCount)
— Operation: sets the streamline representation parameters for the active selected quantity
— representationType: 0 = line, 1 = ribbon, 2 = tube (mandatory). Default is 0.
— colorType: 0 = uniform, 1 = custom quantity, 2 = velocity color (mandatory). Default is 0.
— colorQuantity: name of the selected scalar quantity.
— ro: size of the tube/ribbon. Default is 1.
— initialDirectionX, initialDirectionY, initialDirectionZ: direction of the first normal of the
ribbon/tube. Default is 0,1,0.
— itHasVariableSize: 1 = variable size, 0 = uniform size. Default is 0.
— itHasVariableTwist: 1 = variable twist, 0 = uniform twist. Default is 0.
— sizeScaleFactor: multiplication factor to emphasis size changes. Real positive values are
allowed. Default is 1.
— twistScaleFactor: multiplication factor to emphasis twist changes. All values are allowed.
Default is 1.
— tubeVerticesCount: the number of vertices of the polygonal basis of a tube. All integer
value >= 3 are allowed. Default is 8.
• StreamLineAdvancedParameters(bool itHasCoincidentPointRemoval, bool itHasLapla-
cianFilter, bool itHasTwistSubdivision, float minimumDistance, int laplacianFilterPass-
Count, int laplacianFilterKernelSize, float twistSubdivisionMinimumAngle, int
twistSubdivisionMaximumPoints)
— itHasCoincidentPointRemoval: 1 = coincident point removal, 0 = no coincident point
removal. Default is 1.
— itHasLaplacianFilter: 1 = laplacian filter, 0=no laplacian filter. Default is 0.
— itHasTwistSubdivision: 1 = twist subdivision, 0 = no twist subdivision. Default is 0,
— minimumDistance: coincident point removal distance. Default is 0.01.
— laplacianFilterPassCount: number of passes of laplacian filtering. Default is 1. (only used
when itHasLaplacianFilter = 1)
— laplacianFilterKernelSize: size of the laplacian filter kernel. Default is 3. (only used when
itHasLaplacianFilter = 1)
CFView™ 7-39
Macro Language CFView™ Command Description
7-40 CFView™
CFView™ Command Description Macro Language
— Operation: updates the streamline surface property for the active streamlines (only used
when the "Ribbon"/"Tube" representations are chosen).
— SurfaceType: standard material settings (see section 7-5.29).
CFView™ 7-41
Macro Language CFView™ Command Description
7-42 CFView™
CFView™ Command Description Macro Language
• DeleteVectors()
— Associated menu item: Update / Delete / Vectors
— Operation: deletes the vector representations on the active surfaces
• DeleteLocalVectors([string name])
— Operation: deletes the local vectors, the vectors on section and the vectors on grid lines.
Without argument, the command deletes the currently selected vectors. With an argument,
the command deletes the vector representation having the specified name.
• DeleteGridVectors([string name])
— Operation: deletes the vectors on grid nodes. Without argument, the command deletes the
currently selected vectors. With an argument, the command deletes the vector representation
having the specified name.
CFView™ 7-43
Macro Language CFView™ Command Description
7-44 CFView™
CFView™ Command Description Macro Language
• float SclIntegral()
— Associated menu item: Representation / Surface Integral / Scalar Integral
— Operation: returns the scalar surface integral of the active quantity on the active sur-
∫
faces ( q ⋅ dS ) .
S
— Exceptions: having either no active quantity or a vector quantity as active quantity will trig-
ger a Type Error.
• float SclAverage()
— Associated menu item: Representation / Surface Integral / Scalar Average
— Operation: returns the scalar average value of the current scalar quantity. It is equivalent to
the ratio of the results returned by the commands SclIntegral() and GmtArea() (see here
above for the mathematical definitions).
• [float, float, float] SclForce()
— Associated menu item: Representation / Surface Integral / Vector Integral
— Operation: returns the vectorial surface integral of the active quantity on the active surfaces
∫
in a similar way as the force on a surface is obtained from the static pressure ( q ⋅ dS ) .
S
— Exceptions: Having either no active quantity or a vector quantity as active quantity will trig-
ger a Type Error.
- for cutting planes, the normal is provided as part of the cut definition;
- for structured surfaces, it depends on the surface family. The following table summa-
rizes the convention used.
∫
obtained from the static pressure (q): ( q ⋅ ( r × dS ) ) . Note that the normal vector direction
S
is taken as explained in the SclForce() command.
— Exceptions: No scalar quantity selected.
• float SclBoundaryForce()
— Operation: similar to sclForce, but active surfaces are restricted to boundaries and the local
normal to the surface is set to point outside of the domain.
— Exceptions: Having either no active quantity or a vector quantity as active quantity will trig-
ger a Type Error.
CFView™ 7-45
Macro Language CFView™ Command Description
∫
( v • dS ).
S
— Exceptions: having either no active quantity or a scalar quantity as active quantity will trig-
ger a Type Error.
• float SclWeightedIntegral(string weight)
— Associated menu item: (QAP) Representations / Integrals / Weighted Integral
— Operation: returns the computed weighted (by scalar quantity named “weight”) surface inte-
gral of the active quantity on the active surfaces.
— Exceptions: having either no active quantity or a vector quantity as active quantity will trig-
ger a Type Error. Having no weight will consider a zero weight and will return zero.
• float VectorWeightedFlux(string weight)
— Associated menu item: Representations / Surface Integral / Weighted Flux / Qnt
— Operation: returns the weighted (by scalar quantity named “weight”) surface flux of the
active quantity on the active surfaces.
— Exceptions: having either no active quantity or a scalar quantity as active quantity will trig-
ger an Type Error. Having no weight will consider a zero weight and will return zero.
• float WeightedIntegral()
— Operation: computes the following ratio:
7-46 CFView™
CFView™ Command Description Macro Language
the numerator is the integral over the active surfaces of the active quantity multiplied by the
current weight equation (see SetProjectWeightEquation command below) and the denom-
inator is the integral over the active surfaces of the current weight equation.
— Exceptions: having either no active quantity will trigger an Type Error.
• SetProjectWeightEquation(string equation)
— Operation: sets the current weight equation used in the WeightedIntegral command.
• float VecIntegral(string fieldName)
— Associated menu item: (QAP) Representations / Integrals / Vector Integral
— Operation: integrates the active vector field fieldName on all active surfaces and prints the
three components of the resulting vector.
• float Massflow(string name)
— Associated menu item: (QAP) Representations / Integrals / Massflow
— Operation: returns the massflow value for the selected surfaces.
— Exceptions: an error is raised if the quantities Wxyz, Vxyz or Density are not present in the
list of quantities.
∫ eq × dl .
c
• SetProjectEquation(int mode, string name, string definition [,string definition2, string
definition3])
— Associated menu item: Representation / Curve Integral.
CFView™ 7-47
Macro Language CFView™ Command Description
— Operation: defines a new equation for the integration along curves. The parameter ‘mode’
specifies the new equation type: 0 for a scalar, 1 for a vector with a definition expressed as a
combination of vectorial quantities or 2 for a vector with a definition specified component
by component. If ‘mode’ has a value of 2, the parameters ‘definiton2’ and ‘definition3’ must
be present, otherwise they can be omitted.
7-48 CFView™
CFView™ Command Description Macro Language
— Operations: performs a zoom operation on the axes range in such a way that the view coordi-
nates xmin, xmax, ymin and ymax correspond to the visible area (i.e. axis range).
• SetHReverse(), SetVReverse(), UnsetHReverse(), UnsetVReverse()
— Operations: sets the horizontal or vertical axis in decreasing scale or set in increasing scale.
• SetHLogarithmic(), SetVLogarithmic(), SetHLinear(), SetVLinear()
— Operation:sets the horizontal or vertical axis in logarithmic or linear scale.
• PlotCurveUndo()
— Associated menu item: Update / Plot / Curve Undo
— Operation: removes last added curve.
• PlotCurveType(CurveType c)
— Associated menu item: Update / Curve Type Editor...
— Operation: sets the last added curve type to c.
• PlotCurveOutput(string fileName)
— Associated menu item: Update / Plot / Curve Output...
— Operation: writes the plot curves data in ASCII format in the file with specified name.
• ActivePlotCurveOutput(string fileName, string curveName)
— Operation: writes the currently specified plot curves data in ASCII format in the file with
specified name and sets default type for curves associated to cartesian plots.
— Associated menu item: 'Export to file'. When right-clicking on the curve in the Cartesian plot
window.
• NumOfHMajorTicks(int n), NumOfVMajorTicks(int n)
— Operation: sets the number of labelled graduations on the horizontal or vertical axis.
• NumOfHMinorTicks(int n), NumOfVMinorTicks(int n)
— Operation: sets the number of intermediate graduations on the horizontal or vertical axis.
• SetHTicksDistance(float d), SetVTicksDistance(float d)
— Operation: sets the margin size around the graduation numbers on the horizontal or vertical
axis.
• SetHTicksTextType(TextType type), SetVTicksTextType(TextType type)
— Operation: sets the text type for the graduation numbers on the horizontal or vertical axis.
• HAxisLabelText(string text), VAxisLabelText(string text)
— Operation: sets the horizontal or vertical axis label text.
• HAxisLabelFontType(int type, float size), VAxisLabelFontType(int type, float size)
— Operation: set the font type and size for the horizontal or vertical axis label. The following
font types are available: roman (0), sans serif (1), typewriter (2), stroked (3), system default
(4), newfield (5), enfield (6), brooktondale (7), kuma (8), arial (9) or times (10).
• HAxisLabelLargerFont(), HAxisLabelSmallerFont(), VAxisLabelLargerFont(), VAxisLa-
belSmallerFont()
— Operation: increases or decreases the text size of the horizontal or vertical axis label.
• HAxisLabelFontColor(Color c), VAxisLabelFontColor(Color c)
— Operation: sets the color for the horizontal or vertical axis label.
• HAxisLabelPosition(int p), VAxisLabelPosition(int p)
CFView™ 7-49
Macro Language CFView™ Command Description
— Operation: sets the position of the horizontal or vertical axis label. The following positions
are available: at the axis end (0), near the axis origin (2) or in the middle of the axis (4).
• HAxisLabelDistance(float d), VAxisLabelDistance(float d)
— Operation: sets the width of the internal margin around the horizontal or vertical axis label.
• LimitsCurveArea(float xmin, float xmax, float ymin, float ymax)
— Operation: sets the limits of the curve area within a Cartesian plot view.
• AxisFit()
— Operation: computes the curve area size in such a way that it takes a maximum space, with-
out having the axis number s and labels cut by the view border.
• ShowHorizontalGridLines(), ShowVerticalGridLines(), HideHorizontalGridLines(), Hide-
VerticalGridLines()
— Operation: sets visible or hidden the horizontal or vertical grid lines.
• HorizontalGridLinesType(LineType type), VerticalGridLinesType(LineType type)
— Operation: sets the line type attributes for the horizontal or vertical grid lines.
• PlotType(int fitOnInsert, int logX, int varX, int logY, int varY, float minX, float maxX, float
minY, float maxY)
— Associated menu item: Update / Plot / Axis Editor...
— Operation: sets some parameters of the current cartesian plot: automatic scaling at curve
insertion (fitOnInsert=1) or not (fitOnInsert=0), logarithmic scale in X or Y direction (logx
or logY =1) or not (logX or logY =0) and variable associated to the axis: varX or varY = 0
2 2
(X), 1 (Y), 2 (Z), 3 (arc length), 4 (active quantity), 5 (radius = X + Y ), 6 (theta =
y
atan ⎛ --⎞ )
⎝ x⎠
7-50 CFView™
CFView™ Command Description Macro Language
— Operation: sets the ticks labels parameters for the horizontal or vertical axis: dist is the dis-
tance from the axis, position may be down / left (position =0) or up / right (position =1), the
text type is set to ‘t’ and the double format to ‘f’.
• PlotHGridLines(LineType majorLines, LineType minorLines), PlotVGridLines(LineType
l, LineType minorLines)
— Associated menu item: Update / Plot / Axis Editor...
— Operation: sets the horizontal or vertical grid major and minor lines type.
• GetViewCurveList()
— Operation: returns the list of curves names of the created Cartesian Plot.
• SetPlotSectionLimited()
— Associated menu item: Right-click on the selected curves / Limited section
— Operation: restricts the plot between the two selected points instead of a complete line on
whole domain passing through the two selected points.
• SetPlotSectionUnlimited()
— Associated menu item: Right-click on the selected curves / Unlimited section
— Operation: removes the restriction applied by the macro SetPlotSectionLimited. The curve
is a complete line on whole domain passing through the two selected points (default behav-
ior)
• DeletePlot()
— Associated menu item: Update / Delete / Cartesian Plot.
— Operation: deletes the current plot view or the Cartesian plot view associated to the active
quantity and all associated curves.
CFView™ 7-51
Macro Language CFView™ Command Description
— Operation (section 4-7.3, p. 4-51): sets the color map to black and white, greyscale or
COLOR ramp.
• RprRangeIn(float qmin, float qmax)
— Associated menu item: Representation / Range / Range Set.
— Operation (section 4-7.2, p. 4-50): sets the range of the active quantity to (qmin, qmax).
• RprRangeActiveSurfaces()
— Associated menu item: Representation / Range / Range Active Surfaces.
— Operation (section 4-7.2, p. 4-50): sets the range of the active quantity to its range on the
active surfaces.
• RprRangeAll()
— Associated menu item: Representation / Range / Range Default.
— Operation (section 4-7.2, p. 4-50): sets the range of the active quantity to the global range.
• ColormapNumOfBigTicks(int n)
— Operation (section 4-7.3, p. 4-51): sets the number of graduation marks on the axis. This
number is rounded automatically in such a way that rounded values are displayed.
• ColormapTicksNumberDistance(float d)
— Operation (section 4-7.3, p. 4-51): sets the distance between the graduated numbers and the
axis.
• ColormapTicksNumberTextType(TextType type)
— Operation (section 4-7.3, p. 4-51): sets the text type attributes for the graduation numbers
(see section 7-5.29, p. 7-55 for a description of TextType arguments).
• ColormapLabelText(string t)
— Operation (section 4-7.3, p. 4-51): sets the label text of the colormap.
• ColormapLabelTextSize(int s)
— Operation (section 4-7.3, p. 4-51): sets the size of the colormap label.
• ColormapLabelTextType(TextType type)
— Operation (section 4-7.3, p. 4-51): sets the parameters of the colormap label text (see section
7-5.29, p. 7-55 for a description of the TextType argument).
7-52 CFView™
CFView™ Command Description Macro Language
— Operation (section 4-9.2, p. 4-55): sets the font of the text with the specified name. The valid
font names are Arial, Times, Roman, Sansserif, TypeWriter, Stroked, NewField, Enfield,
Brooktondale and Kuma.
• SetTextFontSize(string name, int size)
— Operation (section 4-9.2, p. 4-55): sets the font size of the text with the specified name.
• SetTextColor(string name, float h, float s, float v)
— Operation (section 4-9.2, p. 4-55): sets the color of the text with the specified name. The
color is provided in its hue, saturation and value decomposition (section 7-5.29, p. 7-55 for
further reference).
• SetTextAlignement(string name, int h, int v)
— Operation (section 4-9.2, p. 4-55): sets the horizontal and vertical alignment of the text with
specified name. The alignment is the position of the text with respect to the position point.
The h argument is interpreted as follows: h=-1 for a text placed at the right of the position
point, h=1 for a text placed at the left of the position point, h=0 for a text centred around the
point position. The v argument is interpreted as follows: v=-1 for a text below the position
point, v=1 for a text above the position point and v=0 for a text centred vertically on the
position point.
• SetTextLineAlignement(string name, int l)
— Operation (section 4-9.2, p. 4-55): sets the text justification. This has only a sense for multi-
ple lines text. The parameter l is interpreted as follows: l=0 for centred lines, l=1 for lines
aligned on their left side and l=2 for lines aligned on their right side.
• SetTextLineSpacing(string name, int s)
— Operation (section 4-9.2, p. 4-55): sets the text line spacing (used only for multi-line texts).
A value s=0 is for normal line spacing, s=1 for one and a half spacing and s=2 is for double
line spacing.
• SetTextFrameVisibility(string name, int v)
— Operation (section 4-9.2, p. 4-55): sets visible (v=1) or hides (v=0) of the enclosing rectan-
gular box around the specified text.
• SetTextPosition(string name, float x, float y)
— Operation: sets the text position within the view: x=-1 is the left side, x=1 is the right side,
y=-1 is the bottom side and y=1 is the upper side.
• DeleteText(string name)
— Operation (section 4-9.3, p. 4-56): deletes the text having the specified name.
• DeleteTextAll(), DeleteTextLast()
— Associated menu items: Update / Delete / Text Last and Text All.
— Operation (section 4-9.3, p. 4-56): deletes all or last inserted decoration text in the active
view.
The following commands are maintained for backward compatibility. However, their use is strongly
discouraged as it does not cover all the functionality.
• TextActivate(string name), TextDeActivate()
— Associated menu item: Text selection / de-selection by clicking with the left mouse button
— Operation: selects or de-selects text item with reference name given by ‘name’.
— Exceptions: will raise an Name Error if the name is unknown.
• TextModify(string text, float px, float py, float -, TextType t)
CFView™ 7-53
Macro Language CFView™ Command Description
— Associated menu items: text updates through Text Editor dialogue box.
— Operation (section 4-9.2, p. 4-55): sets the currently selected text attributes: text is its con-
tent, (px, py) its position (see the InsertText() command) and its text type is set to ‘t’.
— Exceptions: will raise an Attribute Error if no text is currently selected.
7-54 CFView™
CFView™ Command Description Macro Language
• SetGradAxis1Perpendicular(), SetGradAxis2Perpendicular(),
SetGradAxis3Perpendicular()
— Operation: set the graduation numbers orientation perpendicular to the axis line.
• SetGradAxisTicksSize(float s)
— Operation: sets the size of the graduation ticks (as a percentage of the axis length). The
default value is 0.01.
• SetGradAxisNumbersSize(int s), SetGradAxisNumbersFont(string fontName), Set-
GradAxisNumbersColor(Color c)
— Operation: set the text size, text font or text color of the graduation numbers. The valid font
names are Arial, Times, Roman, Sans-serif, TypeWriter, Stroked, NewField, Enfield, Brook-
tondale and Kuma. See section 7-5.29, p. 7-55 for the description of color arguments.
• SetGradAxis1LabelPosition(int p), SetGradAxis2LabelPosition(int p),
SetGradAxis3LabelPosition(int p)
— Operation: set the position of the axis label. The value of p may be 1 for placing the label at
the top end of the axis or 0 for placing the label at mid-range.
• SetGradAxisLabelsSize(int s), SetGradAxisLabelsFont(string fontName), SetGradAxisLa-
belsColor(Color c)
— Operation: set the text size, text font or text color of the axes labels. The valid font names are
Arial, Times, Roman, Sans-serif, TypeWriter, Stroked, NewField, Enfield, Brooktondale and
Kuma. See section 7-5.29, p. 7-55 for the description of color arguments.
• SetGradAxisLineType(LineType type)
— Operation: set the line type attributes used to draw the axes lines and the graduation ticks.
See section 7-5.29, p. 7-55 for the description of LineType arguments.
CFView™ 7-55
Macro Language Utilities for Handling Curves
very long dashes and short dashes alterning (7) and very long dash and double short dashes altern-
ing(8),
int endCap (value between 0 and 2): “butt” line end-cap (0), “square” line end-cap (1) and “round”
line end-cap (2),
int lineJoin (with value between 0 and 2): “mitre” line join (0), “bevel” line join (1), “round” line
join (2),
int visibility: with value 0 (not visible) or 1 (visible).
• MarkerType: Color c, int light, float size, int symbol, int filled, int visibility (section 4-10.4.2,
p. 4-60)
int light: with ligthing (1) or without lighting (0),
int symbol (with value between 0 and 10): star (0), times (1), plus (2), dot (3), box (4), circle (5),
diamond (6), up triangle (7), down triangle (8), left triangle (9), right triangle (10).
int filled filled symbol (1) or not (0)
• CurveType: LineType l, MarkerType m
Curve Type description is a juxtaposition of a line type description and a marker type description
• DoubleFormat: int sign, int exponent, int accuracy (section 4-10.5, p. 4-61) int sign: number
are signed (1) or not (0),
int exponent: scientific notation is used when necessary (0), always (1) or never (2),
int accuracy: number of significant digits.
7-56 CFView™
Utilities for Handling Curves Macro Language
CFView™ 7-57
Macro Language Utilities for Handling Curves
7-58 CFView™
List of Shortcut Keys
The following table is listing all the keyboard shortcuts that are defined in CFView™.
Project Handling
Views Handling
CFView™ A-1
List of Shortcut Keys
Camera Position
Text
A-2 CFView™
List of Shortcut Keys
CFView™ A-3
List of Shortcut Keys
A-4 CFView™
Overview Input File Format
B-1 Overview
This chapter describes the file formats supported by CFView™. Three file formats are supported:
• The native file format
• The FINE™/Turbo project file
• The CGNS file format (support is partial)
This chapter is made of three sections corresponding to these formats. For the native format, the
section is divided in 5 parts:
• Create identification file,
• Create boundary condition file,
• Create unstructured cell connectivity (for unstructured meshes only),
• Create geometry and quantity files,
• CFView™ tools (please contact "[email protected]" before using the provided tools).
The FINE™/Turbo file format is not described in details as this file is internal to the FINE™/Turbo
package. Finally, it is described how to import CGNS data.
It is recommended to attentively read the "General Concepts" section which introduces the input
files and outlines their different types. The remaining sections provide the way to create these files.
CFView™ B-1
Input File Format Native File Format
B-2 CFView™
Native File Format Input File Format
•Format:binary or ASCII
•Number:- one by project
8. ASCII validation data files
These files are used for interactive loading of validation data.
The data type concepts and the generation of the input data files are explained in the following sec-
tions.
CFView™ accepts structured and unstructured meshes. The CFView™ input file sys-
tem for unstructured meshes is very similar to the structured meshes. There are some dif-
ferences in the Identification file (see "Create Identification File" section) but the main
difference is the existence of the Topology & Boundary Condition file.
For unstructured meshes, the differences with the structured meshes lie in the Mesh
and Domain identification parts. See these parts for more details.
File names must be written with absolute paths. CFView™ check firstly this absolute
path, if the expected file is not there, CFView™ check secondly in the directory where
the .cfv is located and if the expected file is not there, CFView™ check thirdly in the
directory defined by the relative path "../_mesh". If the expected file is located in none of
these three locations, CFView™ will not find it.
CFView™ B-3
Input File Format Native File Format
While working with CFView™, a specific command allows to display this project identification
into the graphic area. An example of a project identification is:
EXTERNAL FLOW - NUMECA
EULER EQUATIONS
a) General Specifications
These are:
1. The dimension: - 2D
- 3D
B-4 CFView™
Native File Format Input File Format
The mirror example, with the Y plane specified as mirror plane has the following input:
3D STRUCTURED CARTESIAN MIRROR 0. 0. 0. 0. 1. 0.
The repetition of the geometry when using ROTATION type is only working with 3D
projects.
|velocity| |vorticity|
|surface stress|
A mesh geometry without surface data can also be considered. In this case the number
of quantities are set to zero and the lines containing the quantity names are not present.
CFView™ B-5
Input File Format Native File Format
60 70 50
extflow.d1.g
extflow.d1.bc
extflow.d1.s.1
extflow.d1.s.2
extflow.d1.s.3
extflow.d1.v.1
extflow.d1.v.2
1 2 extflow.d1.sd.s.1
extflow.d1.sd.v.1
40 70 50
extflow.d2.g
extflow.d2.bc
extflow.d2.s.1
extflow.d2.s.2
extflow.d2.s.3
B-6 CFView™
Native File Format Input File Format
extflow.d2.v.1
extflow.d2.v.2
2 1 extflow.d2.sd.s.1
extflow.d2.sd.v.1
An input file without surface data can also be considered. In this case the number of
surface data is set to zero and the lines containing the field quantity names and the file
names are not present.
|cross-section|
|static pressure|
|temperature|
extflow.vld.g
extflow.vld.s.1
extflow.vld.s.2
An input file without validation data can also be considered. In this case the number of
validation data is set to zero and the lines containing the field quantity names and the file
names are not present.
CFView™ B-7
Input File Format Native File Format
|convergence history|
extflow.pld.g
extflow.pld.s.1
extflow.pld.s.2
An input file without plot data can also be considered. In this case the number of plot
data is set to zero and the lines containing the field quantity names and the file names are
not present.
B-8 CFView™
Native File Format Input File Format
J
I
In general, the computation of a mesh point is based on its projection in the ZR plane. The s and m
coordinates are interpolated from the neighbouring support mesh points. Additionally s and m coor-
dinates are normalised.
The geometry file format for a support mesh with 17 nodes in the I direction and 11 in the J direc-
tions is presented in Figure B2.2-1.
The use of this functionality is discouraged. The interactive specification of hub and
shroud surfaces is a more flexible way to create blade to blade views.
where the "..." stands for the list of the (Z,R) coordinates ordered as list of curves in the I direction
EULER EQUATIONS
CFView™ B-9
Input File Format Native File Format
|velocity| |vorticity|
|surface stress|
60 70 50
domain1.g
domain1.bc
density.d1.s
static_pressure.d1.s
velocity.d1.v
vorticity.d1.v
30 70 50
domain2.g
domain2.bc
density.d2.s
static_pressure.d2.s
velocity.d2.v
vorticity.d2.v
Geometry and Quantity files have to be generated for each domain except for the vali-
dation and plot data. There is no restriction on the file name and extension.
Quantity file names have to be specified in the same order as the quantity names
defined in the mesh identification part. There is no restriction on the file name and exten-
sion.
Note that the trailing 0 are indicating that no validation data or plot data are associated
to the data set.
B-10 CFView™
Native File Format Input File Format
FACES K = Kmax
4
J = Jmax
5
1
I=1
BLOCK
K
J 6
2
I = Imax
I J=1
3
K=1
FIGURE B.2.3-1: 3D standard notation for the boundary faces in the computational domain.
CFView™ B-11
Input File Format Native File Format
To generate this file, follow the steps below. The example refers to the figure here below.
I=1
Patch 3
Patch 2
10 20
20 20
10 10 20 10
1 10
K
11
J Patch 1
1. Give the name of the domain. If not provided or if the provided name is ’unknown’, CFView™
will provide a default name.
2. Give the number of nodes in the I, J and K directions. For a domain of 10 nodes in the I direc-
tion, 20 nodes in the J direction and 10 nodes in the K direction, the string input is:
10 20 10
3. For each boundary and in the order given above (from 1 to 4 for 2D, from 1 to 6 for 3D):
• Give the number of patches on the boundary. In our example, the first boundary has 3
patches, the string input is:
3
•For each patch of the boundary, give the patch name if existing (if no name is provided,
CFView™ uses a default name), then the boundary condition and the ending and starting
node coordinates:
Boundary condition: There are 8 boundary conditions which are identified by three letters:
matching connection: CON
non matching connection CNM or CONNM
external: EXT
inlet: INL
mirror: MIR
outlet: OUT
matching periodic: PER
non matching periodic PNM or PERNM
singular: SNG
solid: SOL
B-12 CFView™
Native File Format Input File Format
In our example, the boundary condition is solid for the first patch, inlet for the second and outlet for
the third, the string input is:
SOL
INL
OUT
Node coordinates: For 2D cases, the coordinates correspond to the I and J indices of the starting
and ending nodes of the patch. For 3D cases, they correspond to the indices (see table below) of the
lowest and the highest nodes of the patch (see Figure B.2.3-2):
For I=constant boundary J and K indices.
For J=constant boundary I and K indices.
For K=constant boundary I and J indices.
INL 1 10 10 20
OUT 10 10 20 20
For matching and non matching "connection" and "periodic" boundary conditions, an additional
string is needed beside the node coordinates. This string is composed of:
• 3 numbers : - the domain number. It indicates the domain which is connected to the current
domain.
- the boundary number. It indicates the boundary which is connected to the
current boundary.
- the patch number. It indicates the patch which is connected to the current
patch.
CFView™ B-13
Input File Format Native File Format
n2 n2 n2 n1
1
n1 n1 n1 n2
1 1 1 1
n2 n1 n2 n2
2
n1 n2 n1 n1
1 2 1 2
3 3
n2 n1 n2
n2
3
n1 n2 n1 n1
1 1
4 4
n2 n1
n2 n2
4
n1 n1 n1 n2
1 1
n1, n2: first and second variable coordinate indices along the patch
FIGURE B.2.3-3 Standard notation for the block faces and the orientation of edges in the -
computational domain.
Additionally for matching "connection" and "periodic" boundary conditions the relative orientation
of the connected patches has to be specified:
• 1 letter:
"R" or "E" to indicate the orientation between the connected patches. Figure B.2.3-3 gives the
different orientations between the connected faces. If they have the same orientation, the corre-
sponding letter is E, otherwise it is R. To find the orientation, do the following steps: 1/ put the
connected surfaces face to face. 2/ project the local axis of both surfaces on two rectangles as
shown in Figure B.2.3-3. 3/ Permute the axis of the first rectangle to put them in the bottom left
corner. 4/ permute the same number of time the axis of the second rectangle. 4/ find the corre-
sponding case in table of Figure B.2.3-3.
• 1 number:
It indicates the relative corner position of the connected patches (see Figure B.2.3-3).
Figure B.2.3-4 gives an example of a two-domain application. The two domains are connected by
boundary number 1 (i=1).
B-14 CFView™
Native File Format Input File Format
The Boundary Condition file input for the first domain is:
100 50 50
EXT 11 50 50
EXT 11 100 50
INL 11 100 50
1
EXT 11 100 50
EXT 11 50 50
The Boundary Condition file input for the second domain is:
100 50 50
EXT 11 50 50
EXT 11 100 50
OUT 11 100 50
1
EXT 11 100 50
EXT 11 50 50
CFView™ B-15
Input File Format Native File Format
1 50 50 100 50 50
1 1 50
100 1 50
1 50 1 100 50 1
K
J
111
Boundary 3 I 100 1 1
CON 100 1 1 I 111
Domain 2 Boundary 3
J CON
100 50 1 Domain 1
1 50 1 K
4
F2
F1
F3
3
1
2
2 v
1
2
1 1 2 1
u
2
F4
For structured meshes, the Boundary Condition file contains the I, J, K indices of the boundaries,
the associated conditions (solid, external...)and are in an ASCII format.
B-16 CFView™
Native File Format Input File Format
For unstructured meshes, the topology file in binary format contains the mesh topology and the
boundary conditions if existing. The boundaries of unstructured meshes can have different patches
associated to different boundary conditions.
In order to create this binary file, you have to go through the following steps:
1. Create the topology file in an ASCII format.
2. Generate the binary file by using the cfv.ucc tool. See the “CFView Tools” section for more
details about this tool. The topological domain is a set of right-hand side oriented cells. These
cells can be defined for 3D as Tetrahedral (4 nodes), Hexahedral (8 nodes), Prism (6 nodes),
Pyramid (5 nodes) and for 2D Triangle (3 nodes) or Quadrilateral (4 nodes). An example of Tet-
rahedral with four nodes is given in Figure B.2.4-1. The topology and the node coordinates
define the orientation and the local coordinate system (u, v, w) of each cell.
The order of the nodes for each cell is important. The first specify the origin of the local coordi-
nates, the other specify the u, v and w axes. Be careful to follow the right-hand side of these axes.
In Figure B.2.4-1, the order of the nodes is “1 2 3 4". You can chose another origin, for example the
node 3. The cell topology becomes “3124”. You can also impose the direction of u along the direc-
tion 1-4. The input becomes “1423”.
The node indexing is given by the sequential order of the node's coordinates in the
Geometry file. Therefore, the first point of Geometry file is node 1, the second is node is
node 2... etc.
1432 2 5
5234 Solid
2147
6417
7
3
1
6
4
1. Give the number of domains and the dimension (2D or 3D). In our example, the string input
is:
13
CFView™ B-17
Input File Format Native File Format
2. Give the mesh type (X or H). The mesh can be Homogeneous (H), if all the cells have the same
number of nodes, or Heterogeneous (X), if the cells have different numbers of nodes. In case of
Homogeneous meshes, you have to specify the type of element by giving the number of nodes
per cell. In our example, the string input is:
H4
For a Heterogeneous mesh, it would be:
X
3. For each domain:
•Enter the number of nodes, the number of cells and the number of patches (a patch is
associated to a boundary condition such as solid, external, connection...). If there is no
patch, enter 0. In our example, there are seven nodes, four cells and 1 solid patch. The
string input is:
741
Depending of the mesh type, the following specifications are different:
For Homogeneous meshes
•For each cell, enter its nodes. In our example, the string input is:
1432
2147
5234
6417
•For each patch, if existing, give the boundary condition, the number of patch cells, the
number of nodes per cell and their nodes:
Boundary conditions: There are 8 boundary conditions which are identified by a
number:
connection: 1
external: 2
inlet: 3
mirror: 4
outlet: 5
periodic: 6
singular: 7
solid: 8
Number of patch cells and number of nodes per cell: a patch is a part of the boundary.
Specify the number of cells for the patch and the number of nodes per cell.
In our example, the string input is
823
524
247
B-18 CFView™
Native File Format Input File Format
The complete ASCII boundary condition file for our example is:
13
H4
741
1432
2147
5234
6417
823
254
247
142567
•For each patch, if existing, give the boundary condition, the number of patch cells, the
number of nodes for each cells and their nodes:
For example, if a solid patch has two cells, one with 3 nodes and the other with 4 nodes,
the string input is
82
34
143
1654
If you are an experienced programmer, you can skip the use of these tools by making a
program which directly converts your binary data files (coming from a solver) in
CFView™ format. Please, take contact with NUMECA International (sup-
[email protected]) to have more details about how to make such interface.
CFView™ B-19
Input File Format Native File Format
The Quantity files have a “.s” extension for scalars and a “.v” extension for vectors.
Before using these tools, we invite the user to contact support team at "sup-
[email protected]" concerning their availability and maintenance as these are very old
tools.
Notations
• Ndom: number of domains.
• Ndim: number of dimensions.
• Nscal: number of scalars.
B-20 CFView™
Native File Format Input File Format
cfv.scl
• Purpose: This command generates several binary scalar files from a single input ASCII quantity
file. Use this tool if you want to split a file containing many scalars defined at the same points in
several files containing one scalar.
• Type: % cfv.scl <input file name> <output root name>
•<input file name>: name of an ASCII Quantity file with format:
for k=1 to nk
for j=1 to nj
for i=1 to ni
•<output root name>:root name of the binary scalar files, which are created. A
".s."+number extension is added to the root name. The number starts at 1 and is
incremented for each scalar.
• Example: An ASCII file "example" contains 2 scalars (T and P) defined in 4 points. The input
ASCII file will be:
24
T1 P1
T2 P2
T3 P3
T4 P4
cfv.stov
• Purpose: This command generates one binary vector file from several input binary scalar files.
• Type: % cfv.stov <input file name 1> ... <input file name x> <output root name>
•<input file name x>:name of a binary scalar file. For example, this file can be created
using the "cfv.scal" command.
•<output root name>:root name of the binary vector file which is created. A ".v" exten-
sion is added to the root name.
CFView™ B-21
Input File Format Native File Format
cfv.vec
• Purpose: This command generates one binary file from a single input ASCII file. It is useful if
you want to transform a 2D quantity or geometry file in a 3D file. A zero z coordinate or value
will be added to your data.
• Type: % cfv.vec <input file name> <output root name>
•<input file name>:name of an ASCII quantity or geometry file with format:
for j=1 to nj
for i=1 to ni
•<output root name>:root name of the binary quantity or geometry files which are cre-
ated. There is no added extension.
• Example: An ASCII file "example" contains 3 points in 2D on which a quantity is given. The
input ASCII file will be:
23
U1 V1
U2 V2
U3 V3
U1 V1 0
U2 V2 0
U3 V3 0
cfv.gscl
• Purpose: This command generates several binary scalar files and one binary geometry file from
an single input ASCII Quantity file. Use this tool if you want to split an input file containing
point coordinates and scalars in several files: one containing the point coordinates and each
other containing a scalar.
• Type: % cfv.gscl <input file name> <output root name>
•<input file name>: name of an ASCII file with format:
for i=1 to ni
B-22 CFView™
Native File Format Input File Format
•<output root name>: root name of the binary scalar files which are created. A ".g"
extension is added to the root name for the binary geometry file. A ".s."+number
extension is added to the root name for the binary scalar file. The number starts at 1
and is incremented for each scalar.
• Example:An ASCII file "example" contains 2 scalars (T and P) defined in 4 points. The input
ASCII file will be:
324
X1 Y1 Z1 T1 P1
X2 Y2 Z2 T2 P2
X3 Y3 Z3 T3 P3
X4 Y4 Z4 T4 P4
cfv.ascii
• Purpose: This command converts a binary file in an ASCII file.
• Type: % cfv.ASCII <input file name>
•<input file name>:name of a binary file.
cfv.scale
• Purpose: This command multiplies the content of a binary geometry file by a scalar which is
interactively entered.
• Type: % cfv.scale <input file name>
•<input file name x>: name of an binary geometry file.
cfv.mdga
• Purpose: This commands generates several binary Geometry files from a single ASCII Geome-
try file.
• Type: % cfv.mdga <input file name> <output root name>
•<input file name>:name of an ASCII or binary Geometry file with format:
for j=1 to nj
for i=1 to ni
CFView™ B-23
Input File Format Native File Format
•<output root name>:root name of the binary geometry files which are created. A
".d"+number+".g" extension is added to the root name for the binary Geometry files.
The number starts at 1 and is incremented for each domain.
• Example:An ASCII file "example" contains two 3D domains of respectively 4 and 5 points. The
input ASCII file will be:
23
X1 Y1 Z1
X2 Y2 Z2
X3 Y3 Z3
X4 Y4 Z4
cfv.mdfda
• Purpose: This command generates several binary Quantity (scalar and vector) files from a sin-
gle ASCII Quantity file.
• Type: % cfv.mdfda <input file name> <output root name>
•<input file name>: name of an ASCII or binary Quantity file which format is:
•<output root name>: root name of the binary Quantity files which are created. A
".s"+number extension is added to the root name for the binary scalar files. The
number starts at 1 and is incremented for each scalar. A ".v"+number extension is
added to the root name for the binary vector files. The number starts at 1 and is
incremented for each vector.
B-24 CFView™
Native File Format Input File Format
• Example: An ASCII file "example" contains one 3D domain of 4 points. There are 2 scalars (T,
P) and one vector V (Vx, Vy, Vz). The input ASCII file will be:
1321
cfv.ugc
• Purpose: This command generates one or more unstructured topology files from an ascii input
file.
• Type: % cfv.ugc<input file name> <output root name>
•<input file name>: name of an ascii file whose format is described in the "Creating the
ASCII Topology & Boundary Condition File" section.
•<output root name>: root name of the unstructured topology files which are created. A
".d"+number+".gb" extension is added to the root name. The number starts at 1 and
is incremented for each domain.
cfv.v56, cfv.v65
• Purpose: The binary input files of CFView 3.5 have a different format than those from CFView
3.6. In order to convert the CFView 3.5 files into the CFView 3.6 format, or vice versa, use
respectively the cfv.v56 or cfv.v65 tool.
• Type: % cfv.v56 <input file name>
•<input file name>:name of a binary file. Can be * if the user wants to convert all the
files at the same time.
• Example: A directory contains all the files of a CFView3.5 project, including the ASCII files
(xxx.cfv and xxx.bc files) and the binary files (scalar, vector and geometry files). To convert
these files into readable files for CFView 3.6, type the following:
Type: % cfv.v56 *
This command will sort out the binary files from the ASCII files and will convert the binary
ones into CFView 3.6 files.
CFView™ B-25
Input File Format FINE™/Turbo File Format
B-26 CFView™
Index
INDEX
A Paste 4-32
Align Views 2-25 Range 4-31
Animation Reverse 4-31
Cutting Planes 6-7
Size 4-35
IJK Surfaces 6-6
Cells 3-29, 7-22
Recording 2-6
cfv.ASCII B-23
Steady 6-1
cfv.gscl B-22
Streamlines 6-2
cfv.mdfda B-24
Unsteady 6-9
cfv.mdga B-23
Vector Line 6-2
cfv.scale B-23
AutoGrid 4-62
cfv.scl B-21
Axes
cfv.stov B-21
Graduated 2-26
cfv.ugc B-25
Orientation 2-25
cfv.v56, cfv.v65 B-25
Axis 4-33, 7-54
cfv.vec B-22
Azimuthal Average 5-5, 5-9, 7-17
CGNS 2-10
B CGNS File B-26
Background Color 1-4 Close Project 2-15
Blade Section 5-9 Color 4-18
Blade to Blade 2-23, 5-1, 7-29 Background 1-4, 4-62
Border 2-22 Editor 4-58
Boundaries Color Contour 4-18, 7-35
Curve Type 3-19 Flat 4-18
Representation 3-19 Smooth 4-19
Boundary
Strip 4-19
Conditions B-2
Threshold 4-19
Boundary Condition 3-4
Update 4-21
Boundary Surfaces 3-2
Colormap 4-50, 7-51
C Range 2-6
Camera Command Line 1-4
Dynamic 2-18 Compute Meridional 5-7
Position 2-18, 2-20, 2-21 Compute Pitch Average 2-23
Projection 2-17, 2-18, 2-20 Conventions 1-3
Rotation 2-19 Coordinate System 2-6, 2-26
Zoom 2-19 Copy 4-32
Camera Control 7-20 Cursor Position 2-8
Cartesian Plot 4-28, 7-16, 7-37, 7-48 Curve Integrals 4-65, 7-47
Axis Label 4-33 Cutting Plane 3-6, 3-13
Axis Variable 4-30 Cutting Planes 6-7, 7-24
Copy 4-32 Scrolling 6-7
Delete Curve 4-32
Export 4-36 D
Data
Graduation 4-33
Derived 4-11
Grid Lines 4-34
Particle Traces 4-2
Limited Section 4-32
Plot Data 4-2, 4-38
Logarithmic 4-31
Range 4-50
Merge 4-32
Validation Data 4-2, 4-37
CFView™ i
Index
INDEX
Decoration Text 4-55 Hub 5-1, 5-8, 7-29
Default Settings 4-61
I
Default View 2-20
Identification
Delete
File B-2
Surface 3-8
Mesh B-4
Derived Quantity 4-11
IJK Surfaces 3-13
Double Buffering 1-6
Installation 1-3
Dynamic Viewing 2-18
Integrals 2-8, 4-63
E Interactive Selection 3-29
Elements Viewing 3-29 Isolines 4-16, 7-36
EPS Format 4-68 Iso-Surface 3-17
Export Save 3-18
Active Surfaces 4-65 Iso-Surfaces 4-27, 7-36
Plot Curves 4-36
J
F JPEG Format 4-68
Face Displacement 4-62
Field Data 4-3 K
File Keyboard Input 2-8
Topology B-2
File Format B-26 L
Files Lagrangian 4-54
Boundary Conditions B-6 License 1-3
Geometry B-2, B-6 Limited Section 4-32
Python 7-1 Line Type 4-18, 4-21, 4-49, 7-34
Quantity B-6 Local Values 4-15, 7-35
Fit 2-20
Font M
Editor 4-59 Macro 2-28, 3-10, 7-1
Force 4-63, 7-45 Cartesian Plot 7-16
Free RAM 4-14 Defaults Settings 7-9
Full Render 2-21 Modules 2-30, 7-6
Operators 7-2
G Picture 7-11
Geometry Play 2-29
Repetition 3-28
Project 7-12
Gouraud 3-21
Record 2-29
Graphics
Save 2-30
Drivers 1-6
Unsteady 7-13
Graphics Area 2-7
Update 7-16
Graphics Options 1-6
View 7-14
Graphics Update 2-23
Marker
Grid 3-19
Editor 4-60
H Marker Type 4-16, 4-21, 4-49, 4-60, 7-34
Hardware Requirement 1-3 Massflow 4-64
Heterogeneous B-19 Menu Bar 2-3
Hidden Lines 3-20 Merge 4-32
Homogeneous B-18 Meridional Average 2-23, 5-5
ii CFView™
Index
INDEX
Meridional Patch 5-5, 5-8, 7-17 Q
Mesh B-2 Quantity 7-31
Mesh Representation 7-21 Delete 4-12, 4-14
Mesh Size 7-23 Derived 4-11
Mesh Surface 3-6, 3-11 Field Data 4-3
Mesh Surfaces 7-26 Loading 4-12
Message 2-7 On Wall 4-2
Modules 2-30, 7-6 Particle Traces 4-54
Move 2-24 Plot Data 4-38
MPEG 2-6 Range 2-6, 2-8, 4-50, 7-33
MSW 1-6 Scalar 4-2
Multiple Projects 2-12 Selection 4-3
Solid Data 4-7
N Status 4-13
Native Format 2-10, B-2 Surface 4-11
Number Format 4-16, 4-61 Thermodynamic 4-7
Types 4-1
O
Unload 4-12
Opengl 1-6
Validation Data 4-37
Operators 4-11
Vector 4-2, 4-38
Orientation Axes 2-25
Quick Access Pad 2-6
Orthogonal 2-22
Output
R
Active Surfaces 4-65
Range 4-50, 7-33
Print Image 4-66
Range Colors Type 4-19
P Record Macro 2-29
Partial Loading 2-12 Refresh 2-23
Particle Traces 4-2, 4-54, 7-32 Render 2-21
Paste 4-32 Rendering 3-21, 4-62, 7-29
PBM Format 4-68 Color 3-21
Perspective 2-17, 2-22, 7-19 Gouraud 3-21
PGM Format 4-68 Hidden Lines 3-20
Pitch Average 2-23 Repetition 3-28, 7-22
Play Macro 2-29 Representation
Cartesian Plot 4-28
Plot Curve 4-32
Color Contour 4-18
Plot Data 4-2, 4-38
Delete 4-56
Plot3D 2-11
Isolines 4-16
PNG format 4-67
Iso-Surface 4-27
PostScript 4-67
Local Values 4-15
PPM Format 4-68
Particle Trace 4-54
Project 2-9
Undo 4-56
Close 2-5, 2-15
Vector 4-39
Fine Turbo 2-10
Vector Line 4-43
Open 2-5, 2-12
Reset 2-23
Projection 7-19
Resize 2-24
Push Back 2-24
Reverse Video 1-4, 4-62
Python 2-28, 7-1
CFView™ iii
Index
INDEX
S T
Save Macro 2-30 Templates 2-28
Scalar 4-2 Text 4-55
Scale 2-18, 7-22 Create 2-5
Scrolling 6-7 Editor 4-57
IJK Surfaces 6-6 Font 4-55
Select Open 2-12 Insert 4-55, 7-52
Selection 3-10 Type 4-55
Shading 3-21 Text Type 4-16
ShortCut 2-5 Thermodynamic Data 4-7
Shroud 5-1, 5-8, 7-29 Threshold 4-19
Solid Data 4-2, 4-7 Range Colors Type 4-19
Span Distribution 5-9 TIFF Format 4-68
Split Surface 3-16 Tile Views 2-24
Start CFView™ 1-4 Time Label 7-44
Streamlines 4-22, 4-43, 7-43 Time Step 7-13
Animation 6-2 Toolbar 2-5
Delete 4-26 Torque 4-63, 7-45
Grid Line 4-24 Transparent 2-22
Local 4-23 Troubleshooting 1-7
Parameters 4-25 Turbomachinery Mode 5-8, 7-17
Section 4-23
U
Update 4-26
Undo 4-56, 7-19
Stretched 2-22
Unsteady Animation 2-6
Structured B-2
Unstructured B-2
Superpose Views 2-25
Surface Update 2-23, 7-16
Macro 3-10 Update Abort 1-6
Transparency 3-21 User Interface 2-2
Surfaces 3-2
V
Blade to Blade 5-3
Validation Data 2-15, 4-2, 4-37
blade to blade 3-6
Vector 4-2, 4-38, 7-41
Cutting Planes 6-7
Arrow Shape 4-42
Delete 3-6, 3-8
Color 4-41
Filter 3-6
Delete 4-42
Group 3-2, 3-6, 3-8
Size 4-41
Hub 5-1, 5-8
Type 4-42
List 3-2
Vector Field 4-39
Rename 3-6, 3-9
Vector Line 4-43, 7-43
Scrolling 3-11, 3-13, 6-6
Delete 4-49
Selection 3-2, 3-3, 3-4, 3-6, 3-8, 3-9, 3-29
Grid Line 4-44
Shroud 5-1, 5-8
Local 4-43
Split 3-16
Parameters 4-44
Visualisation 3-5, 3-8
Section 4-43
Wireframe 3-19 View
Surfaces Integrals 4-63, 7-44 Align 2-25
Swap Views 2-25 Arrange Icons 2-25
iv CFView™
Index
INDEX
Azimuthal Average 5-5
Blade to Blade 5-1, 5-3
Border 2-22
Camera 2-16
Cartesian 2-5, 2-23
Close 2-5, 2-23
Cylindrical 2-5, 2-23
Maximize 2-23
Minimize 2-24
Move 2-24
Push Back 2-24
Reset 2-23
Resize 2-24
Size 2-5, 2-23, 2-24, 4-62
Superpose 2-25
Swapping 2-25
Tile 2-24
Transparency 2-22
Viewer Debugger 2-30
Viewing Buttons 2-8
W
Warnings 2-7
Weighted Integrals 4-63, 7-46
Wireframe 4-21
X
X11 1-6
X-Projection 2-19
Y
Y-Projection 2-19
Z
Zoom 2-19
Z-Projection 2-19
CFView™ v