|
46 | 46 | ###############################################################################
|
47 | 47 | # Manually start the ``pre`` service
|
48 | 48 | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
49 |
| -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server``folder to a desired location. |
50 |
| -# Start the ``pre``service at this location by running this command: |
| 49 | +# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server`` folder to a desired location. |
| 50 | +# Start the ``pre`` service at this location by running this command: |
51 | 51 | #
|
52 | 52 | # ``python kwserver.py``
|
53 | 53 | #
|
54 | 54 | # Once the ``pre`` servic is running, you can connect a client to it using
|
55 |
| -# the hostname and the port. This example uses the default local host and port |
| 55 | +# the host name and the port. This example uses the default local host and port |
56 | 56 | # (``"localhost"`` and ``"50051"`` respectively).
|
57 | 57 | #
|
58 | 58 | hostname = "localhost"
|
|
89 | 89 | dummy.set_init_velocity(Velocity(14.8, 0, 0))
|
90 | 90 |
|
91 | 91 | ###############################################################################
|
92 |
| -# Define materials for the model |
93 |
| -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 92 | +# Define materials |
| 93 | +# ~~~~~~~~~~~~~~~~ |
94 | 94 | # In this model, many parts share common material types. Thus, these materials
|
95 | 95 | # are generated in a loop and a list of these materials are created. This list
|
96 | 96 | # can then be used later to assign materials to parts. The ``dynamaterials`` class
|
|
131 | 131 | discmatlist.append(mat)
|
132 | 132 |
|
133 | 133 | ###############################################################################
|
134 |
| -# Define section properties and assign appropriate materials |
135 |
| -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 134 | +# Define section properties and assign materials |
| 135 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
136 | 136 | # Now that you have a list of materials with the material ID corresponding to
|
137 | 137 | # the Part ID, you can loop through the list and assign these materials to the
|
138 |
| -# parts. While in the loop, the section properties, element formulations, and |
139 |
| -# constraints are also defined. |
| 138 | +# parts. While in the loop, also define the section properties, element |
| 139 | +# formulations, and constraints. |
140 | 140 | #
|
141 | 141 | for i in range(1, 23):
|
142 | 142 | part = ShellPart(i)
|
|
174 | 174 | ###############################################################################
|
175 | 175 | # Define spherical joints
|
176 | 176 | # ~~~~~~~~~~~~~~~~~~~~~~~
|
177 |
| -# A spherical joint is one of the simpler joint types which. You need only define |
| 177 | +# A spherical joint is one of the simpler joint types. You need only define |
178 | 178 | # a coincident node pair. Read the node pairs from the ``jointlist`` array defined in
|
179 | 179 | # the ``belted_dummy_data.py`` file.
|
180 | 180 | #
|
|
200 | 200 | scalefactor=-1,
|
201 | 201 | )
|
202 | 202 | ###############################################################################
|
203 |
| -# Define the gravity |
204 |
| -# ~~~~~~~~~~~~~~~~~~ |
| 203 | +# Define gravity |
| 204 | +# ~~~~~~~~~~~~~~ |
205 | 205 | # Use the ``Gravity()`` method in the ``dynabase`` class
|
206 | 206 | # to define the gravity load, direction of the load, and the curve.
|
207 | 207 | #
|
|
0 commit comments