Skip to content

Commit

Permalink
(A) Added flags to solve algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
j507 committed Sep 2, 2024
1 parent 6afd812 commit 4047fb9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions source/gradient_crystal_plasticity/solve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ solve_nonlinear_system(const bool flag_skip_extrapolation)
store_slip_resistances();

// Compute and store starting point
extrapolate_initial_trial_solution(flag_skip_extrapolation);
extrapolate_initial_trial_solution(flag_skip_extrapolation ||
parameters.flag_skip_extrapolation);

store_trial_solution(true);

Expand Down Expand Up @@ -760,7 +761,10 @@ void GradientCrystalPlasticitySolver<dim>::embracing_algorihtm()

unsigned int n_krylov_iterations = 0.;

// Newton-Raphson update
// Newton-Raphson update:
// During the first load step the sub-matrix G leads a bad Shur
// complement if the rate-dependent case with a small regularization
// parameter is chosen
if (discrete_time.get_step_number() == 0 &&
macro_nonlinear_iteration == 1)
{
Expand Down Expand Up @@ -805,13 +809,16 @@ void GradientCrystalPlasticitySolver<dim>::embracing_algorihtm()
// Determine the active (and also inactive) set
active_set_algorithm(flag_compute_active_set);

debug_output();

// The distribution corresponds to another method for the
// sake of the monolithic algorithm
//distribute_affine_constraints_to_trial_solution();

// Revert the plastic slips to the initial trial solution
// values
if (false)//parameters.staggered_algorithm_parameters.flag_reset_trial_solution_at_micro_loop)
if (parameters.staggered_algorithm_parameters.
flag_reset_trial_solution_at_micro_loop)
{
reset_trial_solution(true, 1);
}
Expand Down Expand Up @@ -947,8 +954,6 @@ void GradientCrystalPlasticitySolver<dim>::embracing_algorihtm()
relaxation_parameter);
}

debug_output();

// Convergence check
flag_successful_macro_convergence =
residual_l2_norms[0] <
Expand Down Expand Up @@ -1339,6 +1344,7 @@ solve_linearized_system(

const auto system_matrix =
A - B * inv_D * C;
//A;

const auto inversed_system_matrix =
dealii::inverse_operator(
Expand Down

0 comments on commit 4047fb9

Please sign in to comment.