@@ -66,7 +66,7 @@ def field_from_array(arr, server=None):
6666def create_matrix_field (num_entities , num_lines , num_col , location = locations .nodal , server = None ):
6767 """Create a matrix :class:`ansys.dpf.core.Field`.
6868
69- This field contain entities that have a matrix format. This is a "reserve" mechanism,
69+ This field contains entities that have a matrix format. This is a "reserve" mechanism,
7070 not a resize one. This means that you need to append data to grow the size of your field.
7171
7272 Parameters
@@ -78,12 +78,8 @@ def create_matrix_field(num_entities, num_lines, num_col, location=locations.nod
7878 num_col : int
7979 Number of matrix columns.
8080 location : str, optional
81- Location of the field. The default is ``"Nodal"``. For example:
82-
83- - :class:`ansys.dpf.core.natures.nodal` (``"Nodal"``)
84- - :class:`ansys.dpf.core.natures.elemental` (``"Elemental"``)
85- - :class:`ansys.dpf.core.natures.elemental_nodal` (``"ElementalNodal"``)
86- - ...
81+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
82+ The default is ``dpf.locations.nodal``.
8783
8884 server : ansys.dpf.core.server, optional
8985 Server with the channel connected to the remote or local instance.
@@ -126,12 +122,8 @@ def create_3d_vector_field(num_entities, location=locations.nodal, server=None):
126122 Number of entities to reserve
127123
128124 location : str, optional
129- Location of the field. The default is ``"Nodal"``. For example:
130-
131- - ansys.dpf.core.natures.nodal (``"Nodal"``)
132- - ansys.dpf.core.natures.elemental (``"Elemental"``)
133- - ansys.dpf.core.natures.elemental_nodal (``"ElementalNodal"``)
134- - ...
125+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
126+ The default is ``dpf.locations.nodal``.
135127
136128 server : ansys.dpf.core.server, optional
137129 Server with the channel connected to the remote or local instance.
@@ -165,12 +157,8 @@ def create_tensor_field(num_entities, location=locations.nodal, server=None):
165157 num_entities : int
166158 Number of entities to reserve.
167159 location : str, optional
168- Location of the field. The default is ``"Nodal"``. For example:
169-
170- - :class:`ansys.dpf.core.natures.nodal` (``"Nodal"``)
171- - :class:`ansys.dpf.core.natures.elemental` (``"Elemental"``)
172- - :class:`ansys.dpf.core.natures.elemental_nodal` (``"ElementalNodal"``)
173- - ...
160+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
161+ The default is ``dpf.locations.nodal``.
174162
175163 server : ansys.dpf.core.server, optional
176164 Server with the channel connected to the remote or local instance.
@@ -204,12 +192,8 @@ def create_scalar_field(num_entities, location=locations.nodal, server=None):
204192 num_entities : int
205193 Number of entities to reserve
206194 location : str, optional
207- Location of the field. The default is ``"Nodal"``. For example:
208-
209- - ansys.dpf.core.natures.nodal (``"Nodal"``)
210- - ansys.dpf.core.natures.elemental (``"Elemental"``)
211- - ansys.dpf.core.natures.elemental_nodal (``"ElementalNodal"``)
212- - ...
195+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
196+ The default is ``dpf.locations.nodal``.
213197
214198 server : ansys.dpf.core.server, optional
215199 Server with the channel connected to the remote or local instance.
@@ -245,12 +229,8 @@ def create_vector_field(num_entities, num_comp, location=locations.nodal, server
245229 num_comp : int
246230 Number of vector components.
247231 location : str, optional
248- Location of the field. The default is ``"Nodal"``. For example:
249-
250- - ansys.dpf.core.natures.nodal (``"Nodal"``)
251- - ansys.dpf.core.natures.elemental (``"Elemental"``)
252- - ansys.dpf.core.natures.elemental_nodal (``"ElementalNodal"``)
253- - ...
232+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
233+ The default is ``dpf.locations.nodal``.
254234
255235 server : ansys.dpf.core.server, optional
256236 Server with the channel connected to the remote or local instance.
@@ -286,22 +266,18 @@ def _create_field(server, nature, nentities, location=locations.nodal, ncomp_n=0
286266 Server with the channel connected to the remote or local instance.
287267 The default is ``None``, in which case an attempt is made to use the
288268 global server.
289- snature : str
269+ nature : str
290270 Nature of the field entity data. For example:
291271
292272 - :class:`ansys.dpf.core.natures.matrix`
293273 - :class:`ansys.dpf.core.natures.scalar`
294274
295- num_entities : int
275+ nentities : int
296276 Number of entities to reserve.
297277
298278 location : str, optional
299- Location of the field. For example:
300-
301- - :class:`ansys.dpf.core.natures.nodal` (``"Nodal"``)
302- - :class:`ansys.dpf.core.natures.elemental` (``"Elemental"``)
303- - :class:`ansys.dpf.core.natures.elemental_nodal` (``"ElementalNodal"``)
304- - ...
279+ Location of the field. Options are in :class:`locations <ansys.dpf.core.common.locations>`.
280+ The default is ``dpf.locations.nodal``.
305281
306282 ncomp_n : int
307283 Number of lines.
0 commit comments