Access fluid velocity in source code

Submitted by syedUConn on Thu, 11/07/2019 - 08:10

Hi how can I access fluid velocity in the LIGGGHTS source code. I need to use it in custom cohession model.

achuth1992 | Thu, 11/14/2019 - 15:05

Hello,

You might have to add this as a new atom vector property like how the atom position or other vectors have been defined in LIGGGHTS. (See atom.h and atom.cpp)
Then, you will have to pull the required data from the CFD side during data communication by using the giveDEMData() member function in the cloud. (See fix_coupling_force to get an idea).

Bests