sgio.run#
- sgio.run(solver: str, input_name: str, analysis: int | Literal['', 'h', 'dn', 'dl', 'd', 'l', 'fi', 'f', 'fe'], smdim: int | str = 2, aperiodic: bool = False, output_gmsh_format: bool = True, reduced_integration: bool = False, scrnout: bool = True, timeout: float = 3600) None#
Run external solvers (VABS or SwiftComp).
- Parameters:
solver (str) – Solver name of VABS or SwiftComp
input_name (str) – Name of the input file.
analysis ({0, 1, 2, 3, 4, 5, '', 'h', 'dn', 'dl', 'd', 'l', 'fi', 'f', 'fe'}) –
Analysis to be carried out.
0 or ‘h’ or ‘’ - homogenization
1 or ‘dn’ - (VABS) dehomogenization (nonlinear)
2 or ‘dl’ or ‘d’ or ‘l’ - dehomogenization (linear)
3 or ‘fi’ - initial failure indices and strength ratios
4 or ‘f’ - (SwiftComp) initial failure strength
5 or ‘fe’ - (SwiftComp) initial failure envelope
smdim (int or str, default 2) – (SwiftComp) Dimension of the macroscopic structural model.
aperiodic (bool, default False) – (SwiftComp) If the structure gene is periodic.
output_gmsh_format (bool, default True) – (SwiftComp) If output dehomogenization results in Gmsh format
reduced_integration (bool, default False) – (SwiftComp) If reduced integration is used for certain elements.
scrnout (bool, default True) – Switch of printing solver messages (currently unused).
timeout (float, default 3600) – Timeout in seconds for solver execution.
- Return type:
None
- Raises:
ValueError – If solver type is not recognized or parameters are invalid.
VABSError, SwiftCompError – If solver execution fails.