I have a simple 2D domain with conductivity defined at all points (although I don't have an analytical function for it). Since the conductivity is a function of position, there is a gradient defined at each point. My goal is to calculate that gradient and store it as a material property at each quadrature point. To do this, I have defined an auxiliary variable that returns _conductivity[_qp], and then I coupled that auxiliary variable to my material and got its gradient, which I assign to all quadrature points. However, the resulting gradient is a zero vector. I think this is because I made the auxiliary variable elemental (constant monomial), so it makes sense that the gradient would be zero everywhere in the element. So I tried to make it a nodal auxiliary variable, but I got an error that my nodal auxkernel attempted to reference material property 'conductivity'. If conductivity is defined everywhere, why can't it be used to set the values of the conductivity aux kernel at the nodes? That way, when I find the gradient within the element at the quadrature points, the slope will not be constant and I will get the nonzero gradient vector I want.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/13f71d4a-2ebf-4f72-b18f-9a77e39a70f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This question keeps coming up again and again in different guises. Nodal variables and elemental variables and material properties. It would be great if one of you moose guys could draw some pictures with elements, nodes, quadpoints, and explain why, where and when people should use these things.
a
Ph: +61 7 3327 4497. Fax: +61 7 3327 4666
Queensland Centre for Advanced Technologies
PO Box 883, Kenmore, Qld, 4069
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuWGbMJofhAG5b7b8pn0ZGksfiKfpNB8YqjmPvs7Dm5q%2Bw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/57596E6532C9F54F9DF09BCDFE7B1D3AA26252D0%40exmbx06-cdc.nexus.csiro.au.
--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/bK6HZ-QIUrc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuUv4Z-dqxcLiz-Orizy438T0de-P3ftR%2BuewFWaX1CWCw%40mail.gmail.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAJQhorth2QY%3Dm-x%3DzF-jUCu8NDaG5wNB-8Z%2BvcgTShhn8u3otA%40mail.gmail.com.
*************************
Michael R. Tonks
Fuel Modeling and Simulation Department
Idaho National Laboratory