Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Dec 3, 2015, 11:58 a.m. EST
Hello Matt,
If I understand correctly, you want to get 25 averages each corresponding to a separate line.
The tedious way is to manually create 25 Cut Line 2D data sets, and manually using Derived Values>Average 25 times to compute the averages.
The easy way is to create a small app that does all the repetitive work for you. See the attached file. Run the application; it should be pretty self descriptive. All it takes is a single method that consists of 3 commands within a for loop, and a single form with two form objects (a button and a table to which the values are sent).
Of course, you will want to prettify it, but it should put you on the right track.
Best,
Jeff
Hello Matt,
If I understand correctly, you want to get 25 averages each corresponding to a separate line.
The tedious way is to manually create 25 Cut Line 2D data sets, and manually using Derived Values>Average 25 times to compute the averages.
The easy way is to create a small app that does all the repetitive work for you. See the attached file. Run the application; it should be pretty self descriptive. All it takes is a single method that consists of 3 commands within a for loop, and a single form with two form objects (a button and a table to which the values are sent).
Of course, you will want to prettify it, but it should put you on the right track.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Dec 4, 2015, 6:57 a.m. EST
Dear Jeff,
Yeah, I did it by averaging step-by-step derived values, but it broke my heart... :).
Thanks for reply! I will come back later with the feedback :).
Dear Jeff,
Yeah, I did it by averaging step-by-step derived values, but it broke my heart... :).
Thanks for reply! I will come back later with the feedback :).
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
Dec 4, 2015, 9:17 a.m. EST
Hi again, Matt,
There is another approach, one that does not use an application but adding an extra study instead: see steps 1-5 at this link
www.comsol.com/blogs/maximum-e...luations-on-parallel-sections/ . In your case it's an average rather than a maximum that you want to compute, but the idea is the exactly same.
I am attaching a model that demonstrates this.
Best,
Jeff
Hi again, Matt,
There is another approach, one that does not use an application but adding an extra study instead: see steps 1-5 at this link www.comsol.com/blogs/maximum-e...luations-on-parallel-sections/ . In your case it's an average rather than a maximum that you want to compute, but the idea is the exactly same.
I am attaching a model that demonstrates this.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Oct 3, 2016, 7:29 a.m. EDT
Hi again, Matt,
There is another approach, one that does not use an application but adding an extra study instead: see steps 1-5 at this link www.comsol.com/blogs/maximum-e...luations-on-parallel-sections/ . In your case it's an average rather than a maximum that you want to compute, but the idea is the exactly same.
I am attaching a model that demonstrates this.
Best,
Jeff
Dear Jeff,
I have the same issue as Matt, but in my case much more 2D Cut lines!
My model is in 2d axisymmetric in V4.4.
I follow the steps at the link (although i dont understand how parametrized surface is the correct way for lines..but for planes) and in Step 3.. in ''data set'' option, the solution from Step 2 doesnt appear!(only ''revolution 2d'' data sets from my original studies(not step 2 study).
Also, could u upload the ForMK2.mph compatible to V4.4 model?
Thanks in advance
[QUOTE]
Hi again, Matt,
There is another approach, one that does not use an application but adding an extra study instead: see steps 1-5 at this link www.comsol.com/blogs/maximum-e...luations-on-parallel-sections/ . In your case it's an average rather than a maximum that you want to compute, but the idea is the exactly same.
I am attaching a model that demonstrates this.
Best,
Jeff
[/QUOTE]
Dear Jeff,
I have the same issue as Matt, but in my case much more 2D Cut lines!
My model is in 2d axisymmetric in V4.4.
I follow the steps at the link (although i dont understand how parametrized surface is the correct way for lines..but for planes) and in Step 3.. in ''data set'' option, the solution from Step 2 doesnt appear!(only ''revolution 2d'' data sets from my original studies(not step 2 study).
Also, could u upload the ForMK2.mph compatible to V4.4 model?
Thanks in advance