16.2. Viewmerical

In this section you will learn the different capabilities of FENSAP-ICE's native post-processor.

16.2.1. Introduction to Viewmerical

Viewmerical is a simple data post-processor that enables the visualization of FENSAP-ICE grids and solution files. It can be launched from FENSAP-ICE to view most file formats, and can be used in command-line or batch mode. The major features are:

FeaturesAction

Grid Display

  • Boundaries

  • Cutting planes, crinkle cuts

  • Multiple grids display (split screen, overlay)

Scalar Solution Display

  • Colormap

  • Iso-values, iso-surfaces

  • Vector fields

  • Unsteady/animated solutions

ICE3D Specific Display

  • Ice cover

  • Ice solution

  • Glaze/rime/film zones

  • Unsteady/animated icing

  • Ice CAD surface extraction

FENSAP-ICE Specific File Formats (Grids)

Grids:

  • FENSAP

  • C3D (with materials)

  • OptiGrid GENERIC input/output format

FENSAP-ICE Specific File Formats (Solutions)

  • FENSAP (soln)

  • DROP3D (droplet)

  • ICE3D (swimsol)

  • C3D (struc1.SOL)

  • Heat flux (hflux.dat)

  • Shear stress (surface.dat)

  • Time-BC (timebc.dat)

  • Roughness (roughness.dat)

Table 16.1: Other File Formats

TypeFormat

Grids

  • Fluent

  • STL

Solutions

  • Fluent


16.2.1.1. Launch from the FENSAP-ICE Project Manager

The   button in the toolbar permits to launch Viewmerical:

If a grid or solution icon is selected, Viewmerical will be launched to open that file automatically.

16.2.1.2. Setup in FENSAP-ICE as Primary Post-Processor

In the solver execution panel, the View button will launch the default post-processor.

The default post-processor of FENSAP-ICE can be selected in the Preferences panel:

Once configured, the main visualization option in the menus will be Viewmerical. Using the option View with VIEWMERICAL on a solution file will load the selected grid and solution from FENSAP automatically:

16.2.1.3. Launch from FENSAP-ICE - Secondary Post-Processor

At any time, any alternate post-processor (including Viewmerical) can be launched to view input/output datasets.

16.2.1.3.1. From the Run View

Right-click an input/output icon and select View with...:

16.2.1.3.2. From the Execution Panel

Holding the Ctrl key will switch the view button from View to View with..., which will enable you to select the post-processing viewer to use:

16.2.1.4. Launch from the Command Line/Start Menu

Viewmerical can be launched standalone; it does not require a FENSAP-ICE main window or project and can be used on any compatible input file.


Note:  A valid FENSAP-ICE license is required to Viewmerical. It can only be used on machines where your license server can be reached. Each license seat of FENSAP-ICE provides a seat for one opened instance of Viewmerical.


16.2.2. 3D Display

16.2.2.1. Mouse Controls

Table 16.2: Mouse Control Examples

ButtonAction+Shift+Control+Alt*Double-click
LeftRotationZoomZoom BoxPickCenter
RightZoom/Roll Menu  
CenterPan Center  
Scroll wheelZoom    


Tip:  Alt button operation might not work in all windowing environments. In such cases, use the toolbar pick icon.


Table 16.3: Controls

ControlAction

Rotation

Moving the mouse with the left button pressed will rotate the camera around the object.

Zoom

Moving the mouse up/down permits to zoom interactively. The scroll-wheel button of the mouse also zooms.

Zoom Box

With the zoom box selected, moving the mouse left-to-right will permit to draw a zoom rectangle.

Figure 16.1: Zoom in

Zoom in


If the rectangle is drawn right-to-left, the resulting operation will zoom-out.

Figure 16.2: Zoom out

Zoom out


Zoom/Roll

In this mode, up-down movements will zoom in-out interactively.

Left-right movements will roll around the view axis.

Pan

Holding the center button (usually the scroll-wheel) and moving the mouse will pan the view. This will move the center of rotation.

Center

Double-clicking a 3D position to center the display on that point. The center of rotation is moved to the chosen point.

MENU

See Interactive Menu.

Pick

Puts you in data query mode (use with the Query panel).


16.2.2.2. Toolbar

At the top of the 3D display, a toolbar permits to switch between the main view modes which are normally accessible via mouse + keyboard combinations. See Interactive Menu for the equivalent keyboard/mouse bindings, and the operation description.

Table 16.4: Toolbar

ActionIcon

Toolbar

 

Rotation

 

Zoom Box

 

Pick

 

Screenshot

 

MENU

 

See Interactive Menu.



Note:  Keyboard-mouse combinations described in Mouse Controls will not work if Zoom Box or Pick are enabled. All keyboard-mouse combinations will work correctly if the Rotation mode is selected.


16.2.2.3. Axis Display

Clicking in the axis window will trigger a view change.

Table 16.5: Axis Display

ActionResult

Click the X/Y/Z arrows

Orients the display along that axis.

Click the gray cube

Orients the display in the default 45 degree isometric view.

Shift + X/Y/Z/gray cube

Orients the display in the reverse direction (If X-axis would show the front along +X, Shift-click-X-axis would show the back along -X).

Anywhere else

Keeps the same camera direction; resets the zoom and the center of rotation to view all items. Will use the current Fit to view (visible) or Reset view (domain) settings.


Right-clicking the axis window provides additional view options:

Table 16.6: Additional View Options

ActionResult
Fit to view (visible)/Reset view (domain)

Resets the zoom and center of rotation in order to view all items.

  • Fit to view (visible):

    • Only visible items are considered.

  • Reset view (domain):

    • All items, even invisible, are considered for the bounding box.

    • Using the Backspace key, or clicking in the axis window, will use the current Fit/Reset setting.

Front, Back, Right, Left, etc.

Reset the view to this direction.

Camera

Switch between Orthogonal and Perspective.

View symmetry

Permits to duplicate or repeat symmetric or rotationally periodic datasets.


16.2.2.4. Interactive Menu

A Ctrl left-click in the 3D display, or the usage of the Menu button   shows the interactive menu:

Table 16.7: Interactive Menu

Menu ItemResult
Hide (click on surface)
  • The clicked-on surface is hidden.

  • In Ctrl + right-click, the hide operation is immediate.

  • When using the toolbar menu, the surface to hide must be clicked on afterwards.

Undo Hide

Undo the previous Hide operation.

Show all/Hide all

Show/hide all surfaces of all objects.

Hide all except one (click on surface)

All surfaces of all objects are hidden, except the one that was clicked upon.

Refresh

Reloads the scalar solution data (if any) from disk.

Command window

Open the 3dview command console window.

Save state

Create a view state file (.views by default) and a command file (.3DCMD by default). If used as command file argument, the command file permits to restart Viewmerical in the saved state. Not all modes and settings are saved.

Save screenshot

Saves a .PNG screenshot to disk. The toolbar and the axis display will not be saved in the image file.

Save/Restore position

Viewmerical permits to save the current camera position, and reuse it in later execution. In addition, multiple camera positions can be saved and chosen from.

  • default view: If the view is saved as default, Viewmerical will automatically load that view when launched in the same directory.

  • These views are saved in a .views.3dview file in the current directory, the default and saved views can be reset by erasing that file.


16.2.2.5. Keyboard Shortcuts

Table 16.8: Keyboard Shortcuts

KeyAction
BackspaceReset/Fit to view
H+click surfaceHide a surface
Ctrl+HUndo the last Hide operation
BToggle between boundaries display modes:

All, no-SYMM, WALLs only, None

UUndo a view change (rotation/zoom/etc.)
Shift+URedo a view change removed with U
P (hold down)Pick mode, click an item to select
Ctrl+TShow/Hide the toolbar
SpaceShow/Hide the right panel (full screen mode)
F5Refresh - Reload solution from disk
1,2,3,4,5,6,7,8.9.0Switch between pre-set views (+X, -X, +Y, -Y, etc.)
SSwitch between shading modes
X,Y,Z,R,TCutting plane mode, if available
IIso-values mode, if available
Up/Down/Left/Right+Shift+CtrlTweak values for the current mode. (Selection of the current datafield, cutting plane position, number of iso-values contours, etc.)

Left/Right will iterate through numbered datasets, if the step settings are visible in the Data panel

Shift+~Shows the Viewmerical command line window (See Command Line Usage).

16.2.3. Data Management

16.2.3.1. Open Files Dialog

When Viewmerical is launched standalone, or when additional data is to be loaded, this file selection dialog appears:

The loaded data can be either grid only or grid and solution.

Table 16.9: Grid File Formats Notes

FormatNotes

FENSAP-ICE grid

Grids of the FENSAP/DROP3D/ICE3D file format. Also applies for map.grid and ice.grid.

C3D solid grid

Grids with material IDs, specific to C3D and CHT3D/solid runs.


Boundaries Only

Loads only the grid boundaries, not the 3D cells. This will be faster and use less memory. In this mode, it is not possible to display cutting planes or 3D iso surfaces.

Table 16.10: Solution File Notes

Solution FileDescription

FENSAP-ICE solution

  • The nodal solution output of FENSAP/DROP3D/ICE3D/C3D. (soln, droplet, swimsol, struc1.SOL, etc.).

    • swimsol is bound to map.grid and ice.grid, not the original 3D grid.

    • struct1.SOL grid must be loaded in C3D grid format.

Heat flux

hflux.dat file output of FENSAP contains facet based data.

Shear stress

surface.dat file output of FENSAP contains facet based data.

TimeBC

timebc.dat or roughness.dat contains node based boundary condition values.

ICE3D full solution (map.grid + swimsol)

  • Will load map.grid, ice.grid and swimsol outputs of ICE3D.

    • This mode enables ICE cover display and CAD extraction.

    • Specify map.grid as the grid file, and the swimsol as the solution file. This will load the ice.grid with the same suffix (if any) than the swimsol file. swimsol.000100 requires the availability of ice.grid.000100.

C3D TimeBC

fluxs1.tot file output of C3D contains facet based data.



Note:  The solution must match the selected input grid.


16.2.3.2. Adding/Removing Datasets

The Objects panel permits to manage the loaded datasets:

  Opens the Open files dialog, to load an additional Grid/Solution.

  Removes the currently selected object.

  Selects all the datasets for modification. (See Lock Selection).

16.2.3.3. Dataset Visibility

The check box at the left of an object in the object list permits to modify the global visibility of that object.

Regions of a dataset (typically, boundary conditions), can be shown/hidden using the same check box.

16.2.3.4. Current Selection

Some operations are available or not depending on what the current selection is in the object list.

Object (grid) selected:

  

Surface (boundary condition) selected:

  

The current selected boundary condition (if any) is shown using a white contour and white wireframe:

16.2.3.5. Multiple Selection

In addition to the current selection, multiple selection can be used to perform operations on multiple items in the object list:

Holding down Shift enables adjacent selections from the current item to and including the item clicked.

Holding down Ctrl enables items to be selected and deselected discretely.

The last item clicked becomes the current selection and, similar to the current selection, is highlighted with a white contour and white wireframe only if it is a boundary condition.

In a single operation, selected items can be modified in the following ways:

  • Toggling visibility by clicking the item check box.

  • Changing the shading, color of the wireframe or grid and the opacity in the object dialog.

  • Enabling and positioning a cutting plane for selected datasets and datasets of selected boundaries.

Modifications on multiple selections that include datasets may affect all boundary conditions of the selected dataset.

16.2.3.6. Lock Selection

The lock selection is used to select all datasets in addition the current item and/or multiple selection items. Operations in a locked selection work similarly to a basic multiple section. This selection can be enabled by clicking the Lock button in the Object Browser (See Adding/Removing Datasets). Locked selection permits similar operations to the shared mode and also enables all data set to the be selected and modified in one operation particularly useful for synchronizing data-field operations or expanding the scope of such operations to include all datasets. The Shared button is in the LUT range dialog (See Shared Range).

This feature is particularly useful when the loaded grids have no associated solution and the LUT range dialog is hidden.

16.2.4. Object Panel

The panel is restricted to color settings should a single surface (boundary condition) be selected in the object list panel:

16.2.4.1. Shading Mode

The shading mode is selected at the top of the object panel:

Figure 16.3: Wireframe

Wireframe

Figure 16.4: Colored

Colored

Figure 16.5: Colored+Wireframe

Colored+Wireframe

Figure 16.6: Shaded

Shaded

Figure 16.7: Shaded+Wireframe

Shaded+Wireframe

Figure 16.8: Smooth Shaded

Smooth Shaded

Figure 16.9: Metallic

Metallic

Figure 16.10: Metallic+Smooth

