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.

Degree of Freedom

Please login with a confirmed email address before reporting spam

Hi, I am using 4 quadratic element in 2D square geometry for calculation of temperature. I get 9 values of temperature at each node using function mpheval, but when i use fuction mphmatrix to get K matrix it come 25x25. It says number of degree of freedom is 25.

How it is possible for scalar 2D Heat conduction problem? The K matrix should also be 9x9.

I am unable to find in document regarding degree of freedom. and internal degree of freedom Please help.

Hitesh Kumar Sinha Thank You



3 Replies Last Post May 23, 2022, 5:36 a.m. EDT
Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 years ago May 18, 2022, 7:01 a.m. EDT

If you look under Discretization in the Heat Transfer in Solids node, you will see that the shape functions used are Quadratic Lagrange, so there are 25 nodes in the mesh.

If you want to visualize the nodes, add a Mesh plot in any plot group, and select the physics interface in the Node points drop-down menu.

-------------------
Henrik Sönnerlind
COMSOL
If you look under *Discretization* in the *Heat Transfer in Solids* node, you will see that the shape functions used are *Quadratic Lagrange*, so there are 25 nodes in the mesh. If you want to visualize the nodes, add a *Mesh* plot in any plot group, and select the physics interface in the *Node points* drop-down menu.

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 years ago May 23, 2022, 4:35 a.m. EDT

Hi Hitesh

mpheval assumes first order elements by default.

If you set 'refine' to 2 then you'll get the second order information - and usually much larger matrices.

-------------------
Lars Gregersen
Comsol Denmark
Hi Hitesh mpheval assumes first order elements by default. If you set 'refine' to 2 then you'll get the second order information - and usually much larger matrices.

Please login with a confirmed email address before reporting spam

Posted: 2 years ago May 23, 2022, 5:36 a.m. EDT

Thank Henrik and Lars. Thank you so much for your reply. I helped me alot, thank once again for your guidence

Thank Henrik and Lars. Thank you so much for your reply. I helped me alot, thank once again for your guidence

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.