ParaView Filter for Void-Fraction Estimation

Submitted by richti83 on
NTT1508

Hi Christian,

This is a absolutely meaningful work. Using Monte-Carlo probabilistic theory is really helpful in this case. Only one problem is that the accuracy depends significantly on n_try and scale of simulation. And as you noted, the higher value might reduce computation speed. Especially your filter can help calculate the bounding volume based on actual space that particles fill into. I am not sure CFDEM coupling using this algorithm for its voidfraction estimation or not. I think the same mechanism can be used on LIGGGHTS script coding for a certain defined region then the output can be extracted as text file.

Thank very much.

Best regards,

Nathan,

Mon, 26 Jan 2015 - 02:21 Permalink
NTT1508

Hi Christian,

This is a absolutely meaningful work. Using Monte-Carlo probabilistic theory is really helpful in this case. Only one problem is that the accuracy depends significantly on n_try and scale of simulation. And as you noted, the higher value might reduce computation speed. Especially your filter can help calculate the bounding volume based on actual space that particles fill into. I am not sure CFDEM coupling using this algorithm for its voidfraction estimation or not. I think the same mechanism can be used on LIGGGHTS script coding for a certain defined region then the output can be extracted as text file.

Thank very much.

Best regards,

Nathan,

Mon, 26 Jan 2015 - 02:56 Permalink
richti83

Hi Nathan,

thanks for your feedback.
One note about your idea

I think the same mechanism can be used on LIGGGHTS script coding for a certain defined region then the output can be extracted as text file

I think it is not a good idea to do it with loops at scriptlevel because of the high overhead in parsing and variable assignment and interrupt of the run command.

But when there is a main interest in having this function directly in LIGGGHTS it is possible to create a new fix which does all the math and outputs a vector with bounding volume, mc-particle volume, voidfraction (like fix/mesh/surface does) and can be restricted to a given region. Of course this will slow down the simulation depending on ntry, size and 'every' property but is much faster than scriptlevel because implemented in native c++.

Let me know is this is what you need.

Best,
Christian

Mon, 26 Jan 2015 - 09:10 Permalink
NTT1508

Hi Christian,

That's clever idea Chrisitian. Creating a new fix/command with specific criteria (region, ntry residual tolerance...) makes LIGGGHTS more powerful especially for CFDEM coupling which I think it currently doesnot consider overlap volume of particles (CFDEM/...voidfractionmodel).

Personally I think LIGGGHTS users must be happy and grateful to what you have done for us. Thank very much for your active contribution, Christian.

Best regards,

Nathan,

Wed, 28 Jan 2015 - 00:03 Permalink
Habibollah Mosadegh

In reply to by NTT1508

Hi Nathan
I want Christian filter about porosity calculation but it's omitted unfortunately. in my LIGGGHTS code, particles are rigid and there is not any overlap but I don't have any idea about porosity calculation in the selected region. please help and answer me.
thanks
best regards
Habibollah

Fri, 14 Jan 2022 - 17:29 Permalink
joh96

Hi Christian,

could you please reupload your filter? The provided link is down.

Thanks in advance

Johannes

Thu, 10 Sep 2015 - 23:47 Permalink
Tu3te

Hi Christian,

thank you for the great Paraview filter. Unfortunately, I can't look into your documentation, because your blog seems no longer available.
Is it possible to calculate radial and axial porosity with your filter? I want to create a local porosity profile in order to show wall effects in a packed bed.
Could you reupload your documentation or explain me how to do it?
Thanks in advance.

Best regards,
Michael

Tue, 21 Aug 2018 - 12:34 Permalink
richti83

In reply to by Tu3te


Is it possible to calculate radial and axial porosity with your filter? I want to create a local porosity profile in order to show wall effects in a packed bed.

The filter is not intended do do this, you could use some paraview clips and apply the filter to them, but I would recommend the voronoi package:
https://www.cfdem.com/comment/14989#comment-14989
https://www.cfdem.com/media/DEM/docu/compute_voronoi_atom.html

In fact I did not use it by my own - only read about it in this forum ;-).
Cheers,
Christian.

Fri, 24 Aug 2018 - 13:03 Permalink
Tu3te

In reply to by richti83

I will look into it. Thank you ;)
Otherwise, I try to use MATLAB for my problem.

Cheers,
Michael

Mon, 27 Aug 2018 - 17:40 Permalink
Habibollah Mosadegh

In reply to by Tu3te

Hi Michael
I want to calculate different types of porosity in packed bed as like as you. I desperately need help. If you can help me, I owe you. can you help and answer me please?
thanks
best regards
Habibollah

Fri, 14 Jan 2022 - 17:38 Permalink
jsams

Given that the former thread is quite old I am wondering if there is an implementation of void fraction estimation in the current liggghts release.

Is anyone are of this?

Wed, 22 Aug 2018 - 01:46 Permalink
richti83

In reply to by jsams

No, I've only thought about doing this, but as it is computanional expensive there has been no need for me to do it on fix level.

Fri, 24 Aug 2018 - 13:04 Permalink
lcraul

Dear Christian,
I'm a new user of LIGGGHTS and I'm trying to calculate the void fraction of the whole domain of the DEM. I found your filter was very helpful for me. However, when I downloaded your filter and imported it into paraview, there were some problems. The errors are list below:
ERROR: In /opt/software/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/ParaViewCore/ServerImplementation/Core/vtkSIProxyDefinitionManager.cxx, line 526
vtkSIProxyDefinitionManager (0x2ce4040): No proxy that matches: group=filters and proxy=ProgrammableFilter were found.

ERROR: In /opt/software/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/ParaViewCore/ServerManager/Core/vtkSMDeserializerXML.cxx, line 58
vtkSMCompoundProxyDefinitionLoader (0x530a160): Could not create a proxy of group: filters type: ProgrammableFilter

Warning: In /opt/software/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/ParaViewCore/ServerManager/Core/vtkSMProxy.cxx, line 239
vtkSMCompoundSourceProxy (0x524c0c0): Subproxy required for the exposed property is missing.No subproxy with name : ProgrammableFilter2

I think it maybe the problem of version. Would please tell me how to fix the error or which version your filter is applicable?
I'm looking forward your reply. Thank you very much.
Best,
regards
Chong Lin

Thu, 21 May 2020 - 13:09 Permalink
richti83

This happens normaly when Paraview is compiled without python support. Try using the prebuild binaries of kitware or rebuild Paraview with python enabled.

Mon, 25 May 2020 - 14:48 Permalink
mschramm

Hello,
The files do not show up anymore due to a website update.
I did not find the files on my local machine so I can not provide anyone with the paraview calculator.

However,
I did write a fix that calculates the void ratio inside of a user defined region.
Users can then update this value every n steps or at the end of each run command (It IS VERY expensive to run this often in a simulation).

I did some mpi testing and the results were statistically similar between 1, 2, 4, 8, and 16 cores. The files can be found here
https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/blob/master/src/…
https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/blob/master/src/…
and here is the wiki (Needs a lot of work i know...) page
https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/wiki/fix_voidrat…

Fri, 14 Jan 2022 - 20:12 Permalink

This is a follow-up of the discussion here: /forums/particle-deposition-structure-help

Short story: to calculate the void-fraction in a given region one needs to take the overlap of the spheres into account. To do this, I've written a ParaView Custom Filter which uses a Monte-Carlo-Integration approach to calculate the real volume of overlapping spheres.

You will find the full story and the download in my blog:
http://techblog.richtisoft.de/?p=31