CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   DxFoam reader update (https://www.cfd-online.com/Forums/openfoam-post-processing/61395-dxfoam-reader-update.html)

lr103476 February 23, 2007 11:25

Thanks for the response, using
 
Thanks for the response, using the manuals I could figure things out. We also got only a couple of Tecplot licenses and more and more people are going to use those. Although Tecplot works perfectly using macros and scripting for postprocessing a lot of data (unsteady 3D), I am interested in using a good alternative.

Alright, I typed: dxFoam simple in the $FOAM_RUN/tutorials/icoFoam dir and it loads the cavity case (indeed the first one its encounters).

When I press the 'execute once' button (to get the image window, according to the manual) I get the following error:

ERROR: Image: AutoAxes: Invalid data: cannot open font fixed

How can I solve this?

Regards, Frank

dmoroian February 24, 2007 11:31

Hm, that is strange, but you c
 
Hm, that is strange, but you can disable the AutoAxes: double click on the "Image" control (the green rectangle on which it is written Image), then go to Options and disable AutoAxes.
http://www.cfd-online.com/OpenFOAM_D...ges/1/3890.png

Dragos

lr103476 February 26, 2007 11:14

mmm, strange. I start using: d
 
mmm, strange. I start using: dxFoam simple, and immediately it fails to open a directory (does not says which one its expecting).
After that the editor is opened, the image button is present, but I am not able to click on it (to disable the autoaxes).

Could the problem be caused by the fact that I am using version 4.4.0. I got problems installing 4.4.4 (binary as well as from source).

Regards, Frank

lr103476 February 27, 2007 07:14

Problems solved: I had to fix
 
Problems solved: I had to fix the path in ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/dxFoam/bashrc

How can I visualise the grid on a few patches, I dont want to see the internal grid.

Frank

dmoroian February 27, 2007 10:27

In the simple.net, there is a
 
In the simple.net, there is a ShowBoundary module which shows all the boundaries of the computational domain. If you add a ShowConnections to it, then it will print the mesh on the boundaries:{ShowConnections}

Dragos
http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif simple.net

lr103476 February 27, 2007 15:54

Allright thanks. I find workin
 
Allright thanks. I find working with openDX not very easy and straightforward. Right now I managed to use the postFoam.net and simple.net macro files, but the first is very complex, while simple.net only has a little number of options.

1) How do you extend simple.net? By coding or by creating extra blocks in the editor?

2) How do I show the grid on a selection of patches. What kind of block do I have to create in the editor for that?

Thanks,
Frank

dmoroian February 28, 2007 06:22

Hello Frank, 1) The easiest w
 
Hello Frank,
1) The easiest way to change a net is through the visual editor (add green rectangles in the window), but you can also edit directly the net file using a simple text editor.
2) The information about names of boundaries is not, as far as I know, included in the reader. If you want to select different surfaces, you can use modules Mark->Include->Unmark, which enable you to get only the boundaries you need based on different criteria (dimension for instance). In the attached image, I selected only the mesh on the upper boundary: http://www.cfd-online.com/OpenFOAM_D...ges/1/3911.jpg

lr103476 February 28, 2007 07:29

Thanks, I begin to understand
 
Thanks, I begin to understand the way openDX works. I need to show the mesh on a moving object, using the dimension to include/exclude does not work for that purpose. Tecplot is far more userfriendly, but I need polyhedrals at mesh coarsening regions.

Frank

dmoroian February 28, 2007 07:59

If you have any other way of i
 
If you have any other way of identifying the object you want to plot (like a flag on the cell for instance), than you can use that instead of the dimension.
Until now, I did not find a tecplot feature that could not be at least simulated by opendx.

Dragos

msrinath80 June 8, 2007 15:44

Hrv: What modifications do I n
 
Hrv: What modifications do I need to make to get dxFoamExec compiled on OF 1.4. It appears that lots of tetDecomp* include files are needed?

msrinath80 June 12, 2007 10:30

Hello again everyone! Has anyo
 
Hello again everyone! Has anyone managed to get dxFoamExec running in OpenFOAM 1.4? If so, I would appreciate if you could share the procedure you followed. Thanks in advance!

ed_teller July 10, 2007 11:11

Hi FoamWorld, There seems t
 
Hi FoamWorld,

