Release FemLite 0.5.3
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-07-01 18:39:18 +08:00
parent 75d4e735b1
commit 2b7962eb96
51 changed files with 3084 additions and 2175 deletions
+3
View File
@@ -32,3 +32,6 @@ Check:
```
The checker writes `shell_solid_contact_profile.csv` in the result directory.
In 0.5.3 it also validates shared contact diagnostics: state/status fields,
activation/release counts, active-set flip count, gap L2, failed projection
count and augmentation factor/lambda.
@@ -28,6 +28,13 @@ def main() -> int:
"active_count",
"force_norm",
"gap_residual",
"gap_l2",
"failed_projection_count",
"active_set_flip_count",
"status",
"activation_count",
"release_count",
"aug_factor",
"aug_lambda",
"search_masters",
]
@@ -40,6 +47,13 @@ def main() -> int:
"active_count": int(float(row["active_count"])),
"force_norm": float(row["force_norm"]),
"gap_residual": float(row["gap_residual"]),
"gap_l2": float(row["gap_l2"]),
"failed_projection_count": int(float(row["failed_projection_count"])),
"active_set_flip_count": int(float(row["active_set_flip_count"])),
"status": int(float(row["status"])),
"activation_count": int(float(row["activation_count"])),
"release_count": int(float(row["release_count"])),
"aug_factor": float(row["aug_factor"]),
"aug_lambda": float(row["aug_lambda"]),
"search_masters": int(float(row.get("search_masters", "0") or "0")),
}
@@ -48,6 +62,9 @@ def main() -> int:
max_active = max(int(float(row["active_count"])) for row in pair_rows)
max_force = max(float(row["force_norm"]) for row in pair_rows)
max_gap = max(float(row["gap_residual"]) for row in pair_rows)
max_gap_l2 = max(float(row["gap_l2"]) for row in pair_rows)
max_failed_projection = max(int(float(row["failed_projection_count"])) for row in pair_rows)
max_aug_factor = max(float(row["aug_factor"]) for row in pair_rows)
max_lambda = max(float(row["aug_lambda"]) for row in pair_rows)
max_masters = max(int(float(row.get("search_masters", "0") or "0")) for row in pair_rows)
@@ -57,7 +74,20 @@ def main() -> int:
if max_masters <= 0:
print("shell-solid contact did not search a solid master facet")
return 1
if max_lambda <= 0.0:
if max_gap_l2 < max_gap:
print("shell-solid gap L2 diagnostic is inconsistent")
return 1
if max_failed_projection != 0:
print(f"unexpected shell-solid failed projection count: {max_failed_projection}")
return 1
if any(
int(float(row["active_set_flip_count"]))
< int(float(row["activation_count"])) + int(float(row["release_count"]))
for row in pair_rows
):
print("shell-solid active-set flip diagnostic is inconsistent")
return 1
if max_aug_factor <= 0.0 or max_lambda <= 0.0:
print("shell-solid augmented multiplier did not grow")
return 1
if not glob.glob(os.path.join(result_dir, "result_*.vtk")):