@@ -58,14 +58,25 @@ class acceleration(Operator):
5858 If true the field is rotated to global
5959 coordinate system (default true)
6060 mesh : MeshedRegion or MeshesContainer, optional
61- Prevents from reading the mesh in the result
62- files
61+ Mesh. if cylic expansion is to be done, mesh
62+ of the base sector
6363 read_cyclic : int, optional
6464 If 0 cyclic symmetry is ignored, if 1 cyclic
6565 sector is read, if 2 cyclic expansion
6666 is done, if 3 cyclic expansion is
6767 done and stages are merged (default
6868 is 1)
69+ expanded_meshed_region : MeshedRegion or MeshesContainer, optional
70+ Mesh expanded, use if cyclic expansion is to
71+ be done.
72+ sectors_to_expand : Scoping or ScopingsContainer, optional
73+ Sectors to expand (start at 0), for
74+ multistage: use scopings container
75+ with 'stage' label, use if cyclic
76+ expansion is to be done.
77+ phi : float, optional
78+ Angle phi in degrees (default value 0.0), use
79+ if cyclic expansion is to be done.
6980
7081 Returns
7182 -------
@@ -95,6 +106,12 @@ class acceleration(Operator):
95106 >>> op.inputs.mesh.connect(my_mesh)
96107 >>> my_read_cyclic = int()
97108 >>> op.inputs.read_cyclic.connect(my_read_cyclic)
109+ >>> my_expanded_meshed_region = dpf.MeshedRegion()
110+ >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
111+ >>> my_sectors_to_expand = dpf.Scoping()
112+ >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
113+ >>> my_phi = float()
114+ >>> op.inputs.phi.connect(my_phi)
98115
99116 >>> # Instantiate operator and connect inputs in one line
100117 >>> op = dpf.operators.result.acceleration(
@@ -106,6 +123,9 @@ class acceleration(Operator):
106123 ... bool_rotate_to_global=my_bool_rotate_to_global,
107124 ... mesh=my_mesh,
108125 ... read_cyclic=my_read_cyclic,
126+ ... expanded_meshed_region=my_expanded_meshed_region,
127+ ... sectors_to_expand=my_sectors_to_expand,
128+ ... phi=my_phi,
109129 ... )
110130
111131 >>> # Get output data
@@ -122,6 +142,9 @@ def __init__(
122142 bool_rotate_to_global = None ,
123143 mesh = None ,
124144 read_cyclic = None ,
145+ expanded_meshed_region = None ,
146+ sectors_to_expand = None ,
147+ phi = None ,
125148 config = None ,
126149 server = None ,
127150 ):
@@ -144,6 +167,12 @@ def __init__(
144167 self .inputs .mesh .connect (mesh )
145168 if read_cyclic is not None :
146169 self .inputs .read_cyclic .connect (read_cyclic )
170+ if expanded_meshed_region is not None :
171+ self .inputs .expanded_meshed_region .connect (expanded_meshed_region )
172+ if sectors_to_expand is not None :
173+ self .inputs .sectors_to_expand .connect (sectors_to_expand )
174+ if phi is not None :
175+ self .inputs .phi .connect (phi )
147176
148177 @staticmethod
149178 def _spec ():
@@ -227,8 +256,8 @@ def _spec():
227256 name = "mesh" ,
228257 type_names = ["abstract_meshed_region" , "meshes_container" ],
229258 optional = True ,
230- document = """Prevents from reading the mesh in the result
231- files """ ,
259+ document = """Mesh. if cylic expansion is to be done, mesh
260+ of the base sector """ ,
232261 ),
233262 14 : PinSpecification (
234263 name = "read_cyclic" ,
@@ -240,6 +269,29 @@ def _spec():
240269 done and stages are merged (default
241270 is 1)""" ,
242271 ),
272+ 15 : PinSpecification (
273+ name = "expanded_meshed_region" ,
274+ type_names = ["abstract_meshed_region" , "meshes_container" ],
275+ optional = True ,
276+ document = """Mesh expanded, use if cyclic expansion is to
277+ be done.""" ,
278+ ),
279+ 18 : PinSpecification (
280+ name = "sectors_to_expand" ,
281+ type_names = ["vector<int32>" , "scoping" , "scopings_container" ],
282+ optional = True ,
283+ document = """Sectors to expand (start at 0), for
284+ multistage: use scopings container
285+ with 'stage' label, use if cyclic
286+ expansion is to be done.""" ,
287+ ),
288+ 19 : PinSpecification (
289+ name = "phi" ,
290+ type_names = ["double" ],
291+ optional = True ,
292+ document = """Angle phi in degrees (default value 0.0), use
293+ if cyclic expansion is to be done.""" ,
294+ ),
243295 },
244296 map_output_pin_spec = {
245297 0 : PinSpecification (
@@ -313,6 +365,12 @@ class InputsAcceleration(_Inputs):
313365 >>> op.inputs.mesh.connect(my_mesh)
314366 >>> my_read_cyclic = int()
315367 >>> op.inputs.read_cyclic.connect(my_read_cyclic)
368+ >>> my_expanded_meshed_region = dpf.MeshedRegion()
369+ >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
370+ >>> my_sectors_to_expand = dpf.Scoping()
371+ >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
372+ >>> my_phi = float()
373+ >>> op.inputs.phi.connect(my_phi)
316374 """
317375
318376 def __init__ (self , op : Operator ):
@@ -335,6 +393,14 @@ def __init__(self, op: Operator):
335393 self ._inputs .append (self ._mesh )
336394 self ._read_cyclic = Input (acceleration ._spec ().input_pin (14 ), 14 , op , - 1 )
337395 self ._inputs .append (self ._read_cyclic )
396+ self ._expanded_meshed_region = Input (
397+ acceleration ._spec ().input_pin (15 ), 15 , op , - 1
398+ )
399+ self ._inputs .append (self ._expanded_meshed_region )
400+ self ._sectors_to_expand = Input (acceleration ._spec ().input_pin (18 ), 18 , op , - 1 )
401+ self ._inputs .append (self ._sectors_to_expand )
402+ self ._phi = Input (acceleration ._spec ().input_pin (19 ), 19 , op , - 1 )
403+ self ._inputs .append (self ._phi )
338404
339405 @property
340406 def time_scoping (self ):
@@ -488,8 +554,8 @@ def bool_rotate_to_global(self):
488554 def mesh (self ):
489555 """Allows to connect mesh input to the operator.
490556
491- Prevents from reading the mesh in the result
492- files
557+ Mesh. if cylic expansion is to be done, mesh
558+ of the base sector
493559
494560 Parameters
495561 ----------
@@ -529,6 +595,71 @@ def read_cyclic(self):
529595 """
530596 return self ._read_cyclic
531597
598+ @property
599+ def expanded_meshed_region (self ):
600+ """Allows to connect expanded_meshed_region input to the operator.
601+
602+ Mesh expanded, use if cyclic expansion is to
603+ be done.
604+
605+ Parameters
606+ ----------
607+ my_expanded_meshed_region : MeshedRegion or MeshesContainer
608+
609+ Examples
610+ --------
611+ >>> from ansys.dpf import core as dpf
612+ >>> op = dpf.operators.result.acceleration()
613+ >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
614+ >>> # or
615+ >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region)
616+ """
617+ return self ._expanded_meshed_region
618+
619+ @property
620+ def sectors_to_expand (self ):
621+ """Allows to connect sectors_to_expand input to the operator.
622+
623+ Sectors to expand (start at 0), for
624+ multistage: use scopings container
625+ with 'stage' label, use if cyclic
626+ expansion is to be done.
627+
628+ Parameters
629+ ----------
630+ my_sectors_to_expand : Scoping or ScopingsContainer
631+
632+ Examples
633+ --------
634+ >>> from ansys.dpf import core as dpf
635+ >>> op = dpf.operators.result.acceleration()
636+ >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
637+ >>> # or
638+ >>> op.inputs.sectors_to_expand(my_sectors_to_expand)
639+ """
640+ return self ._sectors_to_expand
641+
642+ @property
643+ def phi (self ):
644+ """Allows to connect phi input to the operator.
645+
646+ Angle phi in degrees (default value 0.0), use
647+ if cyclic expansion is to be done.
648+
649+ Parameters
650+ ----------
651+ my_phi : float
652+
653+ Examples
654+ --------
655+ >>> from ansys.dpf import core as dpf
656+ >>> op = dpf.operators.result.acceleration()
657+ >>> op.inputs.phi.connect(my_phi)
658+ >>> # or
659+ >>> op.inputs.phi(my_phi)
660+ """
661+ return self ._phi
662+
532663
533664class OutputsAcceleration (_Outputs ):
534665 """Intermediate class used to get outputs from
0 commit comments