- GenericPhysics.set_geometry(geometry=None, mode='add')¶
Sets the association between this physics and a geometry
This association is done by setting the pores and throats that define the Subdomain to match.
geometry (GenericGeometry) – The geometry defining the pores and throats to which this physics should be attached
mode (str) –
Controls how the assignment is done. Options are:
- ’add’ (default)
If the physics does not presently have an associated geometry, this will create associations, otherwise an Exception is raised
Associations with the current geometry will be removed
Associations will be made with the provided geometry, and the pore and throat locations from the current geometry will be transferred to the new one.