CSHBuilder.from_system#
- classmethod CSHBuilder.from_system(system)[source]#
Create a builder from an existing AtomicSystem.
This is useful for analyzing or modifying existing C-S-H structures.
- Parameters:
- systemAtomicSystem
The existing C-S-H system.
- Returns:
- CSHBuilder
A builder instance configured with the given system.
Examples
>>> system = AtomicSystem.from_file("csh.lmp") >>> builder = CSHBuilder.from_system(system) >>> analysis = builder.analyze() >>> cash_system, ratio = builder.to_cash(as_ratio=0.1)