When used under an Optimization Solver node, some of the settings below are instead available in the settings for the Optimization Solver node.
|
•
|
Choose Output times by interpolation (the default) to store the output times using interpolation from the solver’s time steps.
|
•
|
Choose Steps taken by solver closest to output times to use the time steps from the solver that are closest to a given output time among all the steps that have passed this output time.
|
•
|
Choose Steps taken by solver to store the actual time steps from the solver. Specify to store every Nth step in the Store every Nth step field (default value: 1; that is, all time steps are stored).
|
•
|
•
|
•
|
•
|
Scaled to apply the specified tolerance to scaled variables.
|
•
|
Unscaled to apply the specified tolerance to unscaled variables.
|
•
|
Use global (the default) to apply the tolerance specified for the global tolerance.
|
•
|
•
|
•
|
BDF to use a backward differentiation formula.
|
•
|
Generalized alpha to use the generalized-α method.
|
•
|
Initialization only to compute consistent initial values only and then stop. If this option is selected, no other settings are required.
|
•
|
Runge–Kutta to use one of the following Runge–Kutta methods from the Runge–Kutta method list: RK34, Cash–Karp 5, or Dormand–Prince 5. See Time Stepping (Runge–Kutta Methods) below for more information about these settings for these Runge–Kutta methods.
|
•
|
Classical Runge–Kutta to use classical explicit Runge–Kutta (ERK) methods. Explicit classical Runge–Kutta methods of order 1–4 are supported. Runge–Kutta 4 is the default choice for the discontinuous Galerkin method. See Time Stepping (Classical Runge–Kutta) below for more information about these settings for this method.
|
•
|
•
|
Adams–Bashforth 3 (local) to use an Adams–Bashforth method using a local time-marching scheme with the Wave Form PDE interface. See Time Stepping (Adams–Bashforth 3, Local) below for more information about these settings for this method.
|
The BDF time-stepping method can be used without a Fully Coupled or Segregated attribute node. In such a situation, the BDF method uses an internal automatic nonlinear solver.
|
•
|
Free to let the time-stepping method choose time steps freely. The times specified in the Times field in the General section are not considered when a time step is chosen.
|
•
|
Intermediate to force the time-stepping method to take at least one step in each subinterval of the times specified in the Times field in the General section.
|
•
|
Strict to force the time-stepping method to take steps that end at the times specified in the Times field in the General section. The solver takes additional steps in between these times if necessary.
|
•
|
Manual to override the automatic choice of time step with a manual choice. Manual time stepping can be useful in cases where the automatic time-step selection does not work; for example, in contact problems, rotating machinery, or fluid-structure interaction.
|
Manual is available for BDF and Generalized alpha and overrides the local error estimation made in each time step.
|
•
|
Initial step. By default, the solver chooses an initial step automatically. Select the Initial step check box for manual specification of an initial step. By default, the first step is 0.1% of the end time, which can affect your solution so that you do not get the same time-step history up to a certain earlier time when the end time is changed. This should, however, not change the result appreciably if you use tight enough tolerances for that the automatic time step control. Also, the results of the consistent initialization can be strongly dependent on the initial time step taken, if the initial conditions and the boundary conditions do not match, for example. If needed, you can change the values for the Initial step or the Fraction of initial step for Backward Euler (see below).
|
•
|
Maximum step constraint. By default, the solver chooses a maximum time step automatically. Select Constant as the maximum step constraint for manual specification of a fixed maximum time step. A constant maximum step constraint is a positive scalar value, which can be an expression that evaluates to a numerical value before entering the solver. The expression can include global parameters. Select Expression as the maximum step constraint for more general expressions of the allowed maximum time step. These expressions are evaluated while solving and can, for instance, depend on the time parameter itself.
|
•
|
Maximum BDF order (available if Free, Intermediate, or Strict is selected for the Steps taken by solver). This setting controls the maximum allowed degree of the interpolating polynomial of the BDF method.
|
•
|
Minimum BDF order (available if Free, Intermediate, or Strict is selected for the Steps taken by solver). This setting can be used to prevent the solver from decreasing the order of the BDF method below 2.
|
•
|
BDF order (available if Manual is selected for the Steps taken by solver). The order of the BDF can be 1–5 (default order: 2).
|
•
|
Initial step fraction (available if Manual is selected for the Steps taken by solver). During the startup of the BDF method, a shorter time step will be used to compensate for the lower order that is used for the first handful of steps. The initial step is a fraction of the first step, and the solver then exponentially increases the step length until the requested step length is reached. This settings and the initial step growth rate below control that startup phase. The default values depend on the selected BDF order.
|
•
|
•
|
Time step (available if Manual is selected for the Steps taken by solver). Enter a manual time step specification as a scalar, a vector of times, or an expression containing global variables or parameters in the Time step field using the base unit for time. The relative and absolute tolerances are still used to terminate the algebraic equations at each time step. Also, the requested time step will be reduced if the algebraic solver does not converge.
|
•
|
Event tolerance. This setting can be used to set the event tolerance (default value: 0.01), which is used for root finding of event conditions when using implicit events; see Explicit Event.
|
•
|
Nonlinear controller. Select this check box to use a nonlinear controller for more efficient time-step control in the BDF method, especially for highly nonlinear problems such as multiphase flow and turbulence in fluid dynamics. When nonlinear failures occur, the nonlinear controller becomes active and uses a more careful time step control. The nonlinear controller acknowledges that the step size for Newton stability might be smaller than the step size for BDF accuracy.
|
•
|
Time step increase delay (available if Free, Intermediate, or Strict is selected for the Steps taken by solver). Select this check box and enter a positive integer in the field to make the solver more restrictive when increasing the time step. This integer is the number of time steps taken by the solver before the increase of the time step is actually performed, from the first step where the error estimator signals that the current step is too small. This setting is useful when there is a natural variation in the solution, like periodicity or quasi-periodicity, which make the time steps vary up and down in size. The generalized-α method does not work well when the time step changes often, so in those situations it is better to damp the changes by a more conservative strategy using this setting. Entering 0 results in the same behavior as clearing the check box.
|
•
|
Time step (available if Manual is selected for the Steps taken by solver). Enter a manual time step specification as a scalar, a vector of times, or an expression containing global variables or parameters in the Time step field.
|
•
|
Amplification for high frequency. Enter a number between 0 and 1 to control how much damping of high frequencies the solver provides. A value close to 0 results in efficient damping, while a number close to 1 results in little damping.
|
•
|
Predictor. Select Linear to use linear extrapolation of the present solution to construct the initial guess for the nonlinear system of equations to be solved at the next time step. Select Constant to use the current solution as initial guess.
|
•
|
Maybe to make the solver look for zero-filled rows or columns in the mass matrix as a means of detecting a differential-algebraic equation.
|
•
|
Yes, if the model includes a differential-algebraic equation where the mass matrix has no zero-filled rows or columns.
|
•
|
Backward Euler (the default) to perform consistent initialization using a small artificial step with the backward Euler method. When this is selected, enter a value in the Fraction of initial step for Backward Euler field. This value is a dimensionless quantity that determines the size of the time step for the backward Euler method (in terms of the initial step). Adjusting this value can improve the accuracy of the initialization step but can also affect the startup of some models. The default value is 0.001 (that is, the small backward Euler step size is 0.1% of the initial step size). Also, the Safety factor for Backward Euler is used in the algebraic equation termination during consistent initialization using the Backward Euler method. A larger value gives a stricter condition. The default value of 20 corresponds to the normal behavior for any new time step.
|
•
|
Off to indicate that the initial values already are consistent, which means that the solver does not modify them.
|
•
|
•
|
Include algebraic (the default) to include the algebraic degrees of freedom in the error norm.
|
•
|
Exclude algebraic to exclude the algebraic degrees of freedom from the error norm.
|
•
|
Free to let the time-stepping method choose time steps freely. The times specified in the Times field in the General section are not considered when a time step is chosen.
|
•
|
Intermediate to force the time-stepping method to take at least one step in each subinterval of the times specified in the Times field in the General section.
|
•
|
Strict to force the time-stepping method to take steps that end at the times specified in the Times field in the General section. The solver takes additional steps in between these times if necessary.
|
•
|
Manual to override the automatic choice of time step with a manual choice.
|
•
|
Initial step. By default the solver chooses an initial step automatically. Select the Initial step check box for manual specification of an initial step in the associated text field. This settings is not available for the Cash–Karp 5 method; instead you specify a value of the time step in the Time step field.
|
•
|
•
|
•
|
•
|
Specified values to store solutions at the values entered in the Times field in the General section.
|
•
|
Steps taken by solver to store solutions at the time steps taken by the solver.
|
The selection made in the list Steps taken by solver in the Time Stepping section influences the output in this situation.
|
•
|
Select the Store reaction forces check box to compute and store reaction forces in the output. This option is not supported when using any of the Runge–Kutta time-stepping methods.
|
•
|
The computation of boundary flux variables involves solving a system of equations to obtain a continuous field from nodal flux values. If the Use lumping when computing fluxes check box is selected, this system of equations is lumped. The benefits of using this option is that it can avoid certain spurious oscillations in the computed flux field and it is also slightly faster. Lumping is not suitable in 3D for shape functions of order higher than 1. Lumping is not supported when using any of the Runge–Kutta time-stepping methods.
|
•
|
Select the Store time derivatives check box to store time derivatives of the variables solved for in the output. Storing the time derivatives gives more accurate results when evaluating quantities that involve these time derivatives.
|
•
|
Select the Store solution before and after events check box to store two additional solutions every time an implicit or explicit event is triggered. See The Events Interface. This stores the solutions before and after the reinitialization.
|
•
|
•
|
•
|
When you want to define auxiliary parameters that are part of the equations like CFLCMP or niterCMP and where the solver does not define these parameters.
|
The Black–Scholes Equation: Application Library path COMSOL_Multiphysics/Equation_Based/black_scholes_put
|