Paraview output header files

Submitted by schmeeck on Sat, 12/10/2011 - 16:18

Thanks to all of the developers of CFDEM. I have been obtaining some encouraging results- http://youtu.be/mQN9WmHIW2c . One thing that was bothering me was dealing with pizza.py. It works well, but if it generates output at each coupling step, the dump file becomes enormous. I have attached two header files that output particle positions, radii, and velocities directly to Paraview readable file directories. Each folder has the same time stamp as the OpenFoam files. Thus, both pizza.py and foamToVTK become unnecessary. The first header is inserted in the solver before the time loop. The second is inserted in the time loop.
Also I had modified the locateModel using the meshTools in OpenFOAM. It was much faster, But I see that there is a new engineSearch that is similar in the latest release.
Thanks again.
Mark

AttachmentSize
Plain text icon partOut1.H.txt137 bytes
Plain text icon partOut2.H.txt2.18 KB
cgoniva's picture

cgoniva | Mon, 12/12/2011 - 12:25

Hi Mark,

I'm glad to hear that you could achieve nice results!

It would be great if you could share the code for dumping data in an other format than dump file - sounds really interesting and helpful to save some time (attachment did not work?).

Yes, standard search is a bit slow ;-), but engine search is still being tested for different settings and geometries.

Cheers,
Chris

schmeeck | Tue, 12/13/2011 - 03:48

It appears that the attachments are attached now. The first header file creates a blank file named particles.foam. You can open this directly in Paraview. I have been using the native OpenFOAM reader rather than the reader supplied with OpenFOAM, but perhaps both work.
Also, I was able to get CFDEM running under CentOS at my university's super-cluster. This was not as easy as my personal Debian computer. I have not been able to get OpenFoam to compile on CentOS and have relied on the CentFOAM project. As I remember, the key step in getting the cfdemParticle src library compiled properly was to specify the appropriate mpi_cxx library in the Make - options file. I can try to help if someone else has to work under CentOS.

rqwang | Tue, 11/06/2012 - 14:55

Hi Schmeeck,

I met the same problem as you. The mpi_cxx cannot be found in my cluster installation.
Could you advise where to find it, please?

Thanks.

rq

rqwang | Wed, 11/07/2012 - 17:32

To install in the cluster, the common problem is libmpi_cxx.so is missing.
I found this lib is disabled in openfoam Thirdparty compilation.

So my solution is

1) download openfoam and thirdparty packages.

2) comment $HOME/OpenFOAM/ThirdParty-2.1.x/Allwmake line:100 --disable-mpi-cxx \

3) Then install openfoam and follow githubAccess_public.pdf

PS: for some compatibility problem I have to repeatedly use "dos2unix" and "chmod 777"