modify fix adapt ?

Hello lammps users

I have a parameter which I want to vary as a function of time say the damping factor in the langevin thermostat and other parameters as well. I want lammps to use this value at each and every time step and integrate the equations of motion. In essence I want something like fix adapt for the variable (a function of time) which I have defined in my input script.

Should I go about modifying fix adapt or write my own fix ?

Any help is appreciated


The former - add an option to fix adapt.


Thanks Dr. Steve.