There seems to be some kind of Prob with dxFoamExec in release version of OF 1.3...

I follow the instructions in this post, i dowload dxFoamExec_HJ_21Feb2007.tgz from the link above, unpack it in ~/../utilities/postprocessing/graphics/dx or whatever, replace lagrangianSubDir by lagrangian, and comment out lines 234-254 in foamChangeTime.C, finally when i type wmake in the ../dxFoamExec directory, the compilation starts, but ends up prematurely with a cryptic message... Obviously that dxFoam simple never finds the path to dxFoamExec that is not built...

What am i doing wrong here...?

Thanks everyone.. :-)

ed_teller July 16, 2007 09:40

Hello World, I definitely w
 
Hello World,

I definitely would like to set OpenDX working w/ OpenFOAM, since some of its postprocessing features are more developed than ParaView, but somehow i am missing something in the sequence that i used to try to get dxFoamExec "wmaked" under Novell Suse 10.1... could somebody out there help me pls...?

Thanks

Alexandre

msrinath80 July 16, 2007 10:06

Hrv: Have you had time to try
 
Hrv: Have you had time to try and port dxFoamexec to OF 1.4? Any help is appreciated. Thanks!

tehache August 10, 2007 08:32

Hi all, I am just trying to
 
Hi all,

I am just trying to get into using dx with openfoam.
The link to dxFoamExec Hrvoje posted above does not work for me. I also had a look at http://powerlab.fsb.hr/ped/kturbo/OpenFOAM, but could not find a dxFoam. Is it perhaps included somewhere else?
(did not mention I also did not find it in my OpenFOAM1.4 installation..)

Any hints?

Thank you!

Thomas

msrinath80 August 10, 2007 17:39

Thomas, it's a little complica
 
Thomas, it's a little complicated. dxFoam was present in one of the ancient releases 1.1 or 1.2. So you need some sources from those versions. Then you combine with dxFoamExec after building OpenDX with shared library support so that you can use dxFoam. I've done it in OpenFOAM 1.3. Since some of the tetdecomposition stuff has been removed from 1.4 dxFoamExec will not build without modifications. I have not had the inspiration to get it to work on 1.4 yet. Maybe I will try again this weekend. Will keep you posted.

hjasak August 10, 2007 17:50

Don't waste too much effort -
 
Don't waste too much effort - I've got a working version for 1.4 and 1.4. release. This also applies to the tet-FEM mesh motion (much faster now) and various other bits and bobs.

For starters, \attach(dxFoamExec.tgz,dxFoamExec.tgz)

Enjoy,

Hrv

hjasak August 10, 2007 17:51

Woops, try again: http://w
 
Woops, try again:

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif dxFoamExec.tgz

msrinath80 September 11, 2007 18:25

Hrv, I've stumbled into a prob
 
Hrv, I've stumbled into a problem with OF 1.4.1: Here is the transcript:

[madhavan@tohirdhurd dxFoamExec]$ wmake
Making dependency list for source file dxFoamExec.c
Making dependency list for source file createDxConnections.C
could not open file tetPolyMesh.H for source file createDxConnections.C
Making dependency list for source file dxDatabase.C
could not open file tetPolyMesh.H for source file dxDatabase.C
Making dependency list for source file dxFoamExecInit.C
Making dependency list for source file foamGet.C
could not open file tetPointFields.H for source file foamGet.C
Making dependency list for source file foamCreateDatabase.C
could not open file tetPolyMesh.H for source file foamCreateDatabase.C
Making dependency list for source file foamReadMesh.C
could not open file tetPolyMesh.H for source file foamReadMesh.C
Making dependency list for source file dxFvMesh.C
could not open file tetPolyMesh.H for source file dxFvMesh.C
Making dependency list for source file dxFvMeshMove.C
could not open file tetPolyMesh.H for source file dxFvMeshMove.C
Making dependency list for source file foamNearestTime.C
Making dependency list for source file foamChangeTime.C
could not open file tetPolyMesh.H for source file foamChangeTime.C
Making dependency list for source file createDxPositions.C
could not open file tetPolyMesh.H for source file createDxPositions.C
Making dependency list for source file createDxMesh.C
could not open file tetPolyMesh.H for source file createDxMesh.C
Making dependency list for source file createDxField.C
Making dependency list for source file foamReadSTL.C
Making dependency list for source file foamReadField.C
could not open file tetPolyMesh.H for source file foamReadField.C
could not open file tetPointFields.H for source file foamReadField.C
Making dependency list for source file foamReadVolScalarField.C
could not open file tetPolyMesh.H for source file foamReadVolScalarField.C
could not open file tetPointFields.H for source file foamReadVolScalarField.C
Making dependency list for source file foamReadSurfaceScalarField.C
could not open file tetPolyMesh.H for source file foamReadSurfaceScalarField.C
could not open file tetPointFields.H for source file foamReadSurfaceScalarField.C
Making dependency list for source file foamReadLagrangianScalarField.C
could not open file tetPolyMesh.H for source file foamReadLagrangianScalarField.C
could not open file tetPointFields.H for source file foamReadLagrangianScalarField.C
Making dependency list for source file foamReadPointScalarField.C
could not open file tetPolyMesh.H for source file foamReadPointScalarField.C
could not open file tetPointFields.H for source file foamReadPointScalarField.C
Making dependency list for source file foamReadTetPointScalarField.C
could not open file tetPolyMesh.H for source file foamReadTetPointScalarField.C
could not open file tetPointFields.H for source file foamReadTetPointScalarField.C
Making dependency list for source file foamIndexCells.C
could not open file tetPolyMesh.H for source file foamIndexCells.C
could not open file tetPointFields.H for source file foamIndexCells.C
Making dependency list for source file foamGetSet.C
could not open file tetPolyMesh.H for source file foamGetSet.C
could not open file tetPointFields.H for source file foamGetSet.C
Making dependency list for source file foamIndexPatches.C
could not open file tetPolyMesh.H for source file foamIndexPatches.C
could not open file tetPointFields.H for source file foamIndexPatches.C
Making dependency list for source file foamFeatureLines.C
could not open file tetPolyMesh.H for source file foamFeatureLines.C
Making dependency list for source file foamShowConnections.C
could not open file tetPolyMesh.H for source file foamShowConnections.C
could not open file tetPointFields.H for source file foamShowConnections.C
Making dependency list for source file createLagrangianField.C
could not open file tetPolyMesh.H for source file createLagrangianField.C
Making dependency list for source file featureLines.C
SOURCE=dxFoamExec.c ; gcc -m64 -Dlinux64 -DDP -Wall -march=opteron -O3 -fno-gcse -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/lagrangian/basic/lnInclude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/tetDecompositionFiniteElement/lnInc lude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -Dlinux -I/home/madhavan/OpenFOAM/linux64/dx/include -I/usr/X11R6/include -IlnInclude -I. -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dxFoamExec.o
SOURCE=createDxConnections.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/lagrangian/basic/lnInclude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/tetDecompositionFiniteElement/lnInc lude -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -Dlinux -I/home/madhavan/OpenFOAM/linux64/dx/include -I/usr/X11R6/include -IlnInclude -I. -I/home/madhavan/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/createDxConnections.o
In file included from createDxConnections.C:31:
dxFvMesh.H:69:25: error: tetPolyMesh.H: No such file or directory
In file included from createDxConnections.C:31:
dxFvMesh.H:132: error: ISO C++ forbids declaration of 'tetPolyMesh' with no type
dxFvMesh.H:132: error: expected ';' before '*' token
dxFvMesh.H:286: error: ISO C++ forbids declaration of 'tetPolyMesh' with no type
dxFvMesh.H:286: error: expected ';' before '&' token
createDxConnections.C:947: error: expected `;' at end of input
createDxConnections.C:947: error: expected `}' at end of input
dxFvMesh.H:284: error: expected unqualified-id at end of input
dxFvMesh.H:284: error: expected `}' at end of input
make: *** [Make/linux64GccDPOpt/createDxConnections.o] Error 1

Can I somehow deactivate all the tetdecomp-related stuff to get dxFoamExec to build?

hjasak September 12, 2007 06:30

Well, I've got much better:
 
Well, I've got much better:

Just check out the dev version from SVN and you not only get the dxFoam reader, but also all of the tet FEM stuff (with full functionality), moving mesh solvers, finite area, working topological changes etc etc.

The announcement was done yesterday: The OpenFOAM extensions project.

Enjoy,

Hrv


All times are GMT -4. The time now is 22:44.