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

Write new materials and access them from input files without modifying serac #1045

Open
chapman39 opened this issue Dec 8, 2023 · 0 comments
Labels
input Functionality related to input parsing

Comments

@chapman39
Copy link
Contributor

It would be useful if users could create their own material types and get the benefits of an input deck.

From @samuelpmish #1001 (comment)

For example (although not necessarily a good implementation), instead of a std::variant, we could have a user-extendable std::map<std::string, std::function< ... > > of callbacks. After reading the name of the material model, it would invoke the callback in that std::map (where the user could write code to set up their custom material model, and then register it to the physics module with setMaterial).

@chapman39 chapman39 added the input Functionality related to input parsing label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input Functionality related to input parsing
Projects
None yet
Development

No branches or pull requests

1 participant