Skip to content

Commit 4ca17b5

Browse files
committed
merge main
2 parents bd80c49 + 51f4cb5 commit 4ca17b5

File tree

29 files changed

+2166
-277
lines changed

29 files changed

+2166
-277
lines changed

.ci/start_mapdl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
echo $GH_PAT | docker login -u $GH_USERNAME --password-stdin docker.pkg.github.com
33
docker pull $MAPDL_IMAGE
4-
docker run -e ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER --restart always --name mapdl -p $PYMAPDL_PORT:50052 $MAPDL_IMAGE -smp > log.txt &
4+
docker run -e ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER --restart always --name mapdl -p $PYMAPDL_PORT:50052 -p $PYMAPDL_DB_PORT:50055 $MAPDL_IMAGE -smp > log.txt &
55
grep -q 'Server listening on' <(timeout 60 tail -f log.txt)
66
# python -c "from ansys.mapdl.core import launch_mapdl; print(launch_mapdl())"

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010
- main
1111

1212
env:
13-
PYMAPDL_PORT: 21000 # default won't work on azure
13+
PYMAPDL_PORT: 21000 # default won't work on GitHub runners
14+
PYMAPDL_DB_PORT: 21001 # default won't work on GitHub runners
1415
PYMAPDL_START_INSTANCE: FALSE
1516
PYANSYS_OFF_SCREEN: True
1617
DOCKER_PACKAGE: docker.pkg.github.com/pyansys/pymapdl/mapdl
@@ -165,11 +166,7 @@ jobs:
165166
166167
- name: Build Documentation
167168
run: |
168-
xvfb-run make -C doc html SPHINXOPTS="-j auto -w build_errors.txt -N"
169-
170-
# Verify that sphinx generates no warnings
171-
- name: Check for sphinx warnings
172-
run: python doc/print_errors.py
169+
xvfb-run make -C doc html SPHINXOPTS="-j auto -W --keep-going"
173170
174171
- name: Zip documentation
175172
run: |

doc/print_errors.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

doc/source/api/database.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _ref_database_service_api:
2+
3+
Database
4+
========
5+
.. currentmodule:: ansys.mapdl.core.database
6+
7+
.. autosummary::
8+
:toctree: _autosummary
9+
10+
MapdlDb
11+
elems.DbElems
12+
nodes.DbNodes

doc/source/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ MAPDL commands mapped to PyMAPDL, see :ref:`ref_mapdl_commands`.
1717
:hidden:
1818

1919
commands
20+
database
2021
geometry
2122
helper
2223
inline

doc/source/getting_started/using_julia.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ To install it, run Julia and switch to the package manager by pressing the``"]"
2626
If you need to work with different package versions or applications, it is beneficial to create a virtual environment in Julia.
2727
To create a virtual environment, use the ``activate`` command with the name of the new environment that you want to create or activate.
2828

29-
.. code-block:: julia
29+
.. code-block::
3030
3131
(@1.7) pkg> activate julia_test
32-
Activating project at `C:\Users\USER\julia_test`
32+
Activating project at `C:/Users/USER/julia_test`
3333
3434
3535
A message should appear, indicating that the new package (``julia_test``) has been activated. This environment name will now precede the command line.
@@ -114,7 +114,7 @@ In Linux:, you would install with:
114114
115115
Finally, after restarting Julia, you can import PyMAPDL using the same procedure as described above:
116116

117-
.. code-block:: julia
117+
.. code-block::
118118
119119
julia> using PyCall
120120
julia> pymapdl = pyimport("ansys.mapdl.core")
@@ -195,4 +195,4 @@ Here is a simple example of using PyMAPDL in Julia:
195195
julia> mapdl.eplot()
196196
197197
198-
.. note:: Do notice the changes in the strings (only ``""`` strings are allowed) and the loops.
198+
.. note:: Do notice the changes in the strings (only ``""`` strings are allowed) and the loops.

doc/source/mapdl_commands/post26/controls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _ref_controls_api:
1+
.. _ref_post26_controls_api:
22

33
********
44
Controls

doc/source/mapdl_commands/post26/listing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _ref_listing_api:
1+
.. _ref_post26_listing_api:
22

33
*******
44
Listing

examples/07-technology-showcase-examples/20-example-technology-showcase-dynamic-simulation-PCB.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
###############################################################################
1919
# 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
2626
# between the IC packages and the circuit board.
2727

2828

@@ -48,7 +48,7 @@
4848

4949
###############################################################################
5050
# Creating the complete layered model
51-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5252
# The original model will be duplicated to create a layered PCB of three layers
5353
# that are binded together.
5454

@@ -173,7 +173,7 @@
173173

174174
###############################################################################
175175
# Run PSD analysis
176-
# ~~~~~~~~~~~~~~~~~
176+
# ~~~~~~~~~~~~~~~~
177177
# The response spectrum analysis is defined, solved and post-processed.
178178

179179
# define PSD analysis with input spectrum
@@ -222,15 +222,17 @@
222222
# MAPDL POST1 postprocessor is used. Then, the MAPDL time-history
223223
# POST26 postprocessor is used to generate the response power spectral
224224
# 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.
229231

230232

231233
###############################################################################
232234
# Post-process PSD analysis in POST1
233-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
234236

235237
mapdl.post1()
236238
mapdl.set(1, 1)
@@ -240,7 +242,7 @@
240242

241243
###############################################################################
242244
# Post-process PSD analysis in POST26 (time-history post-processing)
243-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
245+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
244246

245247
mapdl.post26()
246248

@@ -275,7 +277,7 @@
275277

276278
###############################################################################
277279
# Post-process PSD analysis using Matplotlib
278-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
280+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
279281

280282
# store MAPDL results to python variables
281283
mapdl.dim("frequencies", "array", 4000, 1)
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Technology Showcase Manual Examples
22
====================================
3-
This section demonstrates the broad simulation capabilities
4-
of Ansys Mechanical APDL. The problems demonstrate how
5-
to use PyMAPDL to effectively and accurately
6-
solve interdisciplinary problems
7-
from a variety of industries and engineering fields.
3+
This section demonstrates the broad simulation capabilities of Ansys Mechanical
4+
APDL. The problems demonstrate how to use PyMAPDL to effectively and accurately
5+
solve interdisciplinary problems from a variety of industries and engineering
6+
fields.

0 commit comments

Comments
 (0)