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

DxFoam reader update

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2006, 03:57
Default Dear OpenDX lovers, The new
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Dear OpenDX lovers,

The new version of OpenDX has been out for a while and I have updated the OpenFOAM reader module to version 4.4.0. All works fine.

The only issue to report is that on Suse 10.1 I had to add -lssp to the link line in several places during the dx build. For more info or if you encounter problems, feel free to give me a shout.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 1, 2006, 12:13
Default Hrv, can you send me some of y
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Hrv, can you send me some of your .net files for glyphs and contours (preferably with the capability to use the sequencer for different time steps).

Thanks!
msrinath80 is offline   Reply With Quote

Old   August 2, 2006, 05:05
Default You can find my dx networks in
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
You can find my dx networks in a pack in:

http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/misc/

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 2, 2006, 12:56
Default Many thanks Hrv. Much apprecia
  #4
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Many thanks Hrv. Much appreciated!
msrinath80 is offline   Reply With Quote

Old   February 21, 2007, 07:21
Default Hi Hrv, Can you post the dx
  #5
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Hi Hrv,

Can you post the dxFoam sources that have been modified to work with OpenFOAM version 1.3. I'm having a hard time using paraFoam to visualize the grid when I merge patches whilst creating non-conformal meshes. I gather that dx displays the mesh exactly. Right?

Thanks
msrinath80 is offline   Reply With Quote

Old   February 21, 2007, 08:56
Default Yes, correct: this is why I ke
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Yes, correct: this is why I keep it alive. Attached, enjoy,

Hrv

dxFoamExec_HJ_21Feb2007.tgz
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 21, 2007, 14:18
Default Hi Hrv, Thanks for the sour
  #7
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Hi Hrv,

Thanks for the source. I set DXROOT to /usr/local/dx and DXARCH to linux. Follow that with a 'wmake dxFoamExec' and it seems to work; except that I am stuck with this error message midway during compiling:

foamChangeTime.C: In function 'Error m_foamChangeTime(object**, object**)':
foamChangeTime.C:238: error: 'lagrangianSubDir' is not a member of 'Foam::Cloud<foam::passiveparticle>'
make: *** [Make/linuxAMD64Gcc4DPOpt/foamChangeTime.o] Error 1

Any hints?
msrinath80 is offline   Reply With Quote

Old   February 22, 2007, 04:42
Default Hi pUl|, I had the same probl
  #8
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi pUl|,
I had the same problem, and Hrv's suggestion was:
For the moment, just put "lagrangian" instead of lagrangianSubDir.
, though I still could not compile it, so here is a small work around:
In order to complete the compilation I had to comment the lines involving the sprayObjects object (lines 234-254 in foamChangeTime.C). At least for the moment I'm not postprocessing particle tracks so it is OK.

I have a simple net example, that might help you in using the excelent reader dxFoamExec: simple.net .

I hope this will be helpfull,
Dragos
dmoroian is offline   Reply With Quote

Old   February 23, 2007, 03:46
Default Thanks Dragos! After commentin
  #9
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Thanks Dragos! After commenting out those lines I was able to rebuild dxFoamExec. I then pulled out the dxFoam script from OpenFOAM 1.1 and put it back in 1.3. Now I can view the non-conformal mesh the way it was intended! Oh, and I had to rebuild OpenDX with the --with-shared option when running the configure script.

One question however remains: If indeed the two patches in the mesh are merged using polyhedral cells, why does checkMesh report non-orthogonality and skewness when there should be none?

Excerpt from checkMesh:

Mesh non-orthogonality Max: 40.6013 average: 4.5195
Non-orthogonality check OK.

Face pyramids OK.

Max skewness = 8.83042 percent. Face skewness OK.

Minumum edge length = 0.000714286. Maximum edge length = 0.01.

All angles in faces are convex or less than 10 degrees concave.

Face flatness (1 = flat, 0 = butterfly) : average = 1 min = 1
All faces are flat in that the ratio between projected and actual area is > 0.8

Geometry check done.

Number of cells by type:
hexahedra: 865
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 35
Number of regions: 1 (OK).
Mesh OK.

A visual picture of the mesh from OpenDX is available here:

http://www.ualberta.ca/~madhavan/image.png
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 03:50
Default Oh, and one more thing How do
  #10
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Oh, and one more thing How do I use your simple.net. Just running dxFoamExec leaves me at some kind of OpenDX shell prompt. Any hints on how to proceed?
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 04:00
Default The simplest way to use simple
  #11
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
The simplest way to use simple.net is to place it in ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/dxFoam/networks and then run
dxFoam simple
I hope you'll like it!

Dragos
dmoroian is offline   Reply With Quote

Old   February 23, 2007, 04:03
Default Hi pUl|, How did you construc
  #12
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi pUl|,
How did you constructed that mesh? It seems that you successfully converted a "hanging nodes" mesh.

Dragos
dmoroian is offline   Reply With Quote

