The Study Node
A study node holds the nodes that define how to solve a model. These nodes are divided into these broad categories:
Introduction to Solvers and Studies in the COMSOL Reference Manual
Create a study node by using the syntax:
model.study.create(<studytag>)
where studytag is a string that is used to define the study node.
The minimal definition for the study node consists in a study step that define the type of study to use to compute the solution. To add a study step to the study node, use the syntax:
study.feature.create(<ftag>, operation)
where study is a link to the study node. The string <ftag> is a string that is defined to refer to the study step. The string operation is one of the basic study types, such as Stationary, Transient, or Eigenfrequency, and more.
To specify a property value pair for a study step, enter:
study.feature(<ftag>).set(property, <value>)
where <ftag> is the string identifying the study step.
To generate the default solver sequence associated with the physics solved in the model and compute the solution, run the study node with the command:
study.run
model.study() in the COMSOL Multiphysics Programming Reference Manual
Another way to run a study is to call the function mphrun as in the command below:
mphrun(model)
This runs the study node study and automatically enables the progress window while computing the solution. The progress bar is not available on macOS.
In case you have several studies in your model, and you would like to run a specific one, type:
mphrun(study)
where study is the study node you want to run.
In case you do not want to display the progress window, set the property progress to off:
mphrun(model,'study','progress','off')