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 2009年9月1日 GMT-4 18:15

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 2009年9月1日 GMT-4 18:15
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.