Old   February 23, 2007, 04:06
Default I will post the blockMeshDict
  #13
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
I will post the blockMeshDict in a few minutes.
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 04:07
Default Here it is: Actually I foun
  #14
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Here it is:

Actually I found it on this forum some time back

/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.0 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "";
case "";
instance "";
local "";

class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


convertToMeters 0.1;

vertices
(
// Back plane
(0 0 0)
(0.5 0 0)
(0.5 0 0)
(1 0 0)
(0 1 0)
(0.5 1 0)
(0.5 1 0)
(1 1 0)

// Front plane
(0 0 0.1)
(0.5 0 0.1)
(0.5 0 0.1)
(1 0 0.1)
(0 1 0.1)
(0.5 1 0.1)
(0.5 1 0.1)
(1 1 0.1)
);

blocks
(
hex (0 1 5 4 8 9 13 12) (20 35 1) simpleGrading (1 1 1)
hex (2 3 7 6 10 11 15 14) (10 20 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
wall bottom
(
(0 1 9 8)
(2 3 11 10)
)
wall top
(
(4 12 13 5)
(6 14 15 7)
)
wall left
(
(0 8 12 4)
)
wall right
(
(3 7 15 11)
)

patch leftMerge
(
(1 5 13 9)
)
patch rightMerge
(
(2 10 14 6)
)

);

mergePatchPairs
(
( leftMerge rightMerge )
);


// ************************************************** *********************** //
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 04:14
Default Heya, Basically, checkMesh
  #15
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Heya,

Basically, checkMesh reports the non-orthogonality and skewness on the mesh because the faces are skew and non-orthogonal. Look at the mesh connected with merge patch pairs and tell me if:

- is the line connecting two cell centres across the merged patches normal to the face? It is not, which represents mesh non-orthogonality

- does the line connecting two cell centres across the merged patches go through the centre of the face? It does not, which represents skewness.

Remember, the cells lert and right are now truly polygons (in 2-D) and not some cooked up hexes like in some other codes I won't mention.

Hope that's clear,

Hrv
amuzeshi and Ramzy1990 like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 23, 2007, 04:19
Default Thanks for that really enlight
  #16
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Thanks for that really enlightening explanation Hrv. It all makes sense now. Really appreciate your help
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 04:20
Default Oh, and one more thing. The ca
  #17
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Oh, and one more thing. The case seems to run fine even without any non-orthogonal correctors. Why is that?
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 11:23
Default Could someone explain to me in
  #18
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Could someone explain to me in 2 or 3 lines how openDX should be started / used.

I compiled the last dxFoamExec and I use the networks from prof. Jasak's site. Furthermore I start opendx by just typing: dxFoam in the run dir.

1) First I get three warnings from postFoam.net (unrecognized comments (ignored)).

2) I am able to load cases and visualise stuff, but at every button I click the editor for postFoam.net is opened. Why should I want that??

3) How can I change views and/or zoom in/out or pan inside the windows (which shows the mesh/solution) I cant find a manual, unless you pay for it.

Mostly I use Tecplot, but I am just curious about OpenDX.

Regards, Frank
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   February 23, 2007, 12:06
Default I can answer some of your quer
  #19
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
I can answer some of your queries:

For instance:

How can I change views and/or zoom in/out or pan inside the windows (which shows the mesh/solution) I cant find a manual, unless you pay for it.

In the Image Window, Search for Options -> View Control. Basically everything you need should be in the Options Menu.

And look here (/usr/local/dx/html) for complete documentation.
msrinath80 is offline   Reply With Quote

Old   February 23, 2007, 12:09
Default Hi Frank, I also started with
  #20
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Frank,
I also started with Tecplot, but after that I was forced to use OpenDX (licensing reasons). At start I was confused and I thought it is very hard to use compared to Tecplot, but no longer.
You can find a very comprehensive documentation, incuding a search engine at: OpenDX official documentation. It also includes the manuals in pdf format if you want to print them.
Anyway, if you are a begginer, you may try the simple.net that I placed above. It surely does not have the complexity of postFoam.net but it is much easy-er to be digested by a begginer.

Basically what you have to do is:
1.
cp simple.net ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/dxFoam/networks
2.
cd to_the_root_of_your_case
3.
dxFoam simple
It will load the first case found in that directory. If you have more, you will be able to change the case name from a drop down list, later on.

This is a short introduction, and in no way complete, but I hope it will help you.

Dragos
dmoroian is offline   Reply With Quote

Reply

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
Chemkin reader stefanke OpenFOAM Pre-Processing 28 March 8, 2022 11:16
A reader for cavityOpenFOAM alex OpenFOAM Running, Solving & CFD 11 April 2, 2009 10:57
DxFoam postFoam on mac bigphil OpenFOAM Post-Processing 0 March 13, 2009 07:09
DxFoam crash outputting gif mike_jaworski OpenFOAM Post-Processing 3 January 2, 2008 06:55
[OpenFOAM] Reader should I visualize t%3d0 tj22 ParaView 1 June 30, 2006 11:16


All times are GMT -4. The time now is 13:23.