Re: [Libmesh-users] add_variable related to element in ExplicitSystem

2012-04-24 Thread David Knezevic
Use a constant monomial variable: add_variable ("variable_name", CONSTANT, MONOMIAL); On 04/24/2012 10:13 AM, 蔡园武 wrote: > Hello, > We can use ExplicitSystem::add_variable to add non-solution variable to > store my data, but this variable in based on nodes, and has size of n_node. > But if I wa

[Libmesh-users] add_variable related to element in ExplicitSystem

2012-04-24 Thread 蔡园武
Hello, We can use ExplicitSystem::add_variable to add non-solution variable to store my data, but this variable in based on nodes, and has size of n_node. But if I want to add variable related to element, and has size of n_elem, how to do that? Thanks! -- Cai Yuanwu 蔡园武 Dept. of Engineering Mech