@@ -41,16 +41,16 @@ class ResultData:
4141 >>> disp_on_named_selection = solution.nodal_displacement(named_selection="SELECTION")
4242 """
4343
44- def __init__ (self , operator_name : str , data_sources , model ,
45- elem_average : bool ,
46- location : str = None , element_scoping = None ,
47- node_scoping = None , named_selection = None ,
48- time = None ,
49- grouping = None , phase = None , subresult = None ,
44+ def __init__ (self , operator_name : str , data_sources , model ,
45+ elem_average : bool ,
46+ location : str = None , element_scoping = None ,
47+ node_scoping = None , named_selection = None ,
48+ time = None ,
49+ grouping = None , phase = None , subresult = None ,
5050 mapdl_grouping = None , set = None , time_scoping = None ):
5151
52- self ._evaluator = ResultEvaluator (operator_name , data_sources , model , elem_average ,
53- location , element_scoping , node_scoping , named_selection , time ,
52+ self ._evaluator = ResultEvaluator (operator_name , data_sources , model , elem_average ,
53+ location , element_scoping , node_scoping , named_selection , time ,
5454 grouping , phase , subresult , mapdl_grouping , set , time_scoping )
5555 self .result_fields_container = None
5656
@@ -82,13 +82,13 @@ def _evaluate_result_forced(self):
8282 self .result_fields_container = self ._evaluator .evaluate_result ()
8383
8484 def get_all_label_spaces (self ):
85- """Returns all the label spaces contained in a result
85+ """Returns all the label spaces contained in a result
8686 as a string.
8787 Labels can be used to select fields to plot.
8888
8989 Returns
9090 -------
91- list
91+ list
9292 List of dictionary (list of label space)
9393 """
9494 self ._evaluate_result ()
@@ -111,8 +111,8 @@ def get_data_at_field(self, field_index: int = 0):
111111 return self .result_fields_container [field_index ].data
112112
113113 def __getitem__ (self , field_index : int = 0 ):
114- """Override of the result item getter. Implements the fields_container_result
115- item getter. Return the field at the field_index position in the result fields
114+ """Override of the result item getter. Implements the fields_container_result
115+ item getter. Return the field at the field_index position in the result fields
116116 container.
117117 """
118118 self ._evaluate_result ()
@@ -132,54 +132,54 @@ def _min_max(self, pin):
132132 result = max_operator .get_output (pin , types .field )
133133 return result
134134
135- @property
135+ @property
136136 def max (self ):
137- """Returns the maximum values field.
138- Chains the result operator to the "min_max_fc" operator,
137+ """Returns the maximum values field.
138+ Chains the result operator to the "min_max_fc" operator,
139139 returns its result (output from pin 1).
140140 """
141141 return self ._min_max (1 )
142142
143143 @property
144144 def max_data (self ):
145- """Returns the maximum values field data.
146- Chains the result operator to the "min_max_fc" operator,
145+ """Returns the maximum values field data.
146+ Chains the result operator to the "min_max_fc" operator,
147147 returns its result (output from pin 1).
148148 """
149149 return self ._min_max (1 ).data
150150
151151 def get_max_data_at_field (self , field_index : int = 0 ):
152- """Returns the maximum values field data at field_index.
153- Chains the result operator to the "min_max_fc" operator,
152+ """Returns the maximum values field data at field_index.
153+ Chains the result operator to the "min_max_fc" operator,
154154 returns its result (output from pin 1).
155155 """
156156 return self ._min_max (1 ).data [field_index ]
157157
158158 @property
159159 def min (self ):
160- """Returns the minimum values field.
161- Chains the result operator to the "min_max_fc" operator,
160+ """Returns the minimum values field.
161+ Chains the result operator to the "min_max_fc" operator,
162162 returns its result (output from pin 0).
163163 """
164164 return self ._min_max (0 )
165165
166166 @property
167167 def min_data (self ):
168- """Returns the minimum values field data.
169- Chains the result operator to the "min_max_fc" operator,
168+ """Returns the minimum values field data.
169+ Chains the result operator to the "min_max_fc" operator,
170170 returns its result (output from pin 0).
171171 """
172172 return self ._min_max (0 ).data
173173
174174 def get_min_data_at_field (self , field_index : int = 0 ):
175- """Returns the minimum values field data at field_index.
176- Chains the result operator to the "min_max_fc" operator,
175+ """Returns the minimum values field data at field_index.
176+ Chains the result operator to the "min_max_fc" operator,
177177 returns its result (output from pin 0).
178178 """
179179 return self ._min_max (0 ).data [field_index ]
180180
181181 def _plot_contour_with_vtk_file (self ):
182- """Plot the contour result on its mesh support. The obtained figure depends on the
182+ """Plot the contour result on its mesh support. The obtained figure depends on the
183183 support (can be a meshed_region or a time_freq_support).
184184 If transient analysis, plot the last result.
185185
0 commit comments