CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > EnSight

OpenFOAM data in Ensight

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2017, 16:07
Default OpenFOAM data in Ensight
Senior Member
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 8
manuc is on a distinguished road
Hello All

I work with a multiregion solver which has a solid and afluid domian.
In OpenFOAM i can convert the data into Ensight readable format using:
foamToEnsight -region <solidname> -latestTime
It creates a folder ensight and write a mesh and case file.
Now if repeat the same for the fluid region it actually overwrites the old Ensight folder.

Assumethat I rename the old folder and obtain the data for solid and fluid domain with 2 different case files and mesh files in two folders.

Is it possible to merge the two case files one for solid and one for fluid generated with the same name, to obtain a combined domain.

thanks in advance
manuc is offline   Reply With Quote

Old   June 14, 2017, 23:50
Senior Member
kevincolburn's Avatar
Kevin Colburn
Join Date: Mar 2009
Location: The Woodlands, TX
Posts: 131
Rep Power: 15
kevincolburn is on a distinguished road

Okay, I'll ask the silly question first... what happens if you don't utilize the -region flag? Do you get both solid and fluid regions written out together? I would have "hoped" that without using the -region flag, that both regions would have been written out (as separate parts ideally), and all would be taken care of.

Okay, now onto trying to assist in your situation. If you access to EnSight 10.2, there is a new capability which allows for separate .case files to be read in as a single "model", and not separate 'cases'. This does require an HPC license (or Gold), as we do sit on top of some underlying capability in the HPC/Gold to get this done. So, do you have a Gold/HPC license? Do you have EnSight 10.2? If yes to both, I'll point you to a relatively simple solution.

If either are 'no'.... I might suggest a little macro that we have, which attempts to combine the cases together (it is very slow, and not all that elegant).

Kevin Colburn
Computational Engineering International, Inc.
kevincolburn is offline   Reply With Quote

Old   June 27, 2017, 17:05
Senior Member
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 8
manuc is on a distinguished road
To answer the first question the option without -region gives no output.

Will try to solve it with your suggestions
manuc is offline   Reply With Quote

Old   October 7, 2019, 05:10
New Member
Join Date: Jun 2015
Location: Aachen
Posts: 26
Rep Power: 9
stamufa is on a distinguished road
Hi Manu,

A late answer but if I've understood you correctly, you can simply do

foamToEnsight -region <regionname1> -name <FolderNameRegion1>
foamToEnsight -region <regionname2> -name <FolderNameRegion2>

You can then open both the first and second cases in EnSight (by keeping the data from the first case loaded), that's as good as a combined case.

stamufa is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 14:55
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Input data from Fortran into OpenFOAM rsanders20 OpenFOAM 5 August 28, 2017 09:58
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 01:51
[General] Batch: Exchange Ensight data wernsen ParaView 0 March 3, 2016 11:53

All times are GMT -4. The time now is 12:55.