Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the object #77

Closed
ahmad681 opened this issue Jan 4, 2022 · 1 comment
Closed

using the object #77

ahmad681 opened this issue Jan 4, 2022 · 1 comment

Comments

@ahmad681
Copy link

ahmad681 commented Jan 4, 2022

hey, if I want to have two different objects such two different atoms, interstitial and vacancies, how can I utilize the object class?

@MikeHeiber
Copy link
Owner

You will need to write child classes that extend the parent Object class. For example, in the Excimontec project, I made subclasses Exciton and Polaron and added the behavior associated with each separate entity using additional class attributes and methods. Definitely check out the KMC_Lattice_example and Excimontec projects to see examples of how to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants