Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## Re: [Libmesh-users] Get XYZ of all nodes

 Re: [Libmesh-users] Get XYZ of all nodes From: Roy Stogner - 2006-07-19 00:48:16 ```On Tue, 18 Jul 2006, Dong Xu wrote: > Can anyone tell me how to get the xyz physical locations of all the nodes in > the assembled system matrices? Node is a subclass of Point which is a subclass of TypeVector, so you can get the physical location of any node n by setting x = n(0), y = n(1), and z = n(2). You can loop over all nodes in the mesh by getting an iterator from Mesh::nodes_begin() and incrementing it until you reach Mesh::nodes_end(). You can find this sort of information in the class documentation at http://libmesh.sourceforge.net/doxygen/classes.php Unless you're solving a single scalar equation with isoparametric Lagrange elements, your system matrix will have multiple degrees of freedom (and/or zero degrees of freedom) on some nodes, and "all the nodes in the assembled system matrices" doesn't make sense. --- Roy Stogner ```

 [Libmesh-users] Get XYZ of all nodes From: Dong Xu - 2006-07-19 00:37:08 Attachments: Message as HTML ```Hi All, Can anyone tell me how to get the xyz physical locations of all the nodes in the assembled system matrices? Thanks a lot! David ```
 [Libmesh-users] Get XYZ of all nodes From: David Xu - 2006-07-19 00:37:48 Attachments: Message as HTML ```Hi All, Can anyone tell me how to get the xyz physical locations of all the nodes in the assembled system matrices? Thanks a lot! David ```
 Re: [Libmesh-users] Get XYZ of all nodes From: Roy Stogner - 2006-07-19 00:48:16 ```On Tue, 18 Jul 2006, Dong Xu wrote: > Can anyone tell me how to get the xyz physical locations of all the nodes in > the assembled system matrices? Node is a subclass of Point which is a subclass of TypeVector, so you can get the physical location of any node n by setting x = n(0), y = n(1), and z = n(2). You can loop over all nodes in the mesh by getting an iterator from Mesh::nodes_begin() and incrementing it until you reach Mesh::nodes_end(). You can find this sort of information in the class documentation at http://libmesh.sourceforge.net/doxygen/classes.php Unless you're solving a single scalar equation with isoparametric Lagrange elements, your system matrix will have multiple degrees of freedom (and/or zero degrees of freedom) on some nodes, and "all the nodes in the assembled system matrices" doesn't make sense. --- Roy Stogner ```