Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations Toost on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How could I do this in Comsol?

Status
Not open for further replies.

tugni925

Mechanical
Sep 14, 2020
107
I am running a "Study 2", which runs a parametric sweep over certain k-values and gives a plot (Fig.1).

Study 2, k-values and plot

1_ppzklf.png


The plot changes depending on parameters "a" and "b". I want to run the same study, but I want the "a" and "b" values to keep changing. So I might want to run a study for 3 sets of parameter "a" and "b" which might look like this:

Set 1: "a" = 0.196 "b" = 0.190

Set 2: "a" = 0.194 "b" = 0.192

Set 1: "a" = 0.191 "b" = 0.193

Obviously I can just manually change parameter "a" and "b" and run the study again for each set, but I want to automate this process - does anyone have any idea?

The parameters "a" and "b"

2_jxrolb.png
 
Replies continue below

Recommended for you

If there are only 3 sets of parameters then I think that it will be easiest to just change them and run the analysis three times, then combine the results into a single plot. Automation attempts may take a lot more time. Parametric studies are built-in feature in Comsol but apart from that you would have to write your own Java scripts to automate the process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor