MRSTlogo_web_banner_light_thinner_Epi.png

Function setNonlinearSolverParameters.m
tutorial main page computeComposition.m computeWaterComp.m equationCompositional.m flash_calculation.m getHenryCoef.m
getR.m initStateBravo.m omega_l.m quadraticRelPerm.m runBravo.m setNonlinearSolverParameters.m setupControls.m
setupGeometry.m setupSystem.m solvefi.m vaporPressure.m

Function setNonlinearSolverParameters.m

function nonlinear = setNonlinearSolverParameters(param)

    nonlinear.maxIterations = param.maxIterations;
    % Relaxation parameters for Newton iterations
    nonlinear.relaxation  = 1;
    nonlinear.relaxMax    = 0.2;
    nonlinear.relaxInc    = 0.1;
    nonlinear.relaxRelTol = 0.01; %.1;

    % Parameters for Newton's iterations
    nonlinear.linesearch = false;

    nonlinear.relaxType = 'sor';
    nonlinear.tol = 1.0e-10;
 end

Published October 8, 2014