Create and merge data array

Hello,
(Paraview 5.10.0-RC1 on Windows10)

I’m trying to use the LagrangianParticleTrancker, and I’m wondering how to set the “Flow Density” and “Flow Dynamic Viscosity” parameters. In my simulation (in SimVascular), these are fixed values respectively worth
Blood Viscosity = 0.04 g/cmxs2
Blood Density = 1.06 g/cm3
However, they are not present in my “all_results_00*” file. So I would like to create and add them there.

The problem is the following:

  1. how to create a point data array with a constant value on the whole volume?
  2. how to merge this point data array to my main file “all_results_00*”" in order to be able to set up the Lagrangian tracker.

I tried to define these values (fixed on the whole volume) with the “Calculator”, and then to use the “Group Dataset” filter to add these values to “all_results_00*”. However, both values are displayed as “partial” in the created DataSet.

Do I have to use a Python Programable Filter to do this (as I saw on some topic)?

Thanks !

Calculator

how to merge this point data array to my main file “all_results_00*”" in order to be able to set up the Lagrangian tracker.

File → SaveData on the calculator, but not needed in your case.

I tried to define these values (fixed on the whole volume) with the “Calculator”, and then to use the “Group Dataset” filter to add these values to “all_results_00*”. However, both values are displayed as “partial” in the created DataSet.

Do not use Group Dataset, Create a Calculator on the first calculator, like this:

a

Thanks for the answer! Indeed the “Calculator2” created contains both the Data Array “Density” and “Viscosity” AND the Data Array of “all_results_00*”.I can therefore set “Calcultor2” as “Flow input” of the “Lagrangian Particle Tracker” to have access to the 2 constants “Density” and “Viscosity”.

However, I realize that the Lagrangian tracking implemented in Paraview calculates the complete trajectories of the particles for each time of my “Time Serie”.I thought the calculation was done like with the “Particle Tracker” filter, where the position of the particles is updated at each time step (which is what I am trying to do)

I think I will have to program a “Python Programmable Filter” to adapt the “Lagrangian Particle Tracker” to my situation.

Yes, the LPT has an approach similar to the StreamTracer, not to the ParticleTracer, it does not fit your usecase.

1 Like

For those who want to know more about the difference between LPT, Stream Tracer and Particle Tracker : Difference between ParticleTracer and LangrarianParticleTracker - ParaView Support - ParaView