How to add a new contact model
Hi,
I want to add a new contact model but I don't understand the file structure for liggghts. What I want to do is to add a full JKR model.
I was thinking then to make a copy of "normal_model_hertz.h", rename it to normal_model_jkr and work in this one.
What do I need to change to be able to use this model with a input file as "pair_style gran model jkr"?
I guess I should change the start of the file:
#ifdef NORMAL_MODEL
NORMAL_MODEL(HERTZ,hertz,3)
#else
#ifndef NORMAL_MODEL_HERTZ_H_
#define NORMAL_MODEL_HERTZ_H_
Forums:
- Read more about How to add a new contact model
- 8 comments
- Log in or register to post comments