|
17 | 17 |
|
18 | 18 | ############################################################################### |
19 | 19 | # Starting MAPDL as a service and importing an external model |
20 | | -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
21 | | -# The original FE model is given in the Ansys Mechanical APDL Technology Showcase Manual. |
22 | | -# The .cdb contains a FE model of a single circuit board. The model is meshed |
23 | | -# with SOLID186, SHELL181 and BEAM188 elements. All components of the PCB |
24 | | -# model is assigned with linear elastic isotropic materials. Bonded and |
25 | | -# flexible surface-to-surface contact pairs are used to define the contact |
| 20 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 21 | +# The original FE model is given in the Ansys Mechanical APDL Technology |
| 22 | +# Showcase Manual. The .cdb contains a FE model of a single circuit board. The |
| 23 | +# model is meshed with SOLID186, SHELL181 and BEAM188 elements. All components |
| 24 | +# of the PCB model is assigned with linear elastic isotropic materials. Bonded |
| 25 | +# and flexible surface-to-surface contact pairs are used to define the contact |
26 | 26 | # between the IC packages and the circuit board. |
27 | 27 |
|
28 | 28 |
|
|
48 | 48 |
|
49 | 49 | ############################################################################### |
50 | 50 | # Creating the complete layered model |
51 | | -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 51 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
52 | 52 | # The original model will be duplicated to create a layered PCB of three layers |
53 | 53 | # that are binded together. |
54 | 54 |
|
|
173 | 173 |
|
174 | 174 | ############################################################################### |
175 | 175 | # Run PSD analysis |
176 | | -# ~~~~~~~~~~~~~~~~~ |
| 176 | +# ~~~~~~~~~~~~~~~~ |
177 | 177 | # The response spectrum analysis is defined, solved and post-processed. |
178 | 178 |
|
179 | 179 | # define PSD analysis with input spectrum |
|
222 | 222 | # MAPDL POST1 postprocessor is used. Then, the MAPDL time-history |
223 | 223 | # POST26 postprocessor is used to generate the response power spectral |
224 | 224 | # density. |
225 | | -# density. |
226 | | -# .. note:: The graph generated through POST26 is exported as a picture |
227 | | -# in the working directory. Finally, the results from POST26 are saved to Python |
228 | | -# variables to be plotted in the Python environment with the use of Matplotlib library. |
| 225 | +# |
| 226 | +# .. note:: |
| 227 | +# The graph generated through POST26 is exported as a picture in the working |
| 228 | +# directory. Finally, the results from POST26 are saved to Python variables |
| 229 | +# to be plotted in the Python environment with the use of Matplotlib |
| 230 | +# library. |
229 | 231 |
|
230 | 232 |
|
231 | 233 | ############################################################################### |
232 | 234 | # Post-process PSD analysis in POST1 |
233 | | -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 235 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
234 | 236 |
|
235 | 237 | mapdl.post1() |
236 | 238 | mapdl.set(1, 1) |
|
240 | 242 |
|
241 | 243 | ############################################################################### |
242 | 244 | # Post-process PSD analysis in POST26 (time-history post-processing) |
243 | | -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 245 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
244 | 246 |
|
245 | 247 | mapdl.post26() |
246 | 248 |
|
|
275 | 277 |
|
276 | 278 | ############################################################################### |
277 | 279 | # Post-process PSD analysis using Matplotlib |
278 | | -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 280 | +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
279 | 281 |
|
280 | 282 | # store MAPDL results to python variables |
281 | 283 | mapdl.dim("frequencies", "array", 4000, 1) |
|
0 commit comments