set_locations¶
- CubesAndCuboids.set_locations(pores=None, throats=None, mode='switch')¶
Assign a Subdomain object to specific pores and/or throats
- Parameters
pores (array_like) – The list of pore indices to which this Subdomain should be assigned
throats (array_like) – The list of throat indices to which this Subdomain should be assigned
mode (str) –
Controls how the locations are set. Options are:
- ’switch’ (default)
Assigns the object to the specified locations and unassigns any other objects from those locations if present
- ’add’
Assigns the object to the specified locations. An error is raised if the locations are already assigned to another object
- ’drop’
Removes the object from the specified locations