Hello team, I have modified the calc_force_dem.f file to implement a new viscous model between particles. My questions are:
1. How can I visually verify that my modifications have taken effect? For example, are there any built-in tools, monitors, or VTK output options that can help me confirm the new force model is being applied correctly during the simulation?
2. How can I observe the impact of the new viscous model on particle-particle interactions? Are there specific post-processing methods or output variables that I should focus on to evaluate the effects of my changes?
Any guidance or relevant documentation would be greatly appreciated. Thanks in advance!
In calc_force_dem.f, search for “FORCE_CHAIN”. There is a mechanism to save the force data into vtk files. To output the force chain data in a vtk file, you need to create a vtk region and define it as such. In the GUI, select “Force chain data” as the Output type when you create a new vtk region.
What is your motivation for implementing a new viscous force? Typically, developers have some kind of reference (publication) for the derivation and some experimental data or other numerical data to validate the implementation.
What I would suggest is to setup a very simple case, like two particles colliding with each other and look at the collision with the current model and you new model to see the different behavior. You can also use the good old print statement method, where you insert print statements where you compute the force during the simulation. If you only have two particles, the amount of output will not be overwhelming to analyze and will give you good insight in your implementation.
Thanks for your reply, Jeff! Your response was very insightful.
To clarify my second question — what I’m really asking is how to visualize the effects of my new viscous model on the simulation results. For example, I’d like to observe changes in particle motion behavior, such as particles sticking together upon contact due to the viscous force. Are there any post-processing tools or visualization methods that can help me intuitively see these effects?
Thanks again!
We have vtk file and monitors. I don’t know what application you are looking at, but let’s say you have a fluidized bed or a spouted bed, you should see differences in bed height and velocity profiles. You can also look at the coordination number, which should increase if you have particles sticking together. You can also look at the force chain data and do some stat analysis on it, you should see some effect of your viscous model.
Sorry to bother you again,Jeff! 1. I enabled the new “Force Chain” VTK output option in the GUI but after the simulation finished there was no force-chain file in the output directory, while all other VTK files were written normally. 2.I enabled the VDH cohesive model in the GUI and filled in some arbitrary parameters so that the corresponding subroutine in calc_force_dem.f would be activated; I then replaced the model algorithm inside that subroutine with my own. However, the cohesive force written to the particle data .vtk still matches the values computed from the GUI VDH parameters, as if my modification never took effect. I’m puzzled about this, and have tried many other methods and it still does not work well. Thank you very much for your help.
Sorry I missed the fact that you are using superquadrics (SQP model). calc_force_dem.f is used for spherical particles. If you want to modify the code for SQP, please take a look at sq_calc_force_superdem.f. However, it may be easier to start with spherical particles.
Thanks for your reply, Jeff! However, I noticed that this file doesn’t seem to be included in the build at all when compiling the solver. I’ve checked build.log and couldn’t find it referenced anywhere. Could you explain how this file is supposed to be used? Any help would be appreciated.