EnSight analyze, visualize, communicate EnSight 6.x Advanced Training Part 1 Instructors: Mike...

28
EnSight analyze, visualize, communicate EnSight 6.x Advanced Training Part 1 Instructors: Mike Krogh, Anders Grimsrud

Transcript of EnSight analyze, visualize, communicate EnSight 6.x Advanced Training Part 1 Instructors: Mike...

EnSight analyze, visualize, communicate

EnSight 6.xAdvanced Training

Part 1Instructors:

Mike Krogh, Anders Grimsrud

EnSight analyze, visualize, communicate

Agenda

• Introduction

• Review problem (R1)

• Extended CFD variables

• Surface restricted particles

• VRML output

• Transient data - active parts

• Macros

• Part copies/extracts

• Auxiliary clipping plane

• Multiple cases

EnSight analyze, visualize, communicate

Expectations

• Assuming basic EnSight skills

• Concentrate on some of the more complex features of EnSight

• Hands on approach

• Varied pace

• “Loose” agenda - driven somewhat by class input

EnSight analyze, visualize, communicate

Review

• Work through Problem R1

EnSight analyze, visualize, communicate

Extended CFD Variables

• If your data has variables for density, energy, and momentum/velocity, then the variable list can be extended to show additional computed variables automatically.

‘Prefs Menu’

Click Here

EnSight analyze, visualize, communicate

Click on button afterfilling in the necessaryinformation.

EnSight analyze, visualize, communicate

Surface Restricted Particles

• Effective for finding separation regions.

• Trace limited to tangential component of trace variable offset by a “small” distance from surface.

• “small” distance can be user specified.

EnSight analyze, visualize, communicate

EnSight analyze, visualize, communicate

VRML Output

• VRML files contain 3D geometry and color information.

• Can be viewed by most web browsers with a VRML plugin (in theory).

• Can contain transient data.

• VRML 2 data format used.

EnSight analyze, visualize, communicate

VRML Output - Limitations

• No annotations (text, lines, logos, legends), no plots, no axis, etc. --> Only 3D geometry.

• No transformation info (including local transforms)

• Only transient data can be animated (no moving clips, isosurfaces, particle traces, etc.)

EnSight analyze, visualize, communicate

Transient data - Active parts

• When a time change is requested, parts will update to the new time - unless….

• The representation of the part on the EnSight client is frozen to the current time step. Used to show multiple time steps simultaneously on the screen.

• WARNING: parts are still updated on the server!

EnSight analyze, visualize, communicate

EnSight analyze, visualize, communicate

Macros

• Any chunk of command language saved to a file can be attached to a keyboard key or mouse button as a macro.

• Macros can be defined per-user or per-site.

• Multiple command files can be attached to the same key/button - commands will cycle.

• Can prompt for input.

• Most effective when written as dataset independent.

• Consider the command:command: delay_refresh ON

EnSight analyze, visualize, communicate

Macro Example

• Turn on “Record” in command dialog and specify a name.

• Toggle on the “Delay Refresh”.

• Generate rest of operations.

• When finished, turn “Record” off.

EnSight analyze, visualize, communicate

Macro Example (cont.)

• Move the command file to your .ensight6/macros directory.

• Run macromake utility.

• Either restart EnSight or click “Reload Macros” button.

EnSight analyze, visualize, communicate

Macros (cont.)

• You can prompt user for input with the command language.

• When user value is needed, insert command:– ??Please type ON or OFF

– view: hidden_surface ??Please type ON or OFF

EnSight analyze, visualize, communicate

Macros (cont.)

• If you want to prompt for a part selection, replace the part selection commands with:– part: select_partname_begin– ??Select the parts \n then click “Continue”

– part: select_partname_end– part: get_mainpartlist_select

EnSight analyze, visualize, communicate

Macros (cont.)

• The following example will create a clip plane after the user has been prompted for the plane equation coefficients and the parts.

EnSight analyze, visualize, communicate

Macros (cont.)view_transf: plane_equation ??Enter A B C D values

view_transf: function global

part: select_partname_begin

??Select the parts in the Part List \n and press “continue”

part: select_partname_end

part: get_mainpartlist_select

clip: begin

clip: tool plane

clip: end

clip: create

EnSight analyze, visualize, communicate

Macros (cont.)

• Similarly, if you want to select a variable from the variable list you must insert the following command language:– variable: select_varname_begin– ??Select the variable(s) from the list \n then click Continue

– variable: select_varname_end– variable: get_mainvarlist_select

EnSight analyze, visualize, communicate

Part Extract vs. Copy

• “Extract” command will make a “deep” copy of the selected parts.

• “Copy” command will make a “shallow” copy of the selected parts.

• Copied parts only exist on the client; however most features behave as you would expect.

EnSight analyze, visualize, communicate

Shallow Part “Copy”

• Original Part– Coordinates

– Scalars

– Vectors

– Elements

– Creation Attributes

– Display Attributes

• Copy Part– Coordinates

– Scalars

– Vectors

– Elements

– Creation Attributes

– Display Attributes

EnSight analyze, visualize, communicate

Part Copies (cont.)

• Each copied part can have different display attributes and can be assigned to different frames for transformation control.

EnSight analyze, visualize, communicate

Auxiliary Clipping Plane

• Turn on “global” toggle in View mode. Turn on/off for individual parts in Part mode.

• Can be used to either peer into a “solid” or to cap a “solid” (with the help of an interactive clipping plane tool).

EnSight analyze, visualize, communicate

Auxiliary Clipping Plane (cont.)

• Plane removes geometry “behind” the plane tool.

• Extra auxiliary clipping plane via Command:– test: clip_plane2

EnSight analyze, visualize, communicate

Multiple Cases

• Every dataset is dealt with as a Case

• EnSight can deal with up to 8 concurrent cases

• Each case is handled by a new EnSight server process (all manual connections must be started by hand)

• Variables are merged in variable list

• Time is merged in solution dialog

EnSight analyze, visualize, communicate

Case Dialogs

• Consider Case visibility per viewport

EnSight analyze, visualize, communicate

Case Limitations

• Cannot apply a variable from one case to parts from another case (future feature).

• Cannot merge different case parts.

• When creating a part (e.g. isosurface) from different case parent parts, you will get multiple created parts.

• Cannot group parts from different cases (future feature).