This is a follow-up of the discussion here: http://www.cfdem.com/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
Attachment | Size |
---|---|
![]() | 197.63 KB |
![]() | 4.29 KB |
![]() | 282.27 KB |
NTT1508 | Mon, 01/26/2015 - 02:21
Absolutely Great
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,
NTT1508 | Mon, 01/26/2015 - 02:56
Absolutely Great
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,
richti83 | Mon, 01/26/2015 - 09:10
Thanks
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
NTT1508 | Wed, 01/28/2015 - 00:03
New Fix for VoidFraction
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,
Habibollah Mosadegh | Fri, 01/14/2022 - 17:29
porosity calculation filter
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
Habibollah Mosadegh | Fri, 01/14/2022 - 17:49
porosity calculation filter
Hi
my email:
hamed.mosaddegh@gmail.com
thank you
Habibollah
joh96 | Thu, 09/10/2015 - 23:47
Hi Christian,
Hi Christian,
could you please reupload your filter? The provided link is down.
Thanks in advance
Johannes
richti83 | Fri, 09/11/2015 - 14:03
I attached the files to my
I attached the files to my 1st post
Frost | Mon, 01/25/2021 - 17:33
Hi, thanks for your sharing.
Hi, thanks for your sharing. The download link in not available. Could you please upload your filter?
Tu3te | Tue, 08/21/2018 - 12:34
Documentation
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
richti83 | Fri, 08/24/2018 - 13:03
not really
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.
Tu3te | Mon, 08/27/2018 - 17:40
Thanks
I will look into it. Thank you ;)
Otherwise, I try to use MATLAB for my problem.
Cheers,
Michael
Habibollah Mosadegh | Fri, 01/14/2022 - 17:50
porosity calculation filter
Hi
my email:
hamed.mosaddegh@gmail.com
thank you
Habibollah
Habibollah Mosadegh | Fri, 01/14/2022 - 17:38
porosity calculation
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
jsams | Wed, 08/22/2018 - 01:46
liggghts implementation
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?
richti83 | Fri, 08/24/2018 - 13:04
No
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.
lcraul | Thu, 05/21/2020 - 13:09
Usage of the void fraction filter
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
Habibollah Mosadegh | Fri, 01/14/2022 - 17:44
porosity calculation
Hi Chong Lin
can you send me Christian filter for me? it is omitted unfortunately. I need it. please help and answer me.
thanks
best regards
Habibollah
Habibollah Mosadegh | Fri, 01/14/2022 - 17:51
porosity calculation filter
Hi
my email:
hamed.mosaddegh@gmail.com
thank you
Habibollah
richti83 | Mon, 05/25/2020 - 14:48
python in paraview
This happens normaly when Paraview is compiled without python support. Try using the prebuild binaries of kitware or rebuild Paraview with python enabled.
lcraul | Sun, 05/31/2020 - 09:13
Really appreciate!I‘ll try to
Really appreciate!I‘ll try to fix this problem following your guideness.
Habibollah Mosadegh | Fri, 01/14/2022 - 17:48
porosity calculation filter
Hi dear Christian
Let me express my deepest gratitude to you for your helpful filter according to the comments. can you send me your filter? it is omitted unfortunately. I need it. please help and answer me.
my emai:
hamed.mosaddegh@gmail.com
thanks
best regards
Habibollah
wuhudasi | Fri, 03/05/2021 - 08:26
CAN'T DOWNLOAD
Hi Christian,
Could you please reupload your filter? The provided link is down.
My email:201916131103@cqu.edu.cn
Best,
regards
TrustinT | Mon, 04/19/2021 - 04:22
The links do not work
Hi Christian,
Could I have your files because I cannot download from above links?
My email is thtruc08@gmail.com
Thank you so much.
KesleyAS | Wed, 04/28/2021 - 20:30
Could you reupload the files?
Someone have the files?
kesley.a.santos@gmail.com
Thank you.
chessesness | Thu, 12/16/2021 - 17:31
Did you get the file?
can you send them to me please.
llee0311 | Mon, 11/15/2021 - 19:02
Links Not Working
Hello,
It seems the links provided are not working. Could someone share the plug-in files?
lxl354@psu.edu
Thanks!
mschramm | Fri, 01/14/2022 - 20:12
Files missing from website update
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/f...
https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/blob/master/src/f...
and here is the wiki (Needs a lot of work i know...) page
https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/wiki/fix_voidratio
richti83 | Wed, 02/09/2022 - 14:44
Filter Context
In a paraview python programmable filter use this code:
https://pastebin.com/sJ1fbeye
aks12 | Thu, 01/19/2023 - 12:29
Hello richti83,
Hello richti83,
Could you please help me to understand how to use this filter in paraview.
Thanks!
aks12 | Wed, 01/18/2023 - 11:08
ParaView Filter for Void-Fraction Estimation
Hello,
It seems the links provided are not working. Could someone share the plug-in files to my email?
dar1921.info@gmail.com
Thank you!