how can I find the mid-nodes

Topics: Mesh, 4.2

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   1 Reply   Last post: October 5, 2009 11:42pm UTC
Ju MIng

Ju MIng

October 5, 2009 10:30pm UTC

how can I find the mid-nodes

Hi,

I am using Taylor-hood ( second-order Lagrange) FEM to solve some PDEs, thus I need to number the nodes including the mid-point at each edge of the triangular element. The fem.mesh.t and fem.mesh.p only offer the positions and informations of the vertices, not including the mid-nodes.

How can I determine the positions of the mid-nodes and give them an order, like fem.mesh.t and fem.mesh.p.

Any help would be appreciated.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Pasquale Franciosa

Pasquale Franciosa

October 5, 2009 11:42pm UTC in response to Ju MIng

Re: how can I find the mid-nodes

Hi,
I think you should use the "xmeshinfo" from matlab script. For example, assuming fem is your fem structure, then:

fem.xmesh=meshextend(fem); %-create extended mesh
meshxinfo=xmeshinfo(fem,'out','nodes'); %-structured array
allnodes=meshxinfo.coords; %-return the complete list (coordinate) of all nodes into your model

I hope this may be useful

Regards

Pasquale


Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines