|
[Sponsors] |
December 1, 2011, 06:21 |
Paraview sphere size
|
#1 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
Hi Foamers,
I'm simulating a granular flow with icoUncoupledKinematicParcelFoam, I was able to give a normal distribution to the particle size, paraview sees that radius varies from particle to particle, but it visualizes particles with a constant radius. I can see that particles don't touch, because actual radius is different from the visualized one, how can i show particles with different diameters? p.s. : In the attached picture you can see what happens. |
|
December 1, 2011, 07:54 |
|
#2 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Hi Paolo,
Are you using the PointSprite plug-in in ParaView? If yes in the "Object Inspector - Display" select "Scale by - radius", then push the button "Edit Radius Transfer Function" and finally select "Proportionnal" instead "Use scalar range". Now the radius of your particles will be the correct one Andrea
__________________
Andrea Pasquali |
|
December 1, 2011, 10:28 |
|
#3 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
Actually I'm not using that plug-in. How can I use it?
|
|
December 2, 2011, 07:53 |
foamToVTK and paraview
|
#4 |
New Member
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 17 |
Hi!
If you use foamToVTK and paraview, you can scale the sphere-glyphs to particle radius. Please refer to http://openfoamwiki.net/index.php/Ma...gian_particles. for creating the sphere-glyphs. After having created the glyphs (type: sphere, scalar: radius), choose scaling by scalar, set scale factor to 1. A tutorial collection for particle based methods can be found here. Best, Astrid
__________________
Tutorials for particle based methods -- HowTo Use OpenFOAM with Eclipse Visit me @ www.astridmahrla.de. |
|
December 2, 2011, 09:04 |
|
#5 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
many thanks
|
|
December 5, 2011, 03:46 |
How to use foamToVTK
|
#6 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
Hi Astrid, I've run foamToVTK and it generated a number of files, how do I open them in paraView? sorry for the boring question, but I'm new to this. Thanks
|
|
December 5, 2011, 04:16 |
|
#7 |
New Member
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 17 |
Please follow the instructions in
http://www.openfoamwiki.net/index.ph...idParticleFoam and http://openfoamwiki.net/index.php/Ma...gian_particles Best, Astrid
__________________
Tutorials for particle based methods -- HowTo Use OpenFOAM with Eclipse Visit me @ www.astridmahrla.de. |
|
December 5, 2011, 09:16 |
|
#8 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
thanks astrid
|
|
December 16, 2011, 03:53 |
|
#9 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
Hi Andrea,
I tried to use that plug-in, but if I zoom in, spheres don't touch. Any suggestion? |
|
December 16, 2011, 04:16 |
|
#10 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
It depends on the n. pixels used to reproduce your sphere.
You have to increase the "max pixel size". I think 512 is enough. Andrea
__________________
Andrea Pasquali |
|
December 16, 2011, 05:45 |
|
#11 |
New Member
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 15 |
Dear Andrea,
I've just resolved the problem. I don't need to use pointSprite, glyph filter is enough, here are the settings: In Glyph properties: Scalars d // which is the particle diameter Glyph type Sphere Radius 0.5 // since Scalars is a diameter, if it was a radius, Radius must be 1 ( obviously! ) Scale Mode Scalar Set Scale Factor 1 Thanks anyway for your help and your time Paolo Tria |
|
December 16, 2011, 08:03 |
|
#12 |
Senior Member
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 17 |
Ciao Paolo,
I think, if you can, that it's better to use the point sprite plugin than the glyph filter. The glyph filter has to be re-generated each timestep and if you have many particles and many times this could be very very onerous! The point sprite plugin is just a different view mode (like point, surface ...) to see you data and it is very fast! Anyway for not big model glyph filter could be enough Andrea
__________________
Andrea Pasquali |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
meshing F1 front wing | Steve | FLUENT | 0 | April 17, 2003 13:37 |