deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
|
#include <deal.II/sundials/arkode.h>
Public Member Functions | |
AdditionalData (const double initial_time=0.0, const double final_time=1.0, const double initial_step_size=1e-2, const double output_period=1e-1, const double minimum_step_size=1e-6, const unsigned int maximum_order=5, const unsigned int maximum_non_linear_iterations=10, const bool implicit_function_is_linear=false, const bool implicit_function_is_time_independent=false, const bool mass_is_time_independent=false, const int anderson_acceleration_subspace=3, const double absolute_tolerance=1e-6, const double relative_tolerance=1e-5) | |
void | add_parameters (ParameterHandler &prm) |
Public Attributes | |
double | initial_time |
double | final_time |
double | initial_step_size |
double | minimum_step_size |
double | absolute_tolerance |
double | relative_tolerance |
unsigned int | maximum_order |
double | output_period |
unsigned int | maximum_non_linear_iterations |
bool | implicit_function_is_linear |
bool | implicit_function_is_time_independent |
bool | mass_is_time_independent |
int | anderson_acceleration_subspace |
Additional parameters that can be passed to the ARKode class.
SUNDIALS::ARKode< VectorType >::AdditionalData::AdditionalData | ( | const double | initial_time = 0.0 , |
const double | final_time = 1.0 , |
||
const double | initial_step_size = 1e-2 , |
||
const double | output_period = 1e-1 , |
||
const double | minimum_step_size = 1e-6 , |
||
const unsigned int | maximum_order = 5 , |
||
const unsigned int | maximum_non_linear_iterations = 10 , |
||
const bool | implicit_function_is_linear = false , |
||
const bool | implicit_function_is_time_independent = false , |
||
const bool | mass_is_time_independent = false , |
||
const int | anderson_acceleration_subspace = 3 , |
||
const double | absolute_tolerance = 1e-6 , |
||
const double | relative_tolerance = 1e-5 |
||
) |
Initialization parameters for ARKode.
Global parameters:
initial_time | Initial time |
final_time | Final time |
initial_step_size | Initial step size |
output_period | Desired time interval between each output |
Running parameters:
minimum_step_size | Minimum step size |
maximum_order | Maximum ARK order |
maximum_non_linear_iterations | Maximum number of nonlinear iterations |
implicit_function_is_linear | Specifies that the implicit portion of the problem is linear |
implicit_function_is_time_independent | Specifies that the implicit portion of the problem is linear and time independent |
mass_is_time_independent | Specifies that the mass pre-factor is independent of time |
anderson_acceleration_subspace | The number of vectors to use for Anderson acceleration within the packaged SUNDIALS solver. |
Error parameters:
absolute_tolerance | Absolute error tolerance |
relative_tolerance | Relative error tolerance |
void SUNDIALS::ARKode< VectorType >::AdditionalData::add_parameters | ( | ParameterHandler & | prm | ) |
Add all AdditionalData() parameters to the given ParameterHandler object. When the parameters are parsed from a file, the internal parameters are automatically updated.
The options you pass at construction time are set as default values in the ParameterHandler object prm
. You can later modify them by parsing a parameter file using prm
. The values of the parameter will be updated whenever the content of prm
is updated.
Make sure that this class lives longer than prm
. Undefined behavior will occur if you destroy this class, and then parse a parameter file using prm
.
double SUNDIALS::ARKode< VectorType >::AdditionalData::initial_time |
double SUNDIALS::ARKode< VectorType >::AdditionalData::final_time |
double SUNDIALS::ARKode< VectorType >::AdditionalData::initial_step_size |
double SUNDIALS::ARKode< VectorType >::AdditionalData::minimum_step_size |
double SUNDIALS::ARKode< VectorType >::AdditionalData::absolute_tolerance |
double SUNDIALS::ARKode< VectorType >::AdditionalData::relative_tolerance |
unsigned int SUNDIALS::ARKode< VectorType >::AdditionalData::maximum_order |
double SUNDIALS::ARKode< VectorType >::AdditionalData::output_period |
unsigned int SUNDIALS::ARKode< VectorType >::AdditionalData::maximum_non_linear_iterations |
bool SUNDIALS::ARKode< VectorType >::AdditionalData::implicit_function_is_linear |
bool SUNDIALS::ARKode< VectorType >::AdditionalData::implicit_function_is_time_independent |
bool SUNDIALS::ARKode< VectorType >::AdditionalData::mass_is_time_independent |
int SUNDIALS::ARKode< VectorType >::AdditionalData::anderson_acceleration_subspace |