Visualization and Post Processing of OpenFOAM results a Brie. a Brief Introduction to VTK



Similar documents
Scientific Visualization with Open Source Tools. HM 2014 Julien Jomier

Post-processing and Visualization with Open-Source Tools. Journée Scientifique Centre Image April 9, Julien Jomier

Introduction to Visualization with VTK and ParaView

Visualization with ParaView. Greg Johnson

Visualization with ParaView

Open Source CFD Solver - OpenFOAM

Visualizing Electromagnetic Fields: The Visualization Toolkit. Michael Selvanayagam

Simple visualizations of unstructured grids with VTK

VisIt Visualization Tool

OpenFOAM Opensource and CFD

OpenFOAM postprocessing and advanced running options

MayaVi: A free tool for CFD data visualization

James Ahrens, Berk Geveci, Charles Law. Technical Report

Facts about Visualization Pipelines, applicable to VisIt and ParaView

Integration of C++ digital processing libraries and VTK through Tcl/Tk dynamic loadable extensions

Why are we teaching you VisIt?

Last lecture... Computer Graphics:

How To Run A Steady Case On A Creeper

Introduction to Paraview. H.D.Rajesh

The Visualization Pipeline

VisIVO, a VO-Enabled tool for Scientific Visualization and Data Analysis: Overview and Demo

Exploratory Climate Data Visualization and Analysis

A FRAMEWORK FOR THE INTERACTIVE VISUALIZATION OF ENGINEERING MODELS

Animation of Scientific Data Using VTK Designer

CHAPTER FIVE RESULT ANALYSIS

How is EnSight Uniquely Suited to FLOW-3D Data?

HPC & Visualization. Visualization and High-Performance Computing

bluecape s Official Website

A Guide to the free mesh program Discretizer with OpenFOAM for CFD (Computational Fluid Dynamics)

ParaView s Comparative Viewing, XY Plot, Spreadsheet View, Matrix View

Parallel Analysis and Visualization on Cray Compute Node Linux

VisIVO, an open source, interoperable visualization tool for the Virtual Observatory

Open source, open science

version 3.0 tutorial - Turbulent mixing in a T-junction with CFDSTUDY in SALOME contact: saturne-support@edf.fr


Parallel Large-Scale Visualization

OMIQ srl. Advanced Post-Processing of Flow3D Calculations using Ensight. Federico Monterosso. Ingegneria di componenti e sistemi industriali

S ECOND PROTOTYPE. Activity: Lead Partner: Document classification:

Advanced visualization with VisNow platform Case study #3 Vector data visualization

Cassandra 2.0: Tutorial

Visualisatie BMT. Introduction, visualization, visualization pipeline. Arjan Kok Huub van de Wetering

Distributed Visualization Parallel Visualization Large data volumes

Interactive Data Visualization with Focus on Climate Research

VisIt: A Tool for Visualizing and Analyzing Very Large Data. Hank Childs, Lawrence Berkeley National Laboratory December 13, 2010

CFD: What is it good for?

Modernizing Simulation Input Generation and Post-Simulation Data Visualization with Eclipse ICE

CFD with OpenSource software

Processing Data with rsmap3d Software Services Group Advanced Photon Source Argonne National Laboratory

NaviCell Data Visualization Python API

TVM 4155 Numerical modelling and hydraulics 10. March OpenFOAM homework

An Introduction to Open Source Geospatial Tools

A Hybrid Visualization System for Molecular Models

Outline. Fundamentals. Rendering (of 3D data) Data mappings. Evaluation Interaction

Visualization of Adaptive Mesh Refinement Data with VisIt

Pre-processing in openfoam, mesh generation. OpenFOAM kurs 2013 Håkan Nilsson Olivier Petit

GAMBIT Demo Tutorial

Advanced Visualization for Chemistry

RIC 2007 SNAP: Symbolic Nuclear Analysis Package. Chester Gingrich USNRC/RES 3/13/07

Collaborative modelling and concurrent scientific data analysis:

Scientific Visualization with ParaView

Provenance for Visualizations

Zhenping Liu *, Yao Liang * Virginia Polytechnic Institute and State University. Xu Liang ** University of California, Berkeley

bwgrid Treff MA/HD Sabine Richling, Heinz Kredel Universitätsrechenzentrum Heidelberg Rechenzentrum Universität Mannheim 24.

IDL. Get the answers you need from your data. IDL

Eu-NORSEWInD - Assessment of Viability of Open Source CFD Code for the Wind Industry

Material for tutorial. Twitter: prabhu_r. Slides: Demos:

Avizo AvizoFire - The 3D visualization Software for NDT & Materials Science

CFD software overview comparison, limitations and user interfaces

3D Data visualization with Mayavi

Using open source and commercial visualization packages for analysis and visualization of large simulation dataset

salome-platform.org SALOME7 THE OPEN SOURCE INTEGRATION PLATFORM FOR NUMERICAL SIMULATION

An Interactive 3D Visualization Tool for Large Scale Data Sets for Quantitative Atom Probe Tomography

Open Source Computational Fluid Dynamics

2013 Code_Saturne User Group Meeting. EDF R&D Chatou, France. 9 th April 2013

locuz.com HPC App Portal V2.0 DATASHEET

CMake/CTest/CDash OSCON 2009

FreeFem++-cs, the FreeFem++ Graphical Interface

SeSE/SNIC-UPPMAX: Scientific Visualisation Workshop 2014

Visualization Plugin for ParaView