Metallic+Smooth

16.2.4.2. Object Color

Wire (wireframe lines) and Cell (facets) color can be changed. Click the colored box to access the color picker.

Opacity permits to change the transparency of both wireframe and facets.

Object (grid) selected: The new wire/cell color is applied to all sub-objects.

Surface (boundary condition) selected: The color is applied only to the specified boundary condition.


Note:  These settings are useful only for grid types, not colored scalar solutions.


16.2.4.3. Repetition (Mirror/Periodicity)

The Repeat options permits to duplicate symmetric data.

Figure 16.11: No Repetition (Z-Symmetric Grid)

No Repetition (Z-Symmetric Grid)


Figure 16.12: Z-Axis Repetition Enabled

Z-Axis Repetition Enabled


16.2.4.4. Split Screen

This permits to split the 3D window in two, showing datasets either top/bottom or left/right. The camera position between the two halves is locked, the display are always exactly at the same position.

The split-screen selection applies to the currently selected object, in the Objects list.

Different objects can have different split-screen settings:

Figure 16.13: Grid Adaptation, Before Adaptation/After Adaptation

Grid Adaptation, Before Adaptation/After Adaptation

Figure 16.14: CHT Solution – Static Temperature. External Wall/Internal Wall

CHT Solution – Static Temperature. External Wall/Internal Wall

To load multiple datasets from FENSAP-ICE:

  • If Viewmerical is already opened with a dataset.

  • In FENSAP-ICE, load the second dataset using another View with VIEWMERICAL command. A prompt will then ask you to Append or open a New window. Select Append:

  • In Viewmerical, select one of the objects in the data list, and choose a Split screen option.

16.2.5. Cutting Plane Panel

