Parametric Sweep (Job Configurations)
One of the main nodes is the Parametric Sweep () job configuration, which can loop over a given set of parameters. For each set of parameters, it runs the sequence defined by its subnodes. You can combine the sequence with other Batch, Parametric, or Cluster Computing sequences in a hierarchical way by adding a job configuration that points to another node. You can, for instance, create a Parametric Sweep node that does a LiveLink™ update and then runs a Cluster Computing node that in turn runs a second Parametric Sweep sequence on another node.
A parametric sweep can contain steps to run all solutions, save the model to a file, and evaluate derived values, for example. You add those steps by right-clicking the Parametric Sweep node and selecting one of the following options:
Job
Solution
Other
Save Model to File, which saves the solved model to an MPH file. See Save Model to File (Subnode).
Results
Job refers to another job that is to be run from this parametric sweep, while Solution (see Solution (Subnode)) runs a Solution node as available under the Solver Configurations node, available further up in the Study tree.
Under Other, you can choose External Class (see External Class (Subnode)), which calls an external Java® class file. Another option, Method Call (see Method Call (Subnode)), runs a model method. The Geometry (see Geometry (Subnode)), builds the Geometry node (runs the geometry sequence). This can be used, for example, in combination with a parametric sweep to generate a sequence of MPH files with different geometry parameters. The Mesh option (see Mesh (Subnode)) builds the Mesh node (runs the meshing sequence).
Under Results, you can choose Plot Group (see Plot Group (Subnode)) to run all or a selected set of plot groups. This is useful for automating the generation of plot groups after solving. The Derived Value option is there for legacy reason, and it is instead recommended that you use the Evaluate Derived Values option (see Evaluate Derived Values (Subnode)), which evaluates nodes under Results > Derived Values. The option Export to File (see Export to File (Subnode)) runs any node for data export under the Export node.
General
Use the Defined by study step list to specify that the settings are synchronized with the corresponding study step.
Use the Sweep type list to specify the type of sweep to perform. The Specified combinations type (the default) solves for a number of given combinations of values, while the All combinations type solves for all combinations of values. Using all combinations can lead to a very large number of solutions. The Parameter switch type makes it possible to run sweeps over selected parameter groups and associated parameter cases. For details about each sweep type and instructions on defining the parameters, see Parametric Sweep.
You can add a Stop condition that is evaluated after each solution. The last solution, which breaks the stop condition, is discarded from the set of solutions returned (the Parametric Solutions node) but is included in probe table outputs. Once the condition evaluates to a negative value, the Parametric node is stopped. Select the Keep solutions before and after stop condition checkbox to store both solutions — before and after the stop condition has been satisfied — in the parametric solutions storage.
Results While Solving
See Results While Solving in the Common Study Step Settings section.
Error
Errors are usually stored in the Error table. If you want to get the error message at once, select the Stop if error checkbox. Select the Postpone errors until end of sequence checkbox to allow the sequence to continue even if an error is encountered. This is different from Stop if error where the sweep only continues with the next step if no error occurs. The Postpone errors until end of sequence option is, for instance, useful when you are interested in the solution even if there is an error.
Cluster Settings
You can distribute the sweep on several computational nodes by selecting the Distribute parameters checkbox. If the problem is too large to run on a single node, enable the Maximum number of groups field to use the nodes’ memory more efficiently. In this case, the same parameter is solved for by several nodes that cooperate as if running a nondistributed sweep. The number of nodes that cooperate is equal to the maximum of the total number of nodes divided by the Maximum number of groups setting and 1. So if the total number of nodes is 12 and the Maximum number of groups is 3, 3 groups with 4 nodes each cooperate.
To improve robustness of distributed parametric sweeps, the Synchronize at every Nth parameter per group is selected by default from the Checkpoint list. This will insert checkpoints in the sweep at which the solutions, exported files and probe tables will be synchronized. A recovery file will also be saved at each checkpoint. Each checkpoint splits the sweep in smaller sweeps and the progress can be recovered up until the last checkpoint. Enter a positive integer in the N field (default: 4) to insert a checkpoint every N parameters for each group of nodes. If the total number of groups is 3, and N is 4, a checkpoint will be inserted every 12 parameters. If the parameters influence the solving time strongly a smaller N could result in extra synchronization time if one group reaches the checkpoint faster than other groups, choosing N is a trade-off between robustness and speed. Select Synchronize at end of sequence if no checkpoints should be inserted and the sweep should be optimized for speed.
Log
Select the Keep warnings in stored log checkbox as needed.
An Integro-Partial Differential Equation: Application Library path COMSOL_Multiphysics/Equation_Based/integro_partial.