Tutorials from CAD through CFD for Beginners

How To Develop An Image Guided Software Toolkit

GRAVE: An Interactive Geometry Construction and Visualization Software System for the TORT Radiation Transport Code

Parallel Visualization of Petascale Simulation Results from GROMACS, NAMD and CP2K on IBM Blue Gene/P using VisIt Visualization Toolkit

Manage Software Development in LabVIEW with Professional Tools

OpenFOAM Workshop. Yağmur Gülkanat Res.Assist.

Agent Languages. Overview. Requirements. Java. Tcl/Tk. Telescript. Evaluation. Artificial Intelligence Intelligent Agents

Module 6 Case Studies

In-situ Visualization: State-of-the-art and Some Use Cases

Introduction Our choice Example Problem Final slide :-) Python + FEM. Introduction to SFE. Robert Cimrman

Code Generation Tools for PDEs. Matthew Knepley PETSc Developer Mathematics and Computer Science Division Argonne National Laboratory

Python Documentation & Startup

COMPUTATIONAL FLUID DYNAMICS USING COMMERCIAL CFD CODES

Multiphase Flow - Appendices

Requirements Specification Document

An Open Framework for Reverse Engineering Graph Data Visualization. Alexandru C. Telea Eindhoven University of Technology The Netherlands.

Transcription:

Visualization and Post Processing of OpenFOAM results a Brief Introduction to VTK December 13:th 2007 OpenFOAM Introdutory Course Chalmers University of Technology

Post Processing in OF No built in post processing tool. Choose your weapon. Ensight, Fieldview, OpenDX, ParaView, GMV Converters (VTK, Fluent, GMV) or readers (Ensight, OpenDX, Paraview)

ParaView ParaView. Developed since 2002 by Kitware Inc and Los Alamos National Laboratory (USA). Open Source Can do parallel visualization of large meshes (> 1 billion cells) Plotting, meshing, probing, vectors, volumetric visualization Scriptable (Python)

ParaView and OpenFOAM Different ways of connecting ParaView to OF. With parafoam (included in distribution) + Easy to use, just a wrapper script around ParaView Old version With ParaView from www.paraview.org. + Easy to use Need to run foamtovtk every time Compile ParaView from www.paraview.org. + Can read foam files directly (With reader from foam mailing list) + Better animations (divx) More work involved

Paraview (below the surface) ParaView is a graphical user interface to the VTK-library. VTK (The Visualization Toolkit). It is an open source, freely available software system for 3D computer graphics, image processing, and visualization. Written in C++. Wrappers exists for Java, Tcl and Python.

Paraview (below the surface) With some knowledge in VTK, most visualization/postprocessing/data-handling needs can be handled automatically.

Example Want to display the pressure field of the elbow tutorial and output the result to an image file. Step 1. Run the case: icofoam. elbow Step 2. Run the utility foamtovtk on the case so that we get VTK-readable files. foamtovtk. elbow. This creates a VTK-folder in elbow directory. Step 3. Run python-script on output.

Example Step 3. Run python-script on output../plotelbow.py import os from vtk import * #set the filename for the current case myfilename = elbow/vtk/elbow200.vtk

Example #Need a reader for unstructured grids reader = vtkunstructuredgridreader() reader.setfilename(myfilename) reader.update() #In OpenFOAM all results are Field-data. #This has no concept of cells or nodes. #Need to filter to cells. tocellfilter = vtkfielddatatoattributedatafilter() tocellfilter.setinput(reader.getoutput()) tocellfilter.setinputfieldtocelldatafield() tocellfilter.setoutputattributedatatocelldata()

Example Assign here which field #we are interested in. tocellfilter.setscalarcomponent(0, p,0) #This is all we need to do do calculations. #To get 3D image, need some more components. #First a window renwin = vtkrenderwindow()

Example #Then a renderer. Renders data to an image. ren1 = vtkrenderer() #Add renderer to window renwin.addrenderer(ren1) #Add pressure data to the renderer. #Mapping assigns data to colors and geometry. mapper = vtkdatasetmapper() mapper.setinput(tocellfilter.getoutput())

Example #The object is assigned to an actor. actor = vtkactor() actor.setmapper(mapper) #Add actor to renderer. ren1.addactor(actor) #Finally render image renwin.render()

Example

Basic work flow with VTK Read file Filter data (Extract regions, create vectors etc) Map data to colors Render image

More examples ideas Keep track of long simulations. Publish image on web server. Difficult to do probing or data treatment. Simple custom GUI creation (through Tk). Advanced animations. Image maps. Anything by help of Python modules. :

More examples ideas Keep track of long simulations. Publish image on web server. Difficult to do probing or data treatment. Simple custom GUI creation (through Tk). Advanced animations. Image maps. Anything by help of Python modules. :

More examples ideas Keep track of long simulations. Publish image on web server. Difficult to do probing or data treatment. Simple custom GUI creation (through Tk). Advanced animations. Image maps. Anything by help of Python modules. :

More examples ideas Keep track of long simulations. Publish image on web server. Difficult to do probing or data treatment. Simple custom GUI creation (through Tk). Advanced animations. Image maps. Anything by help of Python modules. :

More examples ideas Keep track of long simulations. Publish image on web server. Difficult to do probing or data treatment. Simple custom GUI creation (through Tk). Advanced animations. Image maps. Anything by help of Python modules. :

Learn More VTK books NGSSC Course in scientific visualization (?) VTK Wiki

The End