The following sections of this chapter are:

    This panel is only available for 3D data. Grids loaded in Boundaries only mode, or 2D data (heat flux, shear stress, timebc) do not offer the cutting plane option.

    X/Y/Z-coordinate will select the cutting plane.

    Grids providing cylindrical coordinates can also be cut in R or T (Theta).

    The slider permits to interactively move the plane between the min and max values.

    The minimum and maximum values can be edited, to select a custom range. Entering an empty value (then hitting Enter) will revert to the default range value.

    The   icon provides additional display options:

    Table 16.11: Display Options

    MenuDescription

    Shaded + Wireframe, Shaded, Wireframe

    These settings are independent of the individual object/surface settings.

    Set color/Set wireframe color

    Changes the colors of the cutting plane elements.

    Auto-hide non-wall

    When the cutting plane mode is enabled, all surfaces of the grid are hidden. (Enabled by default). If Auto-hide boundaries are enabled, individual boundary conditions can be shown afterwards using their visibility check box.

    Use visible surf. for range

    By default, the cutting plane range is the full 3D domain of the object (minimum coordinate to maximum coordinate). The range can be restricted to the minimum/maximum of the visible items. For example, if this option is enabled and only the walls are currently visible, the minimum/maximum of the cutting plane zone will be the minimum/maximum of the wall area.

    Crinkle

    Instead of displaying the planar intersection of each 3D cell with the cutting plane, the whole cell is displayed. The display is then much cleaner, and the internal 3D topology of the grid easier to visualize.

    Crinkle - Colored

    The crinkle is shaded by element type. Blue = hexa, Green = Prism, Red = Pyramid, White = Tetra.

    Clipping

    Hide the + or - side of the mesh, in relation to the cutting plane.Clipping - only will hide the cutting plane, while the clipping is enabled.

    Animation steps

    Displays the animation controls of the cutting plane. Cycling through the domain is controlled by the play/pause button. The step accuracy of the movement and the direction are configurable.

     


    16.2.6. Scalar Solution Visualization

    16.2.6.1. Files Panel

    Table 16.12: Files Panel

    Menu ItemAction
    Grid

    The currently selected dataset. Refer to the Objects panel to add/remove datasets.

    Data

    If a solution file is loaded, this permits to switch the currently loaded data-field otherwise the data field combo-box is disabled.


    The dataset and data-field are also visible in the combo-boxes at right side the status bar. These combo-boxes can also be used to switch the dataset and data-field:

    The   button allows you to define an expression for custom fields using existing fields in the dataset.

    The   icon offers the option to reload the data from the disk.

    This will reload and display the current dataset, field and step (See Unsteady or Numbered Solutions).

    16.2.6.1.1. Unsteady or Numbered Solutions

    If the loaded solution file is in the format of name.###### (six-digit numbered file) or name.######## (eight-digit numbered file), the Step number, without preceding zeroes, is shown in the panel as well as slider and an Play/Pause button. The slider permits to sweep through the steps, loading/displaying the new solution for each step. The play/pause button triggers a sweep animation for the steps in a continuous loop. If there were initially none included, step animations for the selected datasets are added to the animation item list when an animation is triggered.

    Color Range Panel

    The scalar field loaded is displayed using the settings of this panel. The minimum/maximum values can be edited by modifying the numerical values, or by moving with the mouse the minimum/maximum boundary in the colored box.

    Entering an empty value for the minimum/maximum (with the Enter key), will reset the value to the minimum/maximum value of the dataset (as displayed below).

    Invert

    Inverts the direction of the spectrum.

    Real-Time Update

    Permits to display immediately any change made to the minimum/maximum of the color table.

    16.2.6.1.2. Color Range

    Modes other than Spectrum will use a textured color-mapping table and will permit to have smoother display, but might not be compatible with all 3D display drivers.

    Using a color range will give more gradient detail, visible mostly when a facet contains values near the min and the max of the data range.

    Spectrum (Linear Interpolation Shading)

    Other colormaps, can show the full gradient of the data:

    16.2.6.1.3. Shared Range

    The check box Shared is useful only if multiple solutions of the same type are loaded. Using this option will:

    • Select the same datafield in all loaded solutions.

    • Apply any datafield operations to the other loaded solutions.

    • The global minimum/maximum of all datafields is used for the colormap minimum/maximum.

    Example 16.1: Multiple Solutions

    • Solution1 = 260 to 320 K.

    • Solution2 = 274 to 406 K.

    • Shared range = 260 to 406 K.


    16.2.6.1.4. Global Range

    If disabled, the Global setting will use the minimum/maximum only from the visible surfaces.

    Default - Global range:

    Local data range - With Global check box unchecked and a subset of the surfaces visible:

    16.2.6.1.5. Advanced Options
    Hide Values out of Range

    When a facet has no node within the data range, it will not be drawn (completely invisible).

    Point Cloud for out of Range

    If a node is not in the data range, it is marked with a white point. This option is useful to identify mesh regions where the data is over/under a given threshold.


    Important:  This option will show a point for each node of the grid, not only surface nodes, this might be many of points to display, if the range is not carefully chosen.


    Show Legend

    Toggles the display of the legend panel, in the 3D view, for this dataset.

    Top/Bottom

    Selects the position of the legend panel in the 3D view.

    16.2.6.2. IsoValues Panel

    Enabled - Surfaces

    This option will display contour lines on the surfaces.

    Enabled - Volumes

    This option will display 3D Iso-Surfaces.

    The position of the surface can be adjusted using the color range minimum/maximum values.

    Advanced settings are available by clicking the   icon:

    The options are the same than for the cutting plane (See Cutting Plane Panel).

    16.2.6.3. Vector Data Panel

    This panel is available only if the loaded solution contains recognized X/Y/Z vector datafields.

    Menu ItemAction
    Enabled - Surfaces

    Displays a vector for every visible surface node.

    Enabled - Volumes

    Displays a vector for a fraction of the volumic nodes.

    Volumetric data

    Controls the percentage of volumic nodes to display.

    Enabled - Both

    Display a vector for every visible surface node, and for the specified fraction of volumic nodes.

    16.2.6.3.1. Vector Scaling

    The default vector scale is 1. Meaning that a vector of magnitude 1 will be displayed as size 1 in the scale of the grid. Usually, the vector scale must be changed to be suitable for display, enter a scaling value or use +/- to change it:

    Relative and Normalized Scaling

    The scaling mode will either display vector with length relative to their magnitude (Relative scaling) or all of the same length (Normalized scaling):

    Figure 16.15: Relative Scaling

    Relative Scaling

    Figure 16.16: Normalized Scaling

    Normalized Scaling

    16.2.6.3.2. Coordinate Clamping

    This menu entry permits to switch between XYZ, XY, YZ, XZ, X, Y, Z clamping modes. In these modes, only the enumerated coordinate will be used for display.

    16.2.6.4. Displacement Panel

    Some data files contains mesh displacement information (such as ALE timebc used for grid displacement). This panel is visible if the Displacement magnitude option is selected. The scaling permits you to deform the grid from the displacement vector. The default range is 0-10 with 0 being the default value:

    16.2.6.4.1. Real-Time Update

    Enabling the Real-time update option allows the modifications to be applied immediately to the dataset while moving the slider:

    16.2.6.4.2. Advanced Settings

    Enabling the advanced setting expose controls to modify the minimum and maximum of the range for the displacement factor multiplier:

    16.2.7. View Options

    The following sections of this chapter are:

    16.2.7.1. Window Panel

    Table 16.13: Window Panel

    Menu ItemResult
    Background

    Permits to change the background color.

    Size

    Choose the behavior or resolution for the 3D display viewport or the window size of 3DView. Window-Free allows the window and viewport be resized freely and is the default option. With a fixed viewport size the window is resizable. With a fixed window size the viewport is resized to fit. Custom sizes can be set using the Width and Height settings for either the viewport of the window.

    Toolbar/Axis

    Control the visibility of the elements on the screen.

    Legend

    Selects the mode of display of the dataset legend.

    Title

    Permits to select a title written at the top of the display, useful for screenshots.


    16.2.7.2. Anaglyph 3D Display

    This mode can be enabled in the Advanced panel (double-click the panel header).

    It will render the data for use with red/cyan or red/blue filter 3D glasses:

    The Angle and Depth settings can be fine-tuned using the sliders.

    Grayscale or black & white data is well suited for this type of display.

    16.2.8. Query Mode

    16.2.8.1. 2D Plot

    The currently loaded scalar data-field is used for 2D plots:

    The 2D plot data is computed onto the mesh intersections with a cutting plane.

    Table 16.14: Target

    Walls
    Walls - Visible
    Inlets
    Inlets - Visible
    Outlets
    Outlets - Visible
    All items
    Visible items

    The Target specifies the surfaces onto which the cutting plane will be applied.

    To work only on a single wall, on a multi-wall dataset:

    1. Hide all other boundary conditions from the display.

    2. Select Visible items or the - Visible option of the appropriate target type.

    Table 16.15: 2D Window Panel Modes

    ModesDescription
    Data

    The data-field is evaluated for each intersection point, this value is shown in the Y-axis of the 2D Plot. In Geometry mode, only the grid geometry is used, this is useful to display a iced surface cutting plane maintaining the aspect ratio for the geometry to be plotted.

    Cutting plane: X/Y/Z

    Specifies the plane and its position. The plane position and alignment is displayed in the 3D window. (The plane is infinite, the displayed grid depends of the visible items bounding box).


    In the plot area:

    • Left-click will select a point for value query.

    • Shift drag left button will draw a zoom area, and zoom in.

      • Dragging the mouse horizontally/vertically will do a horizontal/vertical zoom.

    • Shift + left-click will zoom-out.

    X/Y/Z/Distance: Selects the coordinate to use for the plot horizontal scale. Distance is the distance from the previous point.

    Print: Send the plot to the default printer.

     : Permits to accumulate multiple plots in the same display. For example ice cuts at different cutting plane positions, or different icing time. All the plots must be sharing the same dataset mode (For example, you cannot mix a temperature plot with a heat flux plot).

    Up/Down: Permits the 2D plot panel to be resized vertically. Horizontal resize is done with the view port and tab splitter grip which affects all the panels.

    Figure 16.17: 2D Plot Menu

    2D Plot Menu

    Save one file: Save all the date from plot to one plain text file.

    Save multiple files: Save data from plot in one plain text file per curve.

    Curve Settings: This opens a dialog to edit the width, color and style of visible curves.

    16.2.8.2. Selection Panel

    Clicking the 3D data when in picking mode   (Alt + click or P +click) will select the closest node to the XYZ point clicked upon.

    The currently selected node is shown as a white dot:

    The node ID is shown in the Node field (node identifiers start at 1).

    The node coordinate is in X/Y/Z fields.

    The node scalar value, for the currently selected datafield is shown in Value.

    If the scalar value is a velocity magnitude, the individual X/Y/Z components are also displayed.

    Figure 16.18: Node Selection Tool

    Node Selection Tool

    16.2.8.3. Computation/Integration

    To expand the panel, double-click the Compute header.

    Figure 16.19: Compute Panel Window

    Compute Panel Window

    16.2.8.3.1. Surface Integration

    In the Target menu, select the boundary condition to work on and click the Compute button.

    • Area: Area of the surface boundary condition.

    • Integral: Integrated value of the current dataset, on the boundary condition.

    • Average, Min, Max: Statistics of the current dataset, on the boundary condition.

    16.2.8.3.2. Mass Flow Integration

    In the Target menu, select the boundary condition to work on and click the Compute button.

    This mode is only valid for airflow, and will use the Density and Velocity components of the solution.

    • Area: Area of the surface boundary condition.

    • Avg Normal X/Y/Z: Integrated average value of the surface normal.

    • Integral: Integrated mass flow value.

    16.2.8.3.3. Volume Integration

    • Volume: Volume of the mesh.

    • Integ. Scalar: Integrated value of the loaded scalar solution, through the whole volume.

    16.2.9. ICE3D Solutions

    Viewmerical has a special mode optimized to display ICE3D output files. These output files are:

    Table 16.16: ICE3D Output Files

    Output FilesDescription

    map.grid

    Grid walls on icing surfaces.

    ice.grid

    Iced surface (displaced grid of map.grid, with the ice thickness).

    swimsol

    Nodal solution, applicable to map.grid/ice.grid.


    The View Ice menu/button, from FENSAP-ICE permits to launch Viewmerical in this mode, loading the 3 files automatically. From the Open files dialog, select the FENSAP-ICE grid = map.grid and ICE3D full solution (map.grid + swimsol) = swimsol.

    16.2.9.1. The ICE3D Panel

    Ice Cover

    Displays the ice in white, over a metallic base mesh. The ice is only displayed where the threshold is respected. For example if the ice thickness is more than the specified value. This is used to clip the display of near-zero values. Multiple threshold variables are available.

    The default threshold is Ice Growth which is accounting for all the growth since the start of the computation(s). Ice thickness and Instant Ice Growth are based on data relative to the last ICE3D simulation.

    Table 16.17: Display Mode

    ModeDisplays

    Ice cover - shaded

    As ice cover, but with some shading on the ice shape.

    Ice cover (only)

    Only displays the ice cover, the shading options and color settings of the current object apply to the ice cover.

    Ice solution - Overlay

    swimsol scalar data is applied to the ice shape grid (shown with the threshold).

    Ice solution

    swimsol scalar data mapped on the ice.grid shape grid.

    Surface solution

    swimsol scalar data mapped on the map.grid.

    Glaze/Rime/Film

    Displays in colors the zones of Glaze/Rime/Film.

    CAD output

    CAD Output

    16.2.9.2. CAD Output

    The CAD Output mode permits to select an iced zone - using the same threshold used for the ice cover display - and save the ice shape to a .stl or point cloud file.

    Such files can then be used with CAD or 3D printing software to reconstruct the ICE shape.

    From the ice cover:

    The surface for the CAD would be:

    Select the most appropriate threshold, to avoid CAD artifacts.

    The surface can be saved to a CAD-friendly file using the options from the gray cube menu.

    16.2.9.2.1. CAD Surface Cleanup

    If the CAD surface contains islands (small surfaces disconnected to the main iced surface), such as:

    Or holes in the iced surface:

    Use the Cleanup options to correct these artifacts.

    16.2.9.2.2. Boundary Edge Smoothing

    To remove sharp edges in the CAD boundary, such as:

    Use the Edge smoothing function:

    Additional triangles will be added, to smooth the external edges of the CAD (not present in the original grid, but reusing original node coordinates).

    Angle:

    More degrees will lead to more smoothing.

    Iterations:

    Number of times this process is repeated.

    16.2.9.2.3. Output

    Use the   icon to access the output commands:

    The CAD surface can be exported to a .stl file, readable by most CAD software, or to a point list file.

    STL output will write two files: FILE.stl and FILE_surf.stl, FILE.stl is the displaced ice surface, FILE_surf.stl is the base wing surface:

    Labels:

    For .stl files, from this setting each triangle patch will be saved in a different zone named for each boundary condition (or by Patch/Boundary Conditions+Patches).

    Snap edges to map.grid:

    In the case of a 3D ice shape (not a 2D periodic/symmetric grid) if the two files are joined together, they can be assembled in a gap-free 3D shape suitable for 3D printing. For a perfectly gap-free shape, Snap edges to map.grid is required, as it will use the coordinates of the wing surface for each of the boundary edges of the iced surface.

    16.2.9.3. MCCS Extraction

    Maximum combined cross-section (MCCS) is a method developed at NASA Glenn Research Center to represent and document ice shapes obtained on 3D swept wings. These wings accrete ice with scallop and lobster-tail features which are quite variable in the spanwise direction. Extracting ice shape tracings for 2D data plotting is not representative of the 3D variations along the span. The state-of-the-art to document these type of ice shapes include laser scanning the ice to digitize its shape in STL format. Once available in digital form, several data cuts perpendicular to the leading edge are done and combined into a single ice shape curve that traces the silhouette of these cuts. This silhouette is not the real ice shape, but a combination of all the ice shapes along a section of the span. Viewmerical does not directly provide a way to produce the MCCS curve, but it can be used to make such cuts along the span that can be combined into the MCCS using a python script provided with this installation package of FENSAP-ICE. The file is located at fensapice/data/templates/scripts/mccs.py. This script requires Python version 3 and above, and the libraries pandas and shapely to be installed. These libraries are not provided by Ansys but can be downloaded from their providers. These libraries are available with BSD licenses without any warranties. You can review each library license disclaimer and terms of use before using the mccs.py script provided by Ansys.

    The process to use the MCCS script is as follows (Linux):

    • Install pandas and shapely in your local copy of python. This needs to be done only once.

      • In your home directory, create a python environment, and name it my_venv or another preferred name:

        python -m venv my_venv

      • Install the required packages:

        ./my_venv/bin/pip3 pandas

        ./my_venv/bin/pip3 shapely

      • Launching this copy of python will contain the libraries. You can verify by this by running the following:

        ~/my_venv/bin/python

    • Right-click the config icon of a multi-shot run in the FENSAP-ICE project window and choose Open terminal to start a Linux command line terminal with FENSAP-ICE environment and paths preset.

    • Use the command line tool convertgrid, that should be already accessible with the current path settings, to rotate the iced grid file in the opposite sweep direction to align the leading edge with the span direction main coordinate:

      $NTI_PATH/convertgrid ice.grid.ice.000010 ice.grid.rotated -rotateZ=30

      Figure 16.20: Shot 10 Ice Grid of a 30-Degree Swept Wing Case Rotated to Align Its Leading Edge With One of the Primary Coordinates (Y in This Case)

      Shot 10 Ice Grid of a 30-Degree Swept Wing Case Rotated to Align Its Leading Edge With One of the Primary Coordinates (Y in This Case)

    • Load the rotated grid file in Viewmerical:

      $NTI_PATH/nti_3dview ice.grid.rotated

    • Using the Query / 2D Plot function, choose the correct cutting plane direction and save several curves across the span. The   button at the bottom right corner of the 2D plot will save a curve. You can drag the graph panel leftward to increase the length of the slider and have a finer control on the cut location, or enter the location manually:

    • Save all the curves to a single data file using the cube menu at the top right corner:

    • Launch the MCCS python script with your local python copy that includes pandas and shapely, and provide the file name that contains the ice cuts:

      A new file will be created adding the suffix .mccs.csv to the original file name. This is a two-column text file where the values are separated by commas (CVS format).

    • You can plot the curve with your preferred data plotting software:

    16.2.10. Command Line Usage

    The files to open with Viewmerical can be specified on the command line.

    Typical usages:

    • nti_3dview GRID3D gridfilename

      Loads one grid.

    • nti_3dview GRID3D grid1 EOL GRID3D grid2

      Loads two grids, EOL is required to separate two commands.

    • nti_3dview SOLN3D gridfilename solutionfile

      Loads one grid & solution dataset.

    • nti_3dview SOLN3D gridfilename solutionfile:TEMP

      Loads one grid & solution dataset, and loads the TEMP datafield (4-letter field identifier of FENSAP-style solution files).

    • nti_3dview ICE3D

      Loads map.grid, swimsol and ice.grid from the current directory.

    Additional command syntax are listed in the -h all command-line help output, however any command not listed in this user manual may not yet be fully supported.