Skip to content

Difficulty creating a ADMatReactionNodalKernel class to use materials to define reaction rates #9

Answered by simopier
simopier asked this question in Q&A
Discussion options

You must be logged in to vote

Answer:

'Nodal kernels won’t work with the current material system unfortunately. Materials are associated with subdomains, e.g. volumes. You can imagine that at an interface between materials, unless you specify an element side, the value of a material property can be discontinuous and worse undefined. What value for the property should be used? It could be even worse for a node: you could be at the corner of 8 subdomains for a hex mesh!

If it’s an expression you have, and your property is not a function of the nonlinear degrees of freedom, why not use a function parameter to keep the expression in the NodalKernel generic? The AD system can still handle the derivatives of that for you.

F…

Replies: 1 comment 10 replies

Comment options

simopier
May 24, 2021
Maintainer Author

You must be logged in to vote
10 replies
@lindsayad
Comment options

@lindsayad
Comment options

@keniley1
Comment options

@lindsayad
Comment options

@cpgr
Comment options

Answer selected by simopier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants