Skip to content

ERROR: Material property is not defined on block 0 #16079

Answered by cpgr
LiuPengPeter asked this question in Q&A General
Discussion options

You must be logged in to vote

The problem is in your StudyMaterialCoefficientGradientV material. Take a look at this bit:

   _v_coefficient_name(getParam<MaterialPropertyName>("D")),
   _v_coefficient(declareProperty<RealGradient>("_v_coefficient_name"))

You are declaring a property called _v_coefficient_name (that actual string), not whatever you enter in the parameter D in your input file. Simply remove the "" in the second line and it should work as you are now declaring a property with the name given in the input file.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@LiuPengPeter
Comment options

Comment options

You must be logged in to vote
2 replies
@LiuPengPeter
Comment options

@WilkAndy
Comment options

Answer selected by LiuPengPeter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants