llnl / llnl/smith

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

Open
#1,045 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

input
Dominant language
C++
Stars
245
Forks
36
Avg merge
8d 23h
Merged PRs (30d)
4

Description

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

From @samuelpmish https://github.com/LLNL/serac/pull/1001#discussion_r1406723165
> For example (although not necessarily a good implementation), instead of a std::variant, we could have a user-extendable std::map > 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).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the discussion on pull request #1001, then trace how material names are read from input files and how material models are registered. Done means users can define and register custom material types, access them through an input deck, and do so without modifying the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.