@@ -33,6 +33,10 @@ class from_scoping(Operator):
3333 nodes_only: bool, optional
3434 returns mesh with nodes only (without any elements or property fields). Default is false.
3535 mesh: MeshedRegion
36+ already_fill_map: bool
37+ internal pin used when running meshes::by_scopings operator to never recalculate heavy map over scopings. Default is false.
38+ keep_map: bool
39+ internal pin used to keep cached map if necessary. Default is false.
3640
3741 Returns
3842 -------
@@ -54,13 +58,19 @@ class from_scoping(Operator):
5458 >>> op.inputs.nodes_only.connect(my_nodes_only)
5559 >>> my_mesh = dpf.MeshedRegion()
5660 >>> op.inputs.mesh.connect(my_mesh)
61+ >>> my_already_fill_map = bool()
62+ >>> op.inputs.already_fill_map.connect(my_already_fill_map)
63+ >>> my_keep_map = bool()
64+ >>> op.inputs.keep_map.connect(my_keep_map)
5765
5866 >>> # Instantiate operator and connect inputs in one line
5967 >>> op = dpf.operators.mesh.from_scoping(
6068 ... scoping=my_scoping,
6169 ... inclusive=my_inclusive,
6270 ... nodes_only=my_nodes_only,
6371 ... mesh=my_mesh,
72+ ... already_fill_map=my_already_fill_map,
73+ ... keep_map=my_keep_map,
6474 ... )
6575
6676 >>> # Get output data
@@ -73,6 +83,8 @@ def __init__(
7383 inclusive = None ,
7484 nodes_only = None ,
7585 mesh = None ,
86+ already_fill_map = None ,
87+ keep_map = None ,
7688 config = None ,
7789 server = None ,
7890 ):
@@ -87,6 +99,10 @@ def __init__(
8799 self .inputs .nodes_only .connect (nodes_only )
88100 if mesh is not None :
89101 self .inputs .mesh .connect (mesh )
102+ if already_fill_map is not None :
103+ self .inputs .already_fill_map .connect (already_fill_map )
104+ if keep_map is not None :
105+ self .inputs .keep_map .connect (keep_map )
90106
91107 @staticmethod
92108 def _spec () -> Specification :
@@ -124,6 +140,18 @@ def _spec() -> Specification:
124140 optional = False ,
125141 document = r"""""" ,
126142 ),
143+ 200 : PinSpecification (
144+ name = "already_fill_map" ,
145+ type_names = ["bool" ],
146+ optional = False ,
147+ document = r"""internal pin used when running meshes::by_scopings operator to never recalculate heavy map over scopings. Default is false.""" ,
148+ ),
149+ 201 : PinSpecification (
150+ name = "keep_map" ,
151+ type_names = ["bool" ],
152+ optional = False ,
153+ document = r"""internal pin used to keep cached map if necessary. Default is false.""" ,
154+ ),
127155 },
128156 map_output_pin_spec = {
129157 0 : PinSpecification (
@@ -196,6 +224,10 @@ class InputsFromScoping(_Inputs):
196224 >>> op.inputs.nodes_only.connect(my_nodes_only)
197225 >>> my_mesh = dpf.MeshedRegion()
198226 >>> op.inputs.mesh.connect(my_mesh)
227+ >>> my_already_fill_map = bool()
228+ >>> op.inputs.already_fill_map.connect(my_already_fill_map)
229+ >>> my_keep_map = bool()
230+ >>> op.inputs.keep_map.connect(my_keep_map)
199231 """
200232
201233 def __init__ (self , op : Operator ):
@@ -208,6 +240,10 @@ def __init__(self, op: Operator):
208240 self ._inputs .append (self ._nodes_only )
209241 self ._mesh = Input (from_scoping ._spec ().input_pin (7 ), 7 , op , - 1 )
210242 self ._inputs .append (self ._mesh )
243+ self ._already_fill_map = Input (from_scoping ._spec ().input_pin (200 ), 200 , op , - 1 )
244+ self ._inputs .append (self ._already_fill_map )
245+ self ._keep_map = Input (from_scoping ._spec ().input_pin (201 ), 201 , op , - 1 )
246+ self ._inputs .append (self ._keep_map )
211247
212248 @property
213249 def scoping (self ) -> Input :
@@ -291,6 +327,48 @@ def mesh(self) -> Input:
291327 """
292328 return self ._mesh
293329
330+ @property
331+ def already_fill_map (self ) -> Input :
332+ r"""Allows to connect already_fill_map input to the operator.
333+
334+ internal pin used when running meshes::by_scopings operator to never recalculate heavy map over scopings. Default is false.
335+
336+ Returns
337+ -------
338+ input:
339+ An Input instance for this pin.
340+
341+ Examples
342+ --------
343+ >>> from ansys.dpf import core as dpf
344+ >>> op = dpf.operators.mesh.from_scoping()
345+ >>> op.inputs.already_fill_map.connect(my_already_fill_map)
346+ >>> # or
347+ >>> op.inputs.already_fill_map(my_already_fill_map)
348+ """
349+ return self ._already_fill_map
350+
351+ @property
352+ def keep_map (self ) -> Input :
353+ r"""Allows to connect keep_map input to the operator.
354+
355+ internal pin used to keep cached map if necessary. Default is false.
356+
357+ Returns
358+ -------
359+ input:
360+ An Input instance for this pin.
361+
362+ Examples
363+ --------
364+ >>> from ansys.dpf import core as dpf
365+ >>> op = dpf.operators.mesh.from_scoping()
366+ >>> op.inputs.keep_map.connect(my_keep_map)
367+ >>> # or
368+ >>> op.inputs.keep_map(my_keep_map)
369+ """
370+ return self ._keep_map
371+
294372
295373class OutputsFromScoping (_Outputs ):
296374 """Intermediate class used to get outputs from
0 commit comments