    

 ## On this page

  

 

 # set\_scope

 Last update: 10.09.2025 

<a id="ansys.meshing.prime.VolumeControl.set_scope"></a>

#### VolumeControl.set\_scope(scope)

Sets the scope for volume control to evaluate.

Volume control uses scope to evaluate entities for which volume mesh needs to be generated.

- **Parameters:**
    
    **scope**: ScopeDefinition to scope entities for volume mesh generation.
- **Returns:**
    
    [`SetScopeResults`](ansys.meshing.prime.SetScopeResults.md#ansys.meshing.prime.SetScopeResults): Returns a SetScopeResults.
- **Return type:**
    
    [`SetScopeResults`](ansys.meshing.prime.SetScopeResults.md#ansys.meshing.prime.SetScopeResults)

### Examples

```pycon
&gt;&gt;&gt; volume_control.set_scope(prime.ScopeDefinition(model=model,
&gt;&gt;&gt;                        entity_type = ScopeEntity.VOLUMES,
&gt;&gt;&gt;                        evaluation_type = ScopeEvaluationType.ZONES,
&gt;&gt;&gt;                        zone_expression = "vol_in"))

```