Skip to content

Commit 2752179

Browse files
committed
Fix typos
1 parent 4daa26c commit 2752179

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

src/ansys/dyna/core/pre/dynaisph.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def set_des(
3636
boxid : int, optional
3737
Box ID. The default is ``0``. ISPH approximations are computed
3838
inside the specified box. When a particle has gone outside this
39-
box, it is deactivated.
39+
box, it is deactivated.
4040
space_dimension : int, optional
4141
Space dimension for ISPH particles. The default is ``3``. Options
4242
are:
4343
4444
- EQ.3: 3D problems
4545
- EQ.2: 2D plane strain problems
4646
- EQ.-2: 2D axisymmetric problems
47-
47+
4848
neighbors : int, optional
4949
Initial number of neighbors per particle. The default is ``150``.
5050
approximation_theory : int, optional
@@ -98,7 +98,7 @@ def __init__(self, num_timestep=1):
9898

9999
def set_num_timestep(self, num_timestep):
100100
"""Set the number of time steps between particle sorting.
101-
101+
102102
Parameters
103103
----------
104104
num_timestep : int, optional
@@ -120,7 +120,7 @@ def set_box(self, box):
120120

121121
def set_neighbors(self, neighbors):
122122
"""Set the initial number of neighbors per particle.
123-
123+
124124
Parameters
125125
----------
126126
neighbors : int, optional
@@ -130,19 +130,19 @@ def set_neighbors(self, neighbors):
130130

131131
def set_particle_deactivation(self, deactivation):
132132
"""Set the type of BEM matrices and the way they are assembled.
133-
133+
134134
Parameters
135135
----------
136-
deactivation :
136+
deactivation :
137137
"""
138138
self.particle_deactivation = deactivation
139139

140140
def set_velocity_scaling(self, scaling):
141141
"""Set the type of BEM matrices and the way they are assembled.
142-
142+
143143
Parameters
144144
----------
145-
scaling :
145+
scaling :
146146
"""
147147
self.velocity_scaling = scaling
148148

@@ -171,14 +171,14 @@ def create(self):
171171

172172
class SPHSection:
173173
"""Defines section properties for ISPH particles.
174-
174+
175175
Parameters
176176
----------
177177
cslh : float, optional
178178
hmin : float, optional
179179
hmax : float, optional
180180
sphini : int, optional
181-
181+
182182
"""
183183

184184
def __init__(self, cslh=1.2, hmin=0.2, hmax=2.0, sphini=0):
@@ -363,7 +363,7 @@ def set_smoothing_length(self, initial, min, max, optional):
363363
Scale factor for the maximum smoothing length.
364364
optional : float, optional
365365
Initial smoothing length, which overrides the true smoothing length.
366-
366+
367367
"""
368368
self.cslh = initial
369369
self.hmin = min

src/ansys/dyna/core/pre/dynalogging.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def log_to_file(self, filename=FILE_NAME, level=LOG_LEVEL):
168168
filename : str, optional
169169
Name of the file where logs are recorded. The default is ``FILE_NAME``.
170170
level : str, optional
171-
Level of logging. The default is ``LOG_LEVEL``, which casues all messages
171+
Level of logging. The default is ``LOG_LEVEL``, which causes all messages
172172
to be recorded. For example, you can set the level of logging to ``DEBUG``.
173173
"""
174174

@@ -181,7 +181,7 @@ def log_to_stdout(self, level=LOG_LEVEL):
181181
Parameters
182182
----------
183183
level : str, optional
184-
Level of logging record. The default is ``LOG_LEVEL``, which casues all messages
184+
Level of logging record. The default is ``LOG_LEVEL``, which causes all messages
185185
to be recorded. For example, you can set the level of logging to ``"DEBUG"``.
186186
"""
187187
if self.std_out_handler:
@@ -192,12 +192,12 @@ def log_to_stdout(self, level=LOG_LEVEL):
192192

193193
def setLevel(self, level="DEBUG"):
194194
"""Change the log level of the object and the attached handlers.
195-
195+
196196
Parameters
197197
----------
198198
level : str, optional
199199
Level of logging record. The default is ``"DEBUG``.
200-
200+
201201
"""
202202
self.logger.setLevel(level)
203203
for each_handler in self.logger.handlers:
@@ -391,7 +391,7 @@ def log_to_stdout(self, level=LOG_LEVEL):
391391

392392
def setLevel(self, level="DEBUG"):
393393
"""Change the log level of the object and the attached handlers.
394-
394+
395395
Parameters
396396
----------
397397
level : str, optional
@@ -577,7 +577,7 @@ def add_stdout_handler(logger, level=LOG_LEVEL, write_headers=False):
577577
logger : logging.Logger or logging.Logger
578578
Logger to add the file handler to.
579579
level : str, optional
580-
Level of logging. The default is ``LOG_LEVEL``, in which
580+
Level of logging. The default is ``LOG_LEVEL``, in which
581581
case ``""DEBUG" is used``.
582582
write_headers : bool, optional
583583
Whether to write the headers to the file. The default is ``False``.

src/ansys/dyna/core/pre/dynamaterial.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def create(self, stub):
239239

240240
class MatNull:
241241
"""Defines a null material.
242-
242+
243243
Young's modulus and Poisson's ratio are used to set the contact stiffness.
244244
245245
Parameters
@@ -264,7 +264,7 @@ def create(self, stub):
264264

265265
class EMEOSTabulated1:
266266
"""Defines electrical conductivity or permeability.
267-
267+
268268
Parameters
269269
----------
270270
curve : Curve
@@ -306,13 +306,13 @@ def __init__(self):
306306
def set_electromagnetic_property(self, material_type=EMMATTYPE.CONDUCTOR, initial_conductivity=0, eos=None):
307307
"""Define the electromagnetic material type and properties
308308
for a material whose permeability equals the free space permeability.
309-
309+
310310
Parameters
311311
----------
312312
material_type :
313313
initial_conductivity :
314314
eos :
315-
315+
316316
"""
317317
self.em = True
318318
self.em_material_type = material_type.value
@@ -322,7 +322,7 @@ def set_electromagnetic_property(self, material_type=EMMATTYPE.CONDUCTOR, initia
322322
def set_em_permeability_equal(self, material_type=EMMATTYPE.CONDUCTOR, initial_conductivity=0, eos=None):
323323
"""Define the electromagnetic material type and properties
324324
for a material whose permeability equals the free space permeability.
325-
325+
326326
Parameters
327327
----------
328328
material_type :
@@ -340,14 +340,14 @@ def set_em_permeability_different(
340340
):
341341
"""Define the electromagnetic material type and properties
342342
for a material whose permeability equals the free space permeability.
343-
343+
344344
Parameters
345345
----------
346346
material_type :
347347
initial_conductivity :
348348
eos :
349349
murel :
350-
350+
351351
"""
352352
self.em_mat_type = 2
353353
self.em_material_type = material_type.value
@@ -358,7 +358,7 @@ def set_em_permeability_different(
358358
def set_em_conducting_shells_3d(self, material_type=EMMATTYPE.CONDUCTOR, initial_conductivity=0):
359359
"""Define the electromagnetic material type and properties
360360
for a material whose permeability equals the free space permeability.
361-
361+
362362
Parameters
363363
----------
364364
material_type :
@@ -372,12 +372,12 @@ def set_em_conducting_shells_3d(self, material_type=EMMATTYPE.CONDUCTOR, initial
372372
def set_em_resistive_heating_2d(self, material_type=EMMATTYPE.CONDUCTOR, initial_conductivity=0):
373373
"""Define the electromagnetic material type and properties
374374
for a material whose permeability equals the free space permeability.
375-
375+
376376
Parameters
377377
----------
378378
material_type :
379379
initial_conductivity :
380-
380+
381381
"""
382382
self.em_mat_type = 4
383383
self.em_material_type = material_type.value
@@ -387,7 +387,7 @@ def set_thermal_isotropic(
387387
self, density=0, generation_rate=0, generation_rate_multiplier=0, specific_heat=0, conductivity=0
388388
):
389389
"""Define isotropic thermal properties.
390-
390+
391391
Parameters
392392
----------
393393
density :
@@ -405,10 +405,10 @@ def set_thermal_isotropic(
405405

406406
def create(self, stub, matid):
407407
"""Define additional properties for a material.
408-
408+
409409
Parameters
410410
----------
411-
matid :
411+
matid :
412412
Material ID.
413413
"""
414414
if self.em_mat_type:
@@ -517,7 +517,7 @@ def create(self, stub):
517517

518518
class MatRigid(MatAdditional):
519519
"""Defines a rigid material.
520-
520+
521521
Parts made from a rigid material are considered to belong to a rigid body."""
522522

523523
def __init__(
@@ -583,7 +583,7 @@ def create(self, stub):
583583

584584
class MatRigidDiscrete:
585585
"""Defines a rigid material for shells or solids.
586-
586+
587587
Parameters
588588
----------
589589
mass_density :
@@ -647,10 +647,10 @@ def create(self, stub):
647647

648648
class MatModifiedPiecewiseLinearPlasticity:
649649
"""Defines an elasto-plastic material supporting an arbitrary stress.
650-
650+
651651
The arbitrary stress is defined as a function of strain curve and arbitrary
652652
strain rate dependency.
653-
653+
654654
Parameters
655655
----------
656656
mass_density :
@@ -701,7 +701,7 @@ def create(self, stub):
701701

702702
class MatSpotweld:
703703
"""Defines a spotweld material.
704-
704+
705705
Parameters
706706
----------
707707
mass_density :
@@ -806,7 +806,7 @@ def create(self, stub):
806806

807807
class MatSpringNonlinearElastic:
808808
"""Provides a nonlinear elastic translational and rotational spring with an arbitrary force.
809-
809+
810810
The arbitrary force is defined as a function of displacement. The moment is defined
811811
as a function of rotation.
812812
@@ -829,7 +829,7 @@ def create(self, stub):
829829

830830
class MatDamperViscous:
831831
"""Provides a linear translational or rotational damper located between two nodes.
832-
832+
833833
Parameters
834834
----------
835835
damping_constant :
@@ -847,8 +847,8 @@ def create(self, stub):
847847

848848
class MatDamperNonlinearViscous:
849849
"""Provides a viscous translational damper with an arbitrary force.
850-
851-
The arbitrary force is defind as a function of velocity dependency or a rotational
850+
851+
The arbitrary force is defined as a function of velocity dependency or a rotational
852852
damper with an arbitrary moment as a function of rotational velocity dependency.
853853
854854
Parameters
@@ -871,7 +871,7 @@ def create(self, stub):
871871

872872
class MatSPHIncompressibleFluid:
873873
"""Defines an ISPH (incompressible smooth particle hyrodynamics) fluid material.
874-
874+
875875
Parameters
876876
----------
877877
mass_density : float, optional
@@ -899,7 +899,7 @@ def create(self, stub):
899899

900900
class MatSPHIncompressibleStructure:
901901
"""Defines an ISPH structure material.
902-
902+
903903
Parameters
904904
----------
905905
mass_density : float, optional

0 commit comments

Comments
 (0)