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.

Calculating Line average

Please login with a confirmed email address before reporting spam

Hi,

I know that from "Results >> Derived values >> Line Average", I can average an expression over the line of interested.

In my model, I like to use Line average in the middle of a domain where there is no line to chose for line average. How can I define a line and use it for Line average?

Thanks,
Hamed

5 Replies Last Post 22 févr. 2017, 21:33 UTC−5
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 31 janv. 2017, 16:02 UTC−5
Hello Hamed,
To avoid having to re-solve the model, after you add the line you need to use "Update solution" instead of "Compute". Then compute the line average the usual way.
Best,
Jeff
Hello Hamed, To avoid having to re-solve the model, after you add the line you need to use "Update solution" instead of "Compute". Then compute the line average the usual way. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 14 févr. 2017, 18:00 UTC−5
Thank you Jeff for the answer.

My question was how to define a line in the domain so I can select it in the line average?

Thanks,
Hamed
Thank you Jeff for the answer. My question was how to define a line in the domain so I can select it in the line average? Thanks, Hamed

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 15 févr. 2017, 02:49 UTC−5

My question was how to define a line in the domain so I can select it in the line average?


I suggest that you create a Cut Line data set.

[QUOTE] My question was how to define a line in the domain so I can select it in the line average? [/QUOTE] I suggest that you create a Cut Line data set.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 15 févr. 2017, 08:51 UTC−5
Indeed, Gunnar's solution is better than mine.
If for some reason you still decide to do it the way I mentioned above, just draw the line like you draw any line in COMSOL: in the Geometry branch of the Model Builder tree use a Polygon of the Open Curve type.
Best,
Jeff
Indeed, Gunnar's solution is better than mine. If for some reason you still decide to do it the way I mentioned above, just draw the line like you draw any line in COMSOL: in the Geometry branch of the Model Builder tree use a Polygon of the Open Curve type. Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 22 févr. 2017, 21:33 UTC−5
Thank you Gunnar and Jeff.
Thank you Gunnar and Jeff.

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.