#include <prefs.h>
Public Member Functions | |
Structors | |
| TComponentSettings () | |
| Initialize all settings to compile-time default values. | |
| TComponentSettings (const TComponentSettings &) | |
| Copy constructor. | |
| TComponentSettings & | operator= (const TComponentSettings &) |
| Assignement operator. | |
| ~TComponentSettings () throw () | |
| Trivial destructor. | |
Main operations | |
| void | Reset () |
| Resets settings to default values. | |
| void | Load (SPARK::TPrefList *prefList) |
| Loads all settings from prefList. | |
Access methods for nonlinear solver | |
| unsigned | GetComponentSolvingMethod () const |
Returns the code for the component solving method as unsigned. | |
| void | SetComponentSolvingMethod (unsigned method) |
Sets the code for the component solving method to method. | |
| unsigned | GetMaxIterations () const |
Returns the maximum number of iterations allowed in the nonlinear solver as unsigned. | |
| void | SetMaxIterations (unsigned maxIterations) |
Sets the maximum number of iterations allowed in the nonlinear solver to maxIterations. | |
| unsigned | GetMinIterations () const |
Returns the minimum number of iterations allowed in the nonlinear solver as unsigned. | |
| void | SetMinIterations (unsigned minIterations) |
Sets the minimum number of iterations allowed in the nonlinear solver to minIterations. | |
| unsigned | GetCheckBadNumericsFlag () const |
Returns the boolean flag (0=false | 1=true) indicating whether or not the solver will check for bad numerics at each iteration as unsigned. | |
| void | SetCheckBadNumericsFlag (unsigned flag) |
| Sets the flag indicating whether or not the solver will check for bad numerics at each iteration. | |
Access methods for jacobian evaluation method | |
| unsigned | GetTrueJacobianEvalStep () const |
Returns the number of iterations until the Jacobian should be refreshed as unsigned. | |
| void | SetTrueJacobianEvalStep (unsigned frequency) |
Sets the number of iterations until the jacobian should be refreshed to frequency. | |
| double | GetJacobianRefreshRatio () const |
Returns the threshold value of the ratio of the residual norms over successive iterations that triggers a Jacobian refresh as double. | |
| void | SetJacobianRefreshRatio (double refreshRatio) |
Sets the threshold value of the ratio of the residual norms over successive iterations that triggers a Jacobian refresh to refreshRatio. | |
| double | GetEpsilon () const |
Returns the perturbation value used to estimate the partial derivatives with finite-differences as double. | |
| void | SetEpsilon (double epsilon) |
Sets the perturbation value used to estimate the partial derivatives with finite-differences to epsilon. | |
Access methods for step control method | |
| unsigned | GetStepControlMethod () const |
Returns the code for the step control method as unsigned. | |
| void | SetStepControlMethod (unsigned method) |
Sets the code for the step control method to method. | |
| double | GetMaxRelaxationCoefficient () const |
Returns the maximum relaxation coefficient used by the step control method as double. | |
| void | SetMaxRelaxationCoefficient (double maxRelaxation) |
Sets the maximum relaxation coefficient used by the step control method to maxRelaxation. | |
| double | GetMinRelaxationCoefficient () const |
Returns the minimum relaxation coefficient used by the step control method as double. | |
| void | SetMinRelaxationCoefficient (double minRelaxation) |
Sets the minimum relaxation coefficient used by the step control method to minRelaxation. | |
Access methods for linear solver | |
| unsigned | GetMatrixSolvingMethod () const |
Returns the code for the linear solution method as unsigned. | |
| void | SetMatrixSolvingMethod (unsigned method) |
Sets the code for the linear solution method to method. | |
| unsigned | GetScalingMethod () const |
Returns the code for the scaling method as unsigned. | |
| void | SetScalingMethod (unsigned method) |
Sets the code for the scaling method to method. | |
| unsigned | GetPivotingMethod () const |
Returns the code for the pivoting method used in conjunction with the Gaussian elimination method as unsigned. | |
| void | SetPivotingMethod (unsigned method) |
Sets the code for the pivoting method used in conjunction with the Gaussian elimination method to method. | |
| unsigned | GetRefinementMethod () const |
Returns the number of desired refinement iterations as unsigned. | |
| void | SetRefinementMethod (unsigned method) |
Sets the number of desired refinement iterations to method. | |
Access methods for tracers | |
| |
| const char * | GetVariablesTracerFilename () const |
Returns the name of the variables tracer file as const char* . | |
| void | SetVariablesTracerFilename (const char *filename) |
Sets the name of the variables tracer file to filename. | |
| const char * | GetIncrementsTracerFilename () const |
Returns the name of the increments tracer file as const char* . | |
| void | SetIncrementsTracerFilename (const char *filename) |
Sets the name of the increments tracer file to filename. | |
| const char * | GetResidualsTracerFilename () const |
Returns the name of the residuals tracer file as const char* . | |
| void | SetResidualsTracerFilename (const char *filename) |
Sets the name of the residuals tracer file to filename. | |
| const char * | GetJacobianTracerFilename () const |
Returns the name of the Jacobian tracer file as const char* . | |
| void | SetJacobianTracerFilename (const char *filename) |
Sets the name of the Jacobian tracer file to filename. | |
I/O Operations | |
| void | Write (std::ostream &os, const std::string &before) const |
Writes the list of component settings to os. | |
Behavior:
ComponentSettings for each component.See namespace SPARK::DefaultComponentSettings for the list of hard-coded default settings.
|
|
Initialize all settings to compile-time default values.
|
|
|
Copy constructor.
|
|
|
Trivial destructor.
|
|
|
Assignement operator.
|
|
|
Resets settings to default values.
|
|
|
Loads all settings from prefList.
|
|
|
Returns the code for the component solving method as List of codes:
|
|
|
Sets the code for the component solving method to
|
|
|
Returns the maximum number of iterations allowed in the nonlinear solver as
|
|
|
Sets the maximum number of iterations allowed in the nonlinear solver to
|
|
|
Returns the minimum number of iterations allowed in the nonlinear solver as
|
|
|
Sets the minimum number of iterations allowed in the nonlinear solver to
|
|
|
Returns the boolean flag (0=false | 1=true) indicating whether or not the solver will check for bad numerics at each iteration as
|
|
|
Sets the flag indicating whether or not the solver will check for bad numerics at each iteration.
|
|
|
Returns the number of iterations until the Jacobian should be refreshed as
|
|
|
Sets the number of iterations until the jacobian should be refreshed to
|
|
|
Returns the threshold value of the ratio of the residual norms over successive iterations that triggers a Jacobian refresh as
|
|
|
Sets the threshold value of the ratio of the residual norms over successive iterations that triggers a Jacobian refresh to
|
|
|
Returns the perturbation value used to estimate the partial derivatives with finite-differences as
|
|
|
Sets the perturbation value used to estimate the partial derivatives with finite-differences to
|
|
|
Returns the code for the step control method as List of codes:
|
|
|
Sets the code for the step control method to
|
|
|
Returns the maximum relaxation coefficient used by the step control method as
|
|
|
Sets the maximum relaxation coefficient used by the step control method to
|
|
|
Returns the minimum relaxation coefficient used by the step control method as
|
|
|
Sets the minimum relaxation coefficient used by the step control method to
|
|
|
Returns the code for the linear solution method as List of codes:
|
|
|
Sets the code for the linear solution method to
|
|
|
Returns the code for the scaling method as List of codes:
|
|
|
Sets the code for the scaling method to
|
|
|
Returns the code for the pivoting method used in conjunction with the Gaussian elimination method as List of codes:
|
|
|
Sets the code for the pivoting method used in conjunction with the Gaussian elimination method to
|
|
|
Returns the number of desired refinement iterations as
|
|
|
Sets the number of desired refinement iterations to
|
|
|
Returns the name of the variables tracer file as
|
|
|
Sets the name of the variables tracer file to
|
|
|
Returns the name of the increments tracer file as
|
|
|
Sets the name of the increments tracer file to
|
|
|
Returns the name of the residuals tracer file as
|
|
|
Sets the name of the residuals tracer file to
|
|
|
Returns the name of the Jacobian tracer file as
|
|
|
Sets the name of the Jacobian tracer file to
|
|
||||||||||||
|
Writes the list of component settings to
|