Skip to content

[BUG] mass is not accounted in computation of bulk flow velocity #170

@SChernoglazov

Description

@SChernoglazov

The output of "V" field is mass-dependent. For example, if particles have mass 20 and propagate with the same speed v, the outputted value would be V/20.

It is caused by double computation of FldsID::V in ParticleMoments_kernel: in line 229 of src/kernels/particle_moments.hpp and in line 290. The first computation does take mass, and the second one doesn't. After this, the computed fields are normalized by density in v=src/framework/domain/output.cpp line 603.

master version of the code

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions