# SPDX-FileCopyrightText: 2026 Daru AndrĂ¡s # SPDX-License-Identifier: MIT """Synthetic reinforced membrane with weighted biaxial branches.""" from pathlib import Path from rend import ( SearchPhysicsChecks, StrongEllipticityCheck, PostSearchChecks, ConstitutiveChecks, DeformationRange as Range, EdgeWeighting, MaterialProfile, MaterialRegressor, StressUnit, ValidationRanges, ) CSV = "reinforced_membran.csv" if __name__ == "__main__": regressor = MaterialRegressor( csv_path=Path(__file__).with_name(CSV), name="Synthetic reinforced membrane", profile=MaterialProfile.INCOMPRESSIBLE_ANISOTROPIC, material_directions=((0.0, 1.0, 0.0),), stress_unit=StressUnit.MPA, max_generations=1200, # Use 500 for a first exploratory run. verbose=True, live_plot=False, # Set True to watch the search progress. target_mse=1e-3, validation_ranges=ValidationRanges( uniaxial=None, biaxial=Range(1.0, 1.24), planar=None, shear=None, volumetric=None, ), edge_weighting=EdgeWeighting( head_fraction=0.0, head_multiplier=1.0, tail_fraction=0.10, tail_multiplier=5.0, ), search_checks=SearchPhysicsChecks( strong_ellipticity=StrongEllipticityCheck(step=0.04), reference_stability=True, ), post_search_checks=PostSearchChecks( constitutive=ConstitutiveChecks( stress=True, tangent=True, objectivity=True, stress_covariance=True, material_symmetry=True, reference=True, domain=True, max_states=24, ), ), export_json=True, export_uhyper=False, ) result = regressor.run() if result.error: raise RuntimeError(result.error) if result.cancelled: raise SystemExit(130) print("Report:", result.report_path)