Re: [Libmesh-users] deform the mesh

2016-12-12 Thread Xinzeng Feng
I see. Many thanks, Roy! On Mon, Dec 12, 2016 at 9:40 AM, Roy Stogner wrote: > > On Thu, 8 Dec 2016, Xinzeng Feng wrote: > > Thanks, Roy! I will avoid hanging nodes definitely. Just to make sure, >> what you're suggesting is the following, right? >> for it_node >> n = n_nodes-distance(it_n

Re: [Libmesh-users] deform the mesh

2016-12-12 Thread Roy Stogner
On Thu, 8 Dec 2016, Xinzeng Feng wrote: Thanks, Roy! I will avoid hanging nodes definitely. Just to make sure, what you're suggesting is the following, right? for it_node      n = n_nodes-distance(it_node, it_node_end);      displacement(0) = (*system.solution)(3n);      displacement(1) = (*sy

Re: [Libmesh-users] deform the mesh

2016-12-08 Thread Xinzeng Feng
Thanks, Roy! I will avoid hanging nodes definitely. Just to make sure, what you're suggesting is the following, right? for it_node n = n_nodes-distance(it_node, it_node_end); displacement(0) = (*system.solution)(3n); displacement(1) = (*system.solution)(3n+1); displacement(2) =

Re: [Libmesh-users] deform the mesh

2016-12-08 Thread Roy Stogner
On Thu, 8 Dec 2016, Xinzeng Feng wrote: > I have a problem which needs information on both initial and deformed > meshes. To be short, can someone tell me how to map a mesh or an element > according to the calculated displacement in libMesh? Thanks! Looping over nodes and adding the specified di

[Libmesh-users] deform the mesh

2016-12-08 Thread Xinzeng Feng
Hi, I have a problem which needs information on both initial and deformed meshes. To be short, can someone tell me how to map a mesh or an element according to the calculated displacement in libMesh? Thanks! Xinzeng -- Xinzeng Feng, Ph.D. Institute for Computational Engineering and Sciences, Po