CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Paraview sphere size

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 1, 2011, 05:21
Default Paraview sphere size
  #1
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
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.
Attached Images
File Type: jpg segregazione.jpg (22.7 KB, 52 views)
afo is offline   Reply With Quote

Old   December 1, 2011, 06:54
Default
  #2
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 137
Rep Power: 6
andrea.pasquali is on a distinguished road
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
andrea.pasquali is online now   Reply With Quote

Old   December 1, 2011, 09:28
Default
  #3
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
Actually I'm not using that plug-in. How can I use it?
afo is offline   Reply With Quote

Old   December 2, 2011, 06:53
Default foamToVTK and paraview
  #4
New Member
 
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 7
AMahrla is on a distinguished road
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
AMahrla is offline   Reply With Quote

Old   December 2, 2011, 08:04
Default
  #5
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
many thanks
afo is offline   Reply With Quote

Old   December 5, 2011, 02:46
Default How to use foamToVTK
  #6
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
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
afo is offline   Reply With Quote

Old   December 5, 2011, 03:16
Default
  #7
New Member
 
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 7
AMahrla is on a distinguished road
Please follow the instructions in
http://www.openfoamwiki.net/index.ph...idParticleFoam
and
http://openfoamwiki.net/index.php/Ma...gian_particles

Best,

Astrid
AMahrla is offline   Reply With Quote

Old   December 5, 2011, 08:16
Default
  #8
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
thanks astrid
afo is offline   Reply With Quote

Old   December 16, 2011, 02:53
Default
  #9
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
Hi Andrea,

I tried to use that plug-in, but if I zoom in, spheres don't touch. Any suggestion?
afo is offline   Reply With Quote

Old   December 16, 2011, 03:16
Default
  #10
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 137
Rep Power: 6
andrea.pasquali is on a distinguished road
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
andrea.pasquali is online now   Reply With Quote

Old   December 16, 2011, 04:45
Default
  #11
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 4
afo is on a distinguished road
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
afo is offline   Reply With Quote

Old   December 16, 2011, 07:03
Default
  #12
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 137
Rep Power: 6
andrea.pasquali is on a distinguished road
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
andrea.pasquali is online now   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37


All times are GMT -4. The time now is 00:38.