Complete V4.7 shell stabilization and benchmarks
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-06-25 10:07:48 +08:00
parent c2db5f59c6
commit d8dbc0b346
22 changed files with 1434 additions and 24 deletions
+38
View File
@@ -51,6 +51,8 @@ int main(void)
int linsol_preconditioner = -1;
int linsol_iteration = -1;
int linsol_status = -999;
int shell_sample_count = -1;
int shell_last_element = -1;
int node_ids[1] = {2};
int facet_id[8];
int elem_id[8];
@@ -91,6 +93,13 @@ int main(void)
double conv_contact_gap = -1.0;
double conv_combined_norm = -1.0;
double linsol_residual = -1.0;
double shell_drilling_factor = -1.0;
double shell_s3_shear_factor = -1.0;
double shell_s3_shear_min_scale = -1.0;
double shell_last_drilling = -1.0;
double shell_last_shear_scale = -1.0;
double shell_min_shear_scale = -1.0;
double shell_max_drilling = -1.0;
ierr = femlite_initialize();
if (ierr != 0) return check_ierr(ierr, 1);
@@ -130,6 +139,35 @@ int main(void)
ierr = femlite_set_linear_solver(1, 1);
if (ierr != 0) return check_ierr(ierr, 51);
ierr = femlite_get_shell_stabilization(&shell_drilling_factor,
&shell_s3_shear_factor,
&shell_s3_shear_min_scale);
if (ierr != 0) return check_ierr(ierr, 52);
if (fabs(shell_drilling_factor - 1.0e-4) > 1.0e-16 ||
fabs(shell_s3_shear_factor - 0.0625) > 1.0e-16 ||
fabs(shell_s3_shear_min_scale - 1.0e-4) > 1.0e-16) return 53;
ierr = femlite_get_shell_stability_stats(&shell_sample_count,
&shell_last_element,
&shell_last_drilling,
&shell_last_shear_scale,
&shell_min_shear_scale,
&shell_max_drilling);
if (ierr != 0) return check_ierr(ierr, 54);
if (shell_sample_count != 0 || shell_last_element != 0 ||
shell_last_drilling != 0.0 || shell_last_shear_scale != 1.0 ||
shell_min_shear_scale != 1.0 || shell_max_drilling != 0.0) return 55;
ierr = femlite_set_shell_stabilization(1.0e-3, 0.125, 1.0e-5);
if (ierr != 0) return check_ierr(ierr, 56);
ierr = femlite_get_shell_stabilization(&shell_drilling_factor,
&shell_s3_shear_factor,
&shell_s3_shear_min_scale);
if (ierr != 0) return check_ierr(ierr, 57);
if (fabs(shell_drilling_factor - 1.0e-3) > 1.0e-16 ||
fabs(shell_s3_shear_factor - 0.125) > 1.0e-16 ||
fabs(shell_s3_shear_min_scale - 1.0e-5) > 1.0e-16) return 58;
ierr = femlite_set_shell_stabilization(1.0e-4, 0.0625, 1.0e-4);
if (ierr != 0) return check_ierr(ierr, 59);
ierr = femlite_get_convergence_status(&conv_increment, &conv_iteration,
&conv_residual_norm,
&conv_correction_norm,