GeFEM ContStruct object
This object serves for storing parameters and data used in numerical continuation of solution branches of models (for more details about continuation see the GetFEM++ user documentation).
General constructor for ContStruct objects
S = ContStruct(Model md, string dataname_parameter[,string dataname_init, string dataname_final, string dataname_current], scalar sc_fac[, ...]) The variable dataname_parameter should parametrise the model given by md. If the parametrisation is done via a vector datum, dataname_init and dataname_final should store two given values of this datum determining the parametrisation, and dataname_current serves for actual values of this datum. sc_fac is a scale factor involved in the weighted norm used in the continuation.
Additional options:
name of the solver to be used for the incorporated linear systems (the default value is ‘auto’, which lets getfem choose itself); possible values are ‘superlu’, ‘mumps’ (if supported), ‘cg/ildlt’, ‘gmres/ilu’ and ‘gmres/ilut’;
initial step size (the default value is 1e-2);
maximum step size (the default value is 1e-1);
minimum step size (the default value is 1e-5);
factor for enlarging the step size (the default value is 1.3);
factor for diminishing the step size (the default value is 0.5);
maximum number of iterations allowed in the correction (the default value is 10);
threshold number of iterations of the correction for enlarging the step size (the default value is 4);
target residual value of a new point on the solution curve (the default value is 1e-6);
determines a convergence criterion for two consecutive points (the default value is 1e-6);
minimal value of the cosine of the angle between tangents to the solution curve at an old point and a new one (the default value is 0.9);
target residual value for the linear systems to be solved (the default value is 1e-8);
activates tools for detection and treatment of singular points (1 for limit points, 2 for bifurcation points and points requiring special branching techniques);
determines that some special methods for non-smooth problems can be used;
maximum size of division for evaluating the test function on the convex combination of two augmented Jacobians that belong to different smooth pieces (the default value is 0.005);
minimum size of division for evaluating the test function on the convex combination (the default value is 0.00012);
threshold variation for refining the division (the default value is 0.02);
total number of the linear combinations of one couple of reference vectors when searching for new tangent predictions during location of new one-sided branches (the default value is 40);
total number of the couples of the reference vectors forming the linear combinations (the default value is 1);
determines how detailed information has to be displayed during the continuation process (residual values etc.).
Compute one step of the Moore-Penrose continuation: Take the point given by solution and parameter, the tangent given by tangent_sol and tangent_par, and the step size h. Return a new point on the solution curve, the corresponding tangent, a step size for the next step and optionally the current step size. If the returned step size equals zero, the continuation has failed. Optionally, return the type of any detected singular point. NOTE: The new point need not to be saved in the model in the end!
Return the last value of the bifurcation test function and eventaully the whole calculated graph when passing between different sub-domains of differentiability.
Output a (unique) string representation of the ContStruct.
This can be used for performing comparisons between two different ContStruct objects. This function is to be completed.
Compute and return an updated tangent.
Display a short summary for a ContStruct object.
Initialise the Moore-Penrose continuation: Return a unit tangent to the solution curve at the point given by solution and parameter, and an initial step size for the continuation. Orientation of the computed tangent with respect to the parameter is determined by the sign of init_dir.
Return an initial step size for continuation.
Return the maximum step size for continuation.
Return the minimum step size for continuation.
Test for a non-smooth bifurcation point between the point given by solution1 and parameter1 with the tangent given by tangent_sol1 and tangent_par1 and the point given by solution2 and parameter2 with the tangent given by tangent_sol2 and tangent_par2.
Return a singular point (X, gamma) stored in the ContStruct object and a couple of arrays (T_X, T_gamma) of tangents to all located solution branches that emanate from there.
Return the decrement ratio of the step size for continuation.
Return the increment ratio of the step size for continuation.