Adding a Job Sequence
In the study node you can define a job sequence such as distributed parametric jobs, batch jobs, and cluster computing. To create a batch node enter:
model.batch.create(<batchtag>, type)
where <batchtag> is the tag of the job sequence and type is the type of job to define. It can be either Parametric, Batch, or Cluster.
For a solver sequence you need to attach the job sequence to an existing study node. Enter the command:
model.batch(<batchtag>).attach(<studytag>)
where <studytag> is the tag of the study node.
Each job type, such as parametric, batch, or cluster job, can be defined with specific properties. Use the set method to add a property to the batch job:
model.batch(<batchtag>).set(property, <value>)
You can get the list of the properties in model.batch() in the COMSOL Multiphysics Programming Reference Manual or type at the MATLAB prompt: mphdoc(model.batch).
To run the batch sequence use the run method:
model.batch(<batchtag>).run
or the mphrun command
mphrun(model, <batchtag>)