CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Ensight

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2003, 14:30
Default I 'backported' the Foam2.2 fo
  #1
Mattijs Janssens (Mattijs)
Guest
 
Posts: n/a
I 'backported' the Foam2.2 foamToEnsight converter to Foam2.1. It solves a few problems with complex cell shapes. Contact me if you are interested.
  Reply With Quote

Old   March 6, 2005, 16:01
Default Sorry to post here, I couldn'
  #2
Ali (Ali)
Guest
 
Posts: n/a
Sorry to post here, I couldn't create a new thread (??). Has anyone written a openFOAM to Tecplot converter?
  Reply With Quote

Old   August 25, 2005, 06:29
Default Does version 1.2 support postp
  #3
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18
hani is on a distinguished road
Does version 1.2 support postprocessing in Ensight76?

I had problems when converting from version 1.0.2 to 1.2. The OpenFoam option disappeared in Ensight76.

When I added the following to my .cshrc file it worked again:
source $HOME/.OpenFOAM-1.0.2/apps/ensightFoam/cshrc
This is however from the 1.0.2-version. Should I have to do this or do you think I did something else wrong?
hani is offline   Reply With Quote

Old   August 25, 2005, 07:03
Default Hola senore, Should work ju
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Hola senore,

Should work just as good as before.

Check the CEI_HOME variable in cshrc
and make sure you have source .../ensightFoam/cshrc in your ~/.OpenFOAM-1.2/cshrc.
niklas is offline   Reply With Quote

Old   August 25, 2005, 07:35
Default CEI_HOME is not set in either
  #5
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18
hani is on a distinguished road
CEI_HOME is not set in either of the following:
~/.cshrc
$HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/cshrc

I got no ~/.OpenFOAM-1.2 directory when installing 1.2
hani is offline   Reply With Quote

Old   August 25, 2005, 07:39
Default You have forgotten to cp -r
  #6
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
You have forgotten to
cp -r OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2 ~/.

dont forget to also change you .cshrc accordingly

N
niklas is offline   Reply With Quote

Old   August 25, 2005, 08:30
Default I can't find that 'cp -r ...'
  #7
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18
hani is on a distinguished road
I can't find that 'cp -r ...' in the installation instruction. The README file just tells me where to find the .OpenFOAM-1.2 directory, not that it should be copied. I am also instructed to use the original path to the cshrc file i.e.
$HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/cshrc
when sourcing in my .cshrc file. I'm a bit confused.

I guess that I also have to un-comment the line containing
SOURCE $HOME/$FOAM_DOT_DIR/apps/ensightFoam/cshrc
in
$HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/cshrc
hani is offline   Reply With Quote

Old   August 25, 2005, 08:40
Default Hmmm, Havent read the readme.
  #8
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Hmmm, Havent read the readme.
seems like it has changed

anyway, it doesnt matter where you keep it, in $HOME or $HOME/OpenFOAM/OpenFOAM-1.2 as long as you source it and
yes, uncomment the source-line.

N
niklas is offline   Reply With Quote

Old   August 25, 2005, 08:48
Default Then I think that the problem
  #9
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 205
Rep Power: 18
hani is on a distinguished road
Then I think that the problem is likely to be in the commented line
SOURCE $HOME/$FOAM_DOT_DIR/apps/ensightFoam/cshrc
If it had been something like
$HOME/OpenFOAM/OpenFOAM-1.2/.OpenFOAM-1.2/cshrc
the file would have been found and I would just have to uncomment the line, without copying the whole $HOME/OpenFOAM/OpenFOAM-1.2/ directory
hani is offline   Reply With Quote

Old   February 14, 2006, 06:41
Default I have a strange problem with
  #10
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
I have a strange problem with the foamToEnsight converter.
When I use the converter for a specific timestep all is fine. Performing the converter over all timesteps for a transient problem the following error occurs trying to open the case file:

[read casefile]
Error> verify_increasing_times() in timesets.c:559
of EnSight Server 8.0.7(j):
Error sequencing data.
Descending/duplicate ordered time values: t[19:18]={0,60}
Error> readensight_casefile() in resu.c:934
of EnSight Server 8.0.7(j):
Error sequencing data.
initializing time-set spans using case data format

OpenFoam 1.2, Ensight 8.0.7 Gold

any ideas how to get rid of this problem?
stefanke is offline   Reply With Quote

Old   February 18, 2006, 14:31
Default This is with any OpenFOAM case
  #11
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
This is with any OpenFOAM case? Non-parallel run?

