How implement a new contact model ?
Hi Christoph,
I am developing a new contact model. In my case as you suggested, I took the pair_gran_hooke_history like base.
For the first step, I only replaced the name of class PairGranHistory by PairLatticeHistory.
I have two files pair_lattice_history.cpp and pair_lattice_history.h. In the file .h, I change:
#ifdef PAIR_CLASS
PairStyle(lattice/history,PairLatticeHistory)
#else
#ifndef LMP_PAIR_LATTICE_HISTORY_H
#define LMP_PAIR_LATTICE_HISTORY_H
Thus into my simulation file, I can use this key word: pair_style lattice/history 1 0
Forums:
- Read more about How implement a new contact model ?
- 1 comment
- Log in or register to post comments