On Wed, Apr 20, 2016 at 12:48 PM, Salazar De Troya, Miguel <
salazardet...@llnl.gov> wrote:

> Hello
>
> I want to assign the values of a variable that I am interpolating with a
> QUAD4 LAGRANGE element. My idea is iterate over the elements, for each
> element iterate over the nodes using get_node(), and obtain the node degree
> of freedom using Node::dof_number(system_number,var_number,comp_number).
> Then use that degree of freedom to assign a value in the system->solution
> vector. I was wondering what would happen if instead of using QUAD4
> LAGRANGE, I switched to CONSTANT, MONOMIAL, where the nodes don’t have
> degrees of freedom, but just the elements. Will I still obtain four nodes
> and then obtain the same degree of freedom whenever I call
> Node::dof_number() ?
>

I think this throws an error, because there are 0 "components" for that
type of variable on nodes.

If you must do this, use dof_indices() to figure out all the DOFs for the
element for a given variable.

-- 
John
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to