Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Weak Constraint thermal flux

Please login with a confirmed email address before reporting spam

Hi every body

I am using Weak form to model strongly coupled thermal-structural equations.My model consists of two layers.
I used Weak constraint to ensure that my thermal flux will be continuous but
Comsol gives me an error that "Expression must be linear in test function"..and i dont know how to solve it.
What does it mean?.Do I have to change a shape function?if yes,how can I do that

I used (q22-q2)*test(u3), where u3 is dependent variable for temperature and q variable for heat flux of each layer.

Coud you please help me?

Thank you





4 Replies Last Post 2013年5月16日 GMT-4 07:17

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年5月16日 GMT-4 05:48
Hi,

probably I misunderstand your question, but to make it clear: thermal heat flux is not constant among the elements!

In general, for Lagrange elements, the spatial derivatives of the principal variables (your case temperature,etc..) is not constant among two elements...

Mattia
Hi, probably I misunderstand your question, but to make it clear: thermal heat flux is not constant among the elements! In general, for Lagrange elements, the spatial derivatives of the principal variables (your case temperature,etc..) is not constant among two elements... Mattia

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年5月16日 GMT-4 06:18
Thank you for reply

yes you are right but thermal flux .I mean -lambda*gradT,must be continous from one layer to second ,no step change in interface boundary.
I am still facing this problem because my Weak constriant doesnt work.

I would be very glad If somebody could help me

Thank you
Thank you for reply yes you are right but thermal flux .I mean -lambda*gradT,must be continous from one layer to second ,no step change in interface boundary. I am still facing this problem because my Weak constriant doesnt work. I would be very glad If somebody could help me Thank you

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年5月16日 GMT-4 06:40
I cannot give you a solution, but gradT is the derivative of the temperature.. if your layers have boundaries defined on mesh ( as I guess it is ), your thermal flux cannot be continuous.
The reason is simple: with Lagrange elements you impose the continuity of the temperature among the elements, thus you cannot also ensure the continuity of the temperature derivatives.
I cannot give you a solution, but gradT is the derivative of the temperature.. if your layers have boundaries defined on mesh ( as I guess it is ), your thermal flux cannot be continuous. The reason is simple: with Lagrange elements you impose the continuity of the temperature among the elements, thus you cannot also ensure the continuity of the temperature derivatives.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年5月16日 GMT-4 07:17
Thanks

Maybe I didnt express it clear for better understading what I mean I atteched a comparison with heat transfer modul(right flux).look at te shape of the curve.(values are different due to different geometry)
Thermal flux must be equal in the interface due to this fact I wanted to use Weak Constraint to prescribe
heat flux,but comsol gives me an error (mentioned above).

thank you

Miro
Thanks Maybe I didnt express it clear for better understading what I mean I atteched a comparison with heat transfer modul(right flux).look at te shape of the curve.(values are different due to different geometry) Thermal flux must be equal in the interface due to this fact I wanted to use Weak Constraint to prescribe heat flux,but comsol gives me an error (mentioned above). thank you Miro

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.