Hello, everyone!
Add a formula for calculating kinetic energy in the cfnewvalues. f file, using vtp_ mod. f file outputs calculation data, But the kinetic energy data output is the same for each particle What is the problem? Thank you all!
The output results are as follows:
FB_SQP_1.zip (30.4 MB)
The trans_e
you compute in cfnewvalues.f
is the sum of kinetic energy for all particles in the system. If you want individual particle kinetic energy, you need to save it in an array, not a scalar variable.
Thank you for your reply!
May I ask if you know which. f file should be added with code to save it in an array. Thank you!
Same file. Instead of declaring trans_e
as a scalar, declare it as an array, similar to other DEM particle arrays.
Thank you for your reply! @jeff.dietiker