Skip to content

Commit

Permalink
Bracket example (#2365)
Browse files Browse the repository at this point in the history
* First commit. Fix precommit

* Replacing apdl commands with pymapdl links

* small changes

* Update the image cache

* Reseting cache to main

* Second commit. Big format differences.

* Document solution() in solution docstring.

* Renaming

* homgenizing make/make.bat options

* Rename section

* Apply suggestions from code review

Co-authored-by: Kathy Pippert <[email protected]>
Co-authored-by: Camille <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Adding empty lines

* Fix

* attempting to get rid of the warnings

* Removing labelling

* Styling von Mises

* Fixing doc build issues

---------

Co-authored-by: germa89 <[email protected]>
Co-authored-by: Kathy Pippert <[email protected]>
Co-authored-by: Camille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Oct 2, 2023
1 parent 727dde9 commit 05ba35d
Show file tree
Hide file tree
Showing 10 changed files with 772 additions and 7 deletions.
4 changes: 4 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ clean-except-examples:
rm -rf $(BUILDDIR)/*
find . -type d -name "_autosummary" -exec rm -rf {} +

# clean only examples
clean-examples:
rm -rf source/examples/gallery_examples

# customized to build the pdf rather than using latexpdf due to various issues
# with our docs like GIFs being written as PNG.
pdf:
Expand Down
6 changes: 4 additions & 2 deletions doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ if errorlevel 9009 (
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:clean
:clean-except-examples
rmdir /s /q %BUILDDIR% > /NUL 2>&1
rmdir /s /q images/auto-generated > /NUL 2>&1
for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d"
goto end

:clean-all
:clean
rmdir /s /q %BUILDDIR% > /NUL 2>&1
rmdir /s /q source\examples\gallery_examples > /NUL 2>&1
for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d"
rmdir /s /q images/auto-generated > /NUL 2>&1
goto end

:clean-examples
Expand Down
Binary file added doc/source/images/bracket_dimensions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion doc/source/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
.. _ansys_installation_and_licensing: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/prod_page.html?pn=Installation%20and%20Licensing&pid=InstallationAndLicensing&lang=en
.. _ansys_parallel_computing_guide: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/%%VERSION%%/en/ans_dan/dantoc.html
.. _ansys_verification_manual: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/%%VERSION%%/en/ans_vm/Hlp_V_VMTOC.html
.. _ansys_tutorials_guide: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v231/en/ans_tut/Hlp_UI_Tutorials.html

.. # Ansys introductory tutorials
.. _ansys_introtut: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/%%VERSION%%/en/ans_tut/Hlp_UI_Tutorials.html
Expand Down Expand Up @@ -163,4 +164,8 @@
.. # docker commands
.. _docker_cp: https://docs.docker.com/engine/reference/commandline/cp/
.. _docker_run: https://docs.docker.com/engine/reference/run/
.. _docker_compose: https://docs.docker.com/compose/
.. _docker_compose: https://docs.docker.com/compose/

.. # Elements references
.. _elem_plane183: https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/ans_elem/Hlp_E_PLANE183.html
2 changes: 1 addition & 1 deletion doc/styles/Vocab/ANSYS/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[Pp]ythonic
[Pp]ythonically
[Ss]uperelements
[Vv]on Mises
3-D
aadd
aas
Expand Down Expand Up @@ -142,7 +143,6 @@ UPF
UPFs
viscoplastic
vise
von
VTK
wan
WAN
Expand Down
2 changes: 1 addition & 1 deletion examples/00-mapdl-examples/2d_plate_with_a_hole.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
# We use nanmean here because mid-side nodes have no stress
mask = result.mesh.nodes[:, 0] == length
far_field_stress = np.nanmean(von_mises[mask])
print("Far field von mises stress: %e" % far_field_stress)
print("Far field von Mises stress: %e" % far_field_stress)
# Which almost exactly equals the analytical value of 10000000.0 Pa

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/00-mapdl-examples/3d_notch.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
# We use nanmean here because mid-side nodes have no stress
mask = result.mesh.nodes[:, 0] == length
far_field_stress = np.nanmean(von_mises[mask])
print("Far field von mises stress: %e" % far_field_stress)
print("Far field von Mises stress: %e" % far_field_stress)
# Which almost exactly equals the analytical value of 10000000.0 Pa


Expand Down
Loading

0 comments on commit 05ba35d

Please sign in to comment.