Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

how to access co-ordinates of mesh nodes

Please login with a confirmed email address before reporting spam

I am using the transient heat diffusion module. The thermal conductivity of one of the sub-domains in the geometry is a user defined function in Matlab and depends on the co-ordinates of the mesh nodes. When I call this function in COMSOL I pass x and y values to it. However I have found that the values as well as the size of x and y change over time (i.e. from time t=0 to tome t=tfinal) and also that these x and y values do not represent the mesh nodes. How can I access the mesh nodes? Are the variables named differently? Please help.

Thank you.

1 Reply Last Post Sep 1, 2009, 6:15 p.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 1, 2009, 6:15 p.m. EDT
You could use xmeshinfo. If you run xmeshinfo(fem,'out','dofs'), it will return a structure with information about the extended mesh. The coords field of the structure will have the coordinates for all nodes.

You could use xmeshinfo. If you run xmeshinfo(fem,'out','dofs'), it will return a structure with information about the extended mesh. The coords field of the structure will have the coordinates for all nodes.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.