VTK velocity PBCs

Asked by Chiara Modenese

Hi all,

in VTKRecorder engine I see that velocities can be recorded among other parameters. However, I think that if the mean velocity field is applied, then the recorded velocity is the total one. What should be done in order to record only the fluctuating part of velocity? I have never touched the cpp code of that engine so if you could provide me with some suggestions about how to do it that would be great.

Thanks,
Chiara

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hi Chiara,

for such purposes I created export.VTKExporter class, see
scripts/tests/vtkEsporter.py as an example. Use something like:

avgVel=Vector3(...)
vtkExporter = export.VTKExporter('fileName')
O.engines=[
  ...

PyRunner(...,command="vtkExporter.exportSpheres(what=[('realVel','avgVel-b.state.vel')])"),
   ...
]

If you use it, please report me any problems
Good luck
Jan

Chiara Modenese píše v St 18. 01. 2012 v 12:30 +0000:
> New question #185092 on Yade:
> https://answers.launchpad.net/yade/+question/185092
>
> Hi all,
>
> in VTKRecorder engine I see that velocities can be recorded among other parameters. However, I think that if the mean velocity field is applied, then the recorded velocity is the total one. What should be done in order to record only the fluctuating part of velocity? I have never touched the cpp code of that engine so if you could provide me with some suggestions about how to do it that would be great.
>
> Thanks,
> Chiara
>

Revision history for this message
Chiara Modenese (chiara-modenese) said :
#2

Thanks Jan Stránský, that solved my question.