Can you have a look in the generated case file and compare it to one which does work? Can you figure out the fix (source is in postProcessing/dataConversion/foamToEnsight) and post it? We do not have Ensight here so cannot test.
mattijs is offline   Reply With Quote

Old   February 19, 2006, 08:11
Default Hi Mattijs, I have fixed th
  #12
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Hi Mattijs,

I have fixed the sequencing data error. But there are another problems:

no1: moving meshes
mesh.moving() always returns 0 but it is a moving mesh (engineFoam). This results in missing ensight mesh files for the different time steps!

no2: lagragian
If there are no particles at the begining, the converter aborts because in the lagrangian directroy there is only a points file. The problem is that the converter expect (in case of lagrangian=true) that all lagrangian data are available.


I hope I can fix the bugs in the foamToEnsight converter especially for the problem no1!
stefanke is offline   Reply With Quote

Old   February 19, 2006, 10:02
Default 1: the mesh movement is/should
  #13
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
1: the mesh movement is/should be detected in moveMesh.H.

If it detects a "points" file it does a mesh.movePoints(...) which sets the 'moving()' flag. Maybe it doesn't find the points file?


2: Guess that never was foreseen, to have lagrangian without data.
mattijs is offline   Reply With Quote

Old   February 19, 2006, 10:12
Default 1. the points dict was not fou
  #14
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
1. the points dict was not found!
fixed with mesh.Name() -> polyMesh::meshSubDir

2. The problem occurs i.e. in engine applications because at the begining there are no particles but after SOI there are!

There are some minor problems with moving meshes but I will try to fix them.
stefanke is offline   Reply With Quote

Old   February 19, 2006, 11:30
Default Mattijes, I am on the way .
  #15
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Mattijes,

I am on the way ....

one problem:
------------
I have to change the geometry file name (in the ensight case file) in case of moving meshes. But "a priori" I don't know if there is a moving mesh (this information is first available at the second time step) so how to write the right filename to the file?

without moving mesh: xxxxxx.000.mesh
with moving mesh: xxxxxx.***.mesh

The only solution coming to my mind is to manipulate the file at the end of foamToEnsight.C, after the case file was written (stream manipluation: substitute xxxxxx.000.mesh -> xxxxx.***.mesh if mesh.moving() == true). But I do not know how to this?
stefanke is offline   Reply With Quote

Old   February 19, 2006, 12:41
Default Neither do I. Sounds a bit sca
  #16
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Neither do I. Sounds a bit scary what you're trying to do.

In my opinion a better way is to do a scan first of the time directories to see if it is a moving mesh case.
mattijs is offline   Reply With Quote

Old   February 20, 2006, 05:32
Default the fixed version of foamToEns
  #17
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
the fixed version of foamToEnsight:
http://n.ethz.ch/student/stefanke/do...foamToEnsight/

fixed bugs:
-----------
- some minor bugs when dealing with moving meshes
- wrong time step ordering in the case file
- wrong position of "measured ...***.lagrangian"
stefanke is offline   Reply With Quote

Old   February 20, 2006, 08:30
Default Thanks. Will put it into next
  #18
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks. Will put it into next release.
mattijs is offline   Reply With Quote

Old   February 20, 2006, 16:10
Default Mattijs, there is one file
  #19
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Mattijs,

there is one file which was missing!
http://n.ethz.ch/student/stefanke/download/OpenFoam/src/foamToEnsight/ensightCas eTail.H
stefanke is offline   Reply With Quote

Old   April 17, 2006, 08:20
Default Hi Mattijs, there still one
  #20
Member
 
stefan
Join Date: Mar 2009
Posts: 96
Rep Power: 17
stefanke is on a distinguished road
Hi Mattijs,

there still one bug (perhaps introduced by myself) in the foamToEnsight (OF v.1.3) converter.

Bug info: wrong position of the lagrangian file definition in the case file. Ensight complains about a unkown keyword in the case file.

To fix this bug please correct the ensightCaseHeader.H to:

if (Pstream::master())
{
ensightCaseFile << "FORMAT" << nl;
ensightCaseFile << "type: ensight gold" << nl << nl;
}

I hope the converter will works now without any problems!
stefanke is offline   Reply With Quote

Reply


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
A questions about Ensight 8.2 alan EnSight 2 December 19, 2012 14:52
Ensight Jo Siemens 1 May 12, 2010 09:45
Using Ensight anyone? vivek FLUENT 1 May 12, 2010 09:40
Ensight Povray Fab EnSight 1 April 17, 2007 14:54
Export to ensight! Anders Jönson Siemens 2 March 29, 2000 07:03


All times are GMT -4. The time now is 08:48.