Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Sep 14, 2020
Messages
107
Location
NO
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
 
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

Back
Top