Post Processing

Post processing of LIGGGHTS®/CFDEM®coupling/ParScale based simulations is discussed here

gl tool did not load: No module named Tk

Submitted by venes520 on Thu, 02/02/2012 - 18:10

Hi!

I am trying to run pizza.py on fedora 14 (gran_pizza_17Aug10 version) I am getting the following error when runing pizza.py with python 2.6

Loading tools ...
gl tool did not load:
No module named Tk

I used to get :
Loading tools ...
animate tool did not load:
No module named ImageTk
image tool did not load:
No module named Pmw
gl tool did not load:
No module named Tk

I tried "yun install python-imaging-Tk" and it fixed the first two but a module named Tk is still missing.

Visualise pathlines in PV12

Claudio Wolfer's picture
Submitted by Claudio Wolfer on Mon, 01/30/2012 - 09:01

Hi

In PV12 I'm trying to visualize the pathlines from three particles (s. attachment). The problem is, that PV draws lines from a particle path to another particle path (left lower corner). This is not the path from the particle. Each particle should have a continuous smooth pathline.

How can I visualize pathlines in PV without these interrupts?

Cheers
Claudio

pizza.py not working on SUSE Linux Version 11

Submitted by Silias on Thu, 01/26/2012 - 14:10

Hi everybody,

I stepped through the tutorial to work with pizza.py on my Ubuntu 10.04 LTS and everything worked fine, whereas on SUSE Linux Version 11 I get the error:

~/liggghts_1p5/adapt> pizza -f skript
Pizza.py (1 Oct 2006), a toolkit written in Python
type ? for help, CTRL-D to quit
Loading tools ...
animate tool did not load:
No module named ImageTk
image tool did not load:
No module named Pmw
Segmentation fault

On Ubuntu everything works fine, except of the warning:
image tool did not load:
No module named Pmw
gl tool did not load:

fancy On-Screen-Display for Paraview

richti83's picture
Submitted by richti83 on Thu, 01/19/2012 - 15:09

Today I want to show you how to make fancy OSD-Information in PV3.12.

1st I made a new Custom Filter based on a programmable py-Filter.
I learned how to access the PV-Pipeline and getting Information about the current Timestep and number of points

COUNT=input.GetNumberOfPoints()
def GetUpdateTimesteps(algorithm):
executive = algorithm.GetExecutive()
outInfo = executive.GetOutputInformation(0)
if not outInfo.Has(executive.UPDATE_TIME_STEPS()):
return []
count = outInfo.Length(executive.UPDATE_TIME_STEPS())

pizza - particleGran function

Submitted by wladek on Fri, 01/13/2012 - 13:26

I rewrote function particleGran in src/vtk.py which is used when one creates series of vtk files using manyGran() command in pizza

after my refreshment you no longer need 19-24 columns in dump file but you can save as many variables as you need, so it might work slightly faster in some cases

function particleGran starts from line 316

Rafal

Particle coloring in ParaView12

Claudio Wolfer's picture
Submitted by Claudio Wolfer on Thu, 01/05/2012 - 11:56

Hi all

I'm trying to color the half of the particle cloud in one color and the others in an other color to see how the particles admix while simulation.
I try it with:
1) ExtractSelection-Filter and Select Points On to get nearly the half of the particles
2) Glyph the previous filter and coloring the particles in Display > Color by Solid Color > Set Solid Color... > choose my color
3) repeat 1) and 2) for the other half of particles

I'm just seeing a fraction of my particles in paraview, what is the problem ?

Submitted by mahdi_roozbeh on Mon, 12/19/2011 - 10:15

The code is same as pour/dev example, but I've used nparticles 5000.

atom_style granular
atom_modify map array # for allocating the memory, IDs are stored in lookup table of length N
boundary m m m
newton off
echo both

communicate single vel yes
#processors 2 1 1

units si

region reg block -0.05 0.05 -0.05 0.05 0. 0.15 units box
create_box 1 reg

neighbor 0.002 bin
neigh_modify delay 0

#Material properties required for new pair styles

fix m1 all property/global youngsModulus peratomtype 5.e6
fix m2 all property/global poissonsRatio peratomtype 0.45

Scaling glyph data

Submitted by tkulju on Mon, 11/28/2011 - 14:56

Hi!
I've done my simulations with CGS unit system and would now like to present my results in SI units. When trying to visualize e.g. velocity, I can't scale the colorbar units (the scale field is grey). Any idea how to resolve this? Or do I have to run my simulations in SI system, if I want to present the results in SI system?

Thanks,
Timo

Example dump.* file from LIGGGHTS and or its converted VTK form

Submitted by jc117818 on Wed, 11/23/2011 - 00:06

Hi,

I have a DEM code of my own and I would like to use ParaView to postprocess the results. I have been following the procedure for converting LIGGGHTS dump.* files to *.vtk files, and my ultimate goal is to figure out the format of *.vtk files for DEM type results. The problem is I don't have an example dump.* file (e.g. dump.cohesion) to run through the pizza.py process. I tried using a LAMMPS output file that I found on the web, but that did not work.

liggghts reader Plugin for Paraview

richti83's picture
Submitted by richti83 on Tue, 11/08/2011 - 15:58

Hi all,

I made a little Plugin for Paraview to read liggghts-dump files directly without using pizza-script.
I expect you use the dump command like this:
dump dmp all custom 100 post/dump_*.liggghts id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
(extension .liggghts because .dump is used by lammps reader plugin;
the * means that liggghts generate one file per dump-timestep (here 100).

Pages

Subscribe to RSS - Post Processing