Objective function

Please login with a confirmed email address before reporting spam

Respected Faculty

Please suggest, what is syntax error in this objective function for heat transfer through radial object ? I am using Comsol multiphysics version 6.0

(1-q)*comp1.intop1(k_simp*ht.gradTmag^2)+q*h0*hmax_design/A*comp1.intop1(sqrt(d(comp1.dtopo1.theta,x)^2+d(comp1.dtopo1.theta,y)^2)^2

Thank you sir

-------------------
RahulK

2 Replies Last Post 2025年2月20日 GMT-5 05:27
Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 days ago 2025年2月20日 GMT-5 03:59

There is at least one missing right parenthesis at the end.

-------------------
Henrik Sönnerlind
COMSOL
There is at least one missing right parenthesis at the end.

Please login with a confirmed email address before reporting spam

Posted: 2 days ago 2025年2月20日 GMT-5 05:27
Updated: 2 days ago 2025年2月20日 GMT-5 05:32

I would say the closing bracket ) of sqrt is missing.

(1-q)*

comp1.intop1(k_simp*ht.gradTmag^2)

+q*h0*

hmax_design/A*

comp1.intop1(

sqrt( d(comp1.dtopo1.theta,x)^2

+d(comp1.dtopo1.theta,y)^2

)^2

Just add another ) to the end )^2 which would be

))^2

Nice Greetings

I would say the closing bracket ) of sqrt is missing. (1-q)* comp1.intop1(k_simp*ht.gradTmag^2) +q*h0\* hmax_design/A* comp1.intop1( sqrt( d(comp1.dtopo1.theta,x)^2 +d(comp1.dtopo1.theta,y)^2 )^2 Just add another ) to the end )^2 which would be ))^2 Nice Greetings

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.