Hi all,
I would like to write a fix who store the function exp(1/T), any advice about what fix or compute I could take as a start?
Thanks all
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
richti83 | Thu, 04/03/2014 - 22:00
starting point
Here is a very simple fix which updates the velocity of all particles in a given region (ignores forces, but before position integration, nice to geneate a given output velocity of a hopper):
fix_set.cpp
http://pastebin.com/Y5778GiL
fix_set.h:
http://pastebin.com/R73Zu07V
the timestep is update->dt;
the temperature seems to be a property/atom introduced by fix_heat_gran.cpp, see code there how to access it (I never used heat transfer).
Best,
Christian.
ckloss | Fri, 04/04/2014 - 10:01
Hi Riccardo,
Hi Riccardo,
you could also do this with a variable command!
Christoph
Riccardo Maione | Fri, 04/04/2014 - 14:22
I wanted a fix because I want
I wanted a fix because I want to integrate this variable,