About CFDEM tutorial

Submitted by Aries_CFDEM001 on Tue, 11/07/2017 - 15:28

hello
I just installed the CFDEM according to the website but I have no idea where can I get the guide about how to run this simulation especially the post procession. I only got some pic and I want to see the result on the Paraview , so I'd like to know how to use it. videos pdf URLs anything is fine
Thanks

alice's picture

alice | Mon, 11/13/2017 - 14:04

Hello Aries_CFDEM001,
before closing the picture you get from automatic postprocessing you can open another terminal, naviate to your case and open paraview. You can load the case by opening the file called controlDict.foam (it can be found in the system folder of the CFD part of the simulation). Please note that the settings of the tutorials are chosen in a way that the simulation data is deleted once the postprocessing images are closed and the user hits enter in the terminal. This behaviour can be changed in the parCFDEMrun.sh, just comment the line with cleanCFDEMcase with a #.
Cheers,
Alice

amir_mofakham | Thu, 12/27/2018 - 18:56

Hi Alice,
Thank you for your response. I am also trying to check the results of "periodicChannel" case, so I followed what you said, but still, I am not able to visualize the particles. Would you please guide me how I can import them to my fluid domain?
Thanks,
Amir

govind | Fri, 07/06/2018 - 08:39

HI Alice,

While post processing in paraview as you instructed I don't see particle that means lagrangian properties are not there. It includes CFD post processing but not lagrangian. How do I visualize particle with CFD?

Regards,
Govind

govind | Fri, 07/06/2018 - 11:33

In mesh region I don't find lagrangian/particle cloud as explained in some other forum topic even after first time step. I have gone through some other forum topic that it may not work with reconstrucPar so I tried with decomposePar. When I load the file.foam from say processor1, lagrangian/particle-cloud is visible in mesh region but still not able to visualize particle with fluid.

Regards,
Govind

Lwx9507 | Thu, 07/12/2018 - 03:48

Hi govind,

I am new to CFDEM and i find the way to this problem in somewhere: In parCFDDEMrun.sh, add 'reconstuctCase="true"' in define variables part. Then add '$reconstuctCase' to the end of parCFDDEMrun function line.
This works for me and maybe you can have a try. Good luck!

Yours,
Lwx9507

李文馨

govind | Thu, 07/12/2018 - 10:11

Thanks. I will try this. But in function.sh, this is the setting:

#- reconstruct case
if [[ $reconstuctCase == "true" ]]; then
#pseudoParallelRun "reconstructPar" $nrProcs
reconstructPar -noLagrangian

its says there won't be reconstructPar for lagrangian part. What if I Just write 'reconstrucPar' instead reconstructPar -noLagrangian?

alice's picture

alice | Wed, 01/16/2019 - 15:53

Hi,

due to a change of OpenFOAM's way of handling Lagrangian data, the reconstructPar keyword only works for the CFD data - this is the reason for the -noLagrangian keyword. If you want to use the reconstructed data for postprocessing you can use a dump command on the LIGGGHTS side to write the LIGGGHTS data separately and use a time shift filter to show the data at the same time steps.

Another, quicker, option is to postprocess the decomposed data right away. Just open paraview from within the case folder, click open and select the controlDict.foam file from the system folder. If this file does not exist, just create it by making a copy of the controlDict file and renaming it. Paraview will automatically load everything correctly (select decomposed data in Paraview!!). You can use  thhe extract block filter to have a look at the lagrangian and eulerian data separately then.

Cheers,

Alice

THUyzk | Thu, 06/06/2024 - 10:12

You can export the particle result file to vtk format, and then open it with paraview to see the particles.