gs.materials.SPH.Liquid#
- class genesis.engine.materials.SPH.liquid.Liquid(*, use_visual_raycasting: bool = False, sampler: Literal['pbs', 'random', 'regular'] = 'regular', rho: float = 1000.0, stiffness: float = 50000.0, exponent: float = 7.0, mu: float = 0.005, gamma: float = 0.01)[source]#
Bases:
BaseThe liquid material class for SPH.
- Parameters:
rho (float, optional) – The rest density (kg/m³). Default is 1000.0.
stiffness (float, optional) – State stiffness (N/m²). Controls how pressure increases with compression. Default is 50000.0.
exponent (float, optional) – State exponent. Controls how nonlinearly pressure scales with density. Default is 7.0.
mu (float, optional) – The viscosity of the liquid. Default is 0.005.
gamma (float, optional) – The surface tension of the liquid. Default is 0.01.
sampler (str, optional) – Particle sampler. Defaults to ‘regular’ for numerical stability with SPH.
- rho: float#
- stiffness: float#
- exponent: float#
- mu: float#
- gamma: float#
- sampler: Literal['pbs', 'random', 'regular']#
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'strict': True, 'validate_default': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].