Question to Developer for new fix_wall and region

Dear LAMMPS Developer,

I wanted to used my system simulation inside the ellipsoid and i wanted a new potential which interact with wall/region region ellipsoid.

So, please suggest me how to start writing code about these. I can see several file in src directory with name fix_wall like

fix_wall_lj93.cpp

fix_wall_lj93.d

fix_wall_lj93.h

Suppose i will write code for new wall potential then i have to write the same kind of 3 files here?
and also i wanted to use something “region id ellipsoid” so how should i approach it. Please give me some ideas/suggestion how should i start.

Thank you very much.

Regards,
Aniket Parora
India

Dear LAMMPS Developer,

I wanted to used my system simulation inside the ellipsoid and i wanted a
new potential which interact with wall/region region ellipsoid.

So, please suggest me how to start writing code about these. I can see
several file in src directory with name fix_wall like

fix_wall_lj93.cpp
fix_wall_lj93.d
fix_wall_lj93.h

Suppose i will write code for new wall potential then i have to write the
same kind of 3 files here?
and also i wanted to use something "region id ellipsoid" so how should i
approach it. Please give me some ideas/suggestion how should i start.

before you can start any programming, you have to read and understand.
you need to read

and then study a few (not just one) of the existing wall and
especially region styles and see how they work. then make some
experiments with them (e.g. start with region_sphere) and see that you
understand how they work. then - and *only* then, you should start
looking into writing your code based on the experiences you gathered
up to this point.

starting into programming lammps "cold" guarantees problems.

axel.

If you mean you want to add a region ellipsoid command,
I’d start by looking at region sphere. Once it is added,

you should be able to use it with fix wall/region if you
have added all the methods that regions need to
support that fix.

Steve