calculating the momentum flux

Dear all

in order to calculate the flux I used to integrate the velocity profile manually.
Is there a way to directly compute it?

thanks
Fahim

There is no context to your question.
Flux of what?

Steve

momentum flux

Fahim

I still don't know what you're talking about.
If you are using the fix viscosity command to
do Muller-Plathe, then it tallies the momentum
flux. You measure the velocity gradient by using
fix ave/spatial and the ratio gives you viscosity.
The doc page explains it.

Steve

thanks Steve
suppose I want to sum over all atoms velocities in a specific direction (e.g. x-component of velocities, vx), then time averaging on the resultant quantity.

Best,
Fahim

this will do http://lammps.sandia.gov/doc/fix_ave_spatial.html

see the examples …