Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fkm nonlinear #29

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
354df3e
Fix documentation layout issue of class properties
johannes-mueller Feb 6, 2023
d719c3d
Follow pyvista deprecation
johannes-mueller Feb 6, 2023
6c8c95a
Implement FKM guideline nonlinear
maierbn Mar 14, 2023
caac7d6
Adjust tolerance of materiallaw seeger beste test
maierbn Mar 27, 2023
eaab70d
Add python 3.11 to test matrix
johannes-mueller Feb 7, 2023
264ffdc
Tweak the testbook dependency to workaround resolver issue
johannes-mueller Apr 13, 2023
d9789da
Temporarily pin pandas to <2.0.0
johannes-mueller Apr 13, 2023
acef492
Pull ipywidgets dependency in [testing]
johannes-mueller Apr 13, 2023
e8186d4
Temporarily pin pandas version also in odbclient
johannes-mueller Apr 13, 2023
de52e32
Use ubuntu-latest for deployment workflows
johannes-mueller Apr 13, 2023
186f9e9
Mention Viktor application in README.md
johannes-mueller Apr 21, 2023
0e27439
Type in README.md
johannes-mueller Apr 21, 2023
68e7be7
Drop offset in mesh vtk data.
johannes-mueller Aug 25, 2023
57a6d7a
Drop VTK offset also in unit tests
johannes-mueller Aug 25, 2023
1fea911
Some test coverage exclusions
johannes-mueller Aug 28, 2023
dec3cc5
Update CI actions and don't act twice on pushes to PRs
johannes-mueller Aug 29, 2023
09c7139
Update copyright notices to 2023
johannes-mueller Aug 29, 2023
789cfa1
Nominate build.os in .readthedocs.yml
johannes-mueller Aug 29, 2023
9ec68ea
Apply python 3.11 to build.tools in .readthedocs.yml
johannes-mueller Aug 29, 2023
0ba6aee
Drop python.version in .readthedocs.yml
johannes-mueller Aug 29, 2023
0a6e1af
Apply sphinx-rtd-theme and document it as 3rd party artifacts
johannes-mueller Aug 29, 2023
577783c
Fix indexing bugs in gradient.py and hotspot.py (#24)
johannes-mueller Aug 29, 2023
cd9ef22
Uplift pandas dependency version pinning (#25)
johannes-mueller Aug 29, 2023
9ebae6d
Update CHANGELOG.md
johannes-mueller Aug 29, 2023
4d76bfc
Make odbclient pandas-2.x compliant
johannes-mueller Aug 31, 2023
c45f353
Pin pandas<2.1 for now
johannes-mueller Aug 31, 2023
b987852
Introduce two notched beam for hotspot detection demo (#26)
johannes-mueller Sep 1, 2023
c3babf0
Fix reference in cookbook
johannes-mueller Sep 1, 2023
8106e5c
Make it pandas 2.x compliant
johannes-mueller Sep 1, 2023
1693e45
Fix int type in test
johannes-mueller Sep 1, 2023
62d698c
Add sphinx documentation for fkm nonlinear modules
maierbn Sep 6, 2023
e686cf6
Revert "Add sphinx documentation for fkm nonlinear modules"
maierbn Sep 6, 2023
34235e2
Adjust sphinx documentation after reverting __init__ imports of fkm f…
maierbn Sep 6, 2023
ba43406
Switch from panel to trame (#30)
johannes-mueller Sep 7, 2023
f23c883
Remove debugging print statements
maierbn Sep 29, 2023
362f4b7
Remove output from jupyter notebooks
maierbn Sep 29, 2023
bc497f0
Add comments and note for function to determine surface
maierbn Oct 10, 2023
0474137
Reorganize plotting cell in jupyter notebook to remove if in for loop
maierbn Oct 10, 2023
5d50c9f
Remove mesh demo
maierbn Oct 10, 2023
7fbd899
Remove reference to fkm_nonlinear_mesh
maierbn Oct 10, 2023
fd5ce22
Remove link to import_mesh_abaqus in the docs.
maierbn Oct 10, 2023
808e64f
Link fkm_nonlinear demo notebooks under tutorials
maierbn Oct 10, 2023
8382491
Rearrange documentation of notch approximation classes
maierbn Oct 10, 2023
eb251f9
Remove non-existant links to notebooks
maierbn Oct 10, 2023
c647820
Improve docstringns
maierbn Oct 10, 2023
1188cdf
Force the use of keywords for optional parameters
maierbn Oct 10, 2023
1571c88
Document rtol and tol parameters
maierbn Oct 10, 2023
29f0504
Use isinstance to check for types
maierbn Oct 10, 2023
f3633e1
Add docstrings
maierbn Oct 10, 2023
a689702
Move private functions at the end for every class
maierbn Oct 10, 2023
2665244
Fix copy error
maierbn Oct 11, 2023
307680b
Remove bug description which was resolved
maierbn Oct 11, 2023
ffce93b
Require that rtol and tol arguments are named
maierbn Oct 11, 2023
fd4db7b
Remove hasattr and dependency on iloc
maierbn Oct 11, 2023
227946e
Remove hasattr
maierbn Oct 11, 2023
eb4264f
Adjust docstring about Ansys and Abaqus meshes
maierbn Oct 11, 2023
7932b6e
Simplify calculation of derivatives
maierbn Oct 12, 2023
6a4fa77
adjust formatting of newton call
maierbn Oct 12, 2023
e123a74
add docstring for P_RAM, P_RAJ classes
maierbn Oct 12, 2023
f447512
Remove debug statement
maierbn Oct 12, 2023
bc76780
Remove side effect where collective is changed
maierbn Oct 13, 2023
3613406
Replace if elif cascade by loop over list of tuples
maierbn Oct 13, 2023
bf21ecb
Adjust file fheaders
maierbn Oct 13, 2023
65633e2
Rename function to remove `get` from function name
maierbn Oct 13, 2023
304b32b
Remove the _set_f_25percent function
maierbn Oct 13, 2023
1658411
Remove comment out print statements
maierbn Oct 13, 2023
e88bfce
Fix length of header underline in rst files
maierbn Oct 13, 2023
bcb810f
Add description for DamageCalculator classes
maierbn Oct 13, 2023
b6bda2a
Revert changes in odbclient
maierbn Oct 13, 2023
478d658
Replace exception when R_m not in assessment_parameters by assertion
maierbn Oct 13, 2023
d59d81b
move assertions to the top of the functions in calculate_paremeters
maierbn Oct 13, 2023
d58ed9e
Add exception and tests for compute_beta
maierbn Oct 13, 2023
839fe89
remove commented out code
maierbn Oct 13, 2023
fb82419
Make AssertionErorr a ValueError
maierbn Oct 13, 2023
48605b1
reduce if-else cascade
maierbn Oct 13, 2023
01d6bdf
Add newlines between functions
maierbn Oct 13, 2023
41dcde1
Make return value of function a dict instead of 6-element tuple
maierbn Oct 13, 2023
34c6e87
fix plotting in fkm_nonlinear_full
maierbn Oct 13, 2023
3eb7751
Move test data to separate file
maierbn Oct 13, 2023
e52a680
Add tests for gradient_3D for flipped index levels
maierbn Oct 13, 2023
c9e75bc
Apply suggestion
maierbn Oct 13, 2023
b45395d
Merge branch 'develop' of https://github.com/boschresearch/pylife int…
maierbn Oct 13, 2023
d0f6f11
Add missing line
maierbn Oct 16, 2023
0c35efd
Optimize performance of gradient_3D for simplex elements
maierbn Oct 16, 2023
6084cb1
Add new test for degenerate 3D elements
maierbn Oct 16, 2023
43e3be6
Merge branch 'develop' into HEAD
maierbn Nov 22, 2023
30341ae
Add link to data folder in docs
maierbn Nov 22, 2023
af6c805
Add ansys-mapdl-reader dependency
maierbn Nov 22, 2023
6963d65
Exclude example file kt1.rst from sphinx build
maierbn Nov 22, 2023
c28e3ba
Fix indentation in docs
maierbn Nov 22, 2023
b597235
Fix formatting issues in documentation
maierbn Nov 22, 2023
70ac432
Remove old tutorial files
maierbn Nov 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pylife/_version.py export-subst

*.ipynb filter=jupyter_clean
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ __pycache__/*
.idea
.vscode
tags
.spyproject

# Package files
*.egg
Expand Down Expand Up @@ -61,4 +62,4 @@ coverage_report*

.hypothesis
.mutmut-cache
.python-version
.python-version
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@

Robert Bosch GmbH
Vivien Le Baube <[email protected]>
Sebastian Bucher <[email protected]>
Lisa Katharina Hill <[email protected]>
Mustapha Kassem <[email protected]>
Gyöngyvér Kiss <[email protected]>
Daniel Christopher Kreuter <[email protected]>
Kristina Lepper <[email protected]>
Benjamin Maier <[email protected]>
Mate Mark <[email protected]>
Johannes Mueller <[email protected]>
Erik Natkowski <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ There are/will be the following subpackages:
* `strength` everything related to strength calculation
* failure probability estimation
* S-N-calculations
* local strain concept: FKM guideline nonlinear
* ...
* `mesh` FEM mesh related stuff
* stress gradients
Expand Down
9 changes: 9 additions & 0 deletions batch_scripts/build_docs.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
:: go one level up, if started from within the batch_scripts directory
set BATCH_PATH=%cd%

:: test if current path contains "batch_scripts"
if not x%BATCH_PATH%==x%BATCH_PATH:batch_scripts=% (
echo "cd"
cd ..
)

call conda activate ./.venv

for /f "tokens=*" %%a in ('git rev-parse --show-toplevel') do (set repo_path=%%a)
Expand Down
16 changes: 14 additions & 2 deletions batch_scripts/create_pylife_environment.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
:: go one level up, if started from within the batch_scripts directory
set BATCH_PATH=%cd%

:: test if current path contains "batch_scripts"
if not x%BATCH_PATH%==x%BATCH_PATH:batch_scripts=% (
echo "cd"
cd ..
)

call conda deactivate

call conda env remove -p ./.venv

for /f "tokens=*" %%a in ('git rev-parse --show-toplevel') do (set repo_path=%%a)

set jupyter_path=%repo_path%/.venv/Scripts/jupyter

call git config filter.jupyter_clean.clean "%jupyter_path% nbconvert --stdin --stdout --to notebook --ClearOutputPreprocessor.enabled=True"
rem filter disabled because it takes very long on windows and makes sourcetree basically unusable
rem call git config filter.jupyter_clean.clean "%jupyter_path% nbconvert --stdin --stdout --to notebook --ClearOutputPreprocessor.enabled=True"

call conda create -p .venv pip=20.2 pandoc setuptools_scm "python==3.9"
call conda create -p .venv --yes pip=20.2 pandoc setuptools_scm "python==3.9"

call conda activate ./.venv

Expand Down
8 changes: 4 additions & 4 deletions batch_scripts/create_pylife_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@


if [[ `uname` = Linux ]] ; then
JUPYTER=`git rev-parse --show-toplevel`/_venv/bin/jupyter
JUPYTER=`git rev-parse --show-toplevel`/.venv/bin/jupyter
. $ANACONDA_HOME/etc/profile.d/conda.sh
else
JUPYTER=`git rev-parse --show-toplevel`/_venv/Scripts/jupyter
JUPYTER=`git rev-parse --show-toplevel`/.venv/Scripts/jupyter
eval "$('/c/Program Files/Anaconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
fi

Expand All @@ -14,9 +14,9 @@ git config filter.jupyter_clean.clean \
--stdin --stdout --to notebook --ClearOutputPreprocessor.enabled=True"


conda env create -p _venv --file environment.yml
conda env create -p .venv --file environment.yml

conda activate ./_venv
conda activate ./.venv

if [[ `uname` != Linux ]] ; then
conda install pywin32
Expand Down
9 changes: 9 additions & 0 deletions batch_scripts/run_code_analysis.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
:: go one level up, if started from within the batch_scripts directory
set BATCH_PATH=%cd%

:: test if current path contains "batch_scripts"
if not x%BATCH_PATH%==x%BATCH_PATH:batch_scripts=% (
echo "cd"
cd ..
)

call conda activate ./.venv

if exist flake8.log del flake8.log
Expand Down
10 changes: 10 additions & 0 deletions batch_scripts/run_pylife_tests.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
:: go one level up, if started from within the batch_scripts directory
set BATCH_PATH=%cd%

:: test if current path contains "batch_scripts"
if not x%BATCH_PATH%==x%BATCH_PATH:batch_scripts=% (
echo "cd"
cd ..
)


call conda activate ./.venv

call python setup.py build_ext --inplace --force --define CYTHON_TRACE
Expand Down
11 changes: 10 additions & 1 deletion batch_scripts/run_test_cov_analysis.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
call conda activate ./_venv
:: go one level up, if started from within the batch_scripts directory
set BATCH_PATH=%cd%

:: test if current path contains "batch_scripts"
if not x%BATCH_PATH%==x%BATCH_PATH:batch_scripts=% (
echo "cd"
cd ..
)

call conda activate ./.venv

call python batch_scripts\test_cov_analysis.py E:\pyLife_coverage\ || exit /B 1
11 changes: 9 additions & 2 deletions batch_scripts/start_Jupyter_notebook.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
call conda activate ../_venv
call jupyter notebook --notebook-dir ../demos
rem go one level up
cd ..

call conda activate ./.venv

rem make sure that jupyter is installed
call pip install jupyter

call jupyter notebook --notebook-dir ./demos

2 changes: 2 additions & 0 deletions demos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.png
data/*
Binary file added demos/data/kt1.odb
Binary file not shown.
Binary file added demos/data/kt1.rst
Binary file not shown.
Binary file added demos/data/kt1.vmap
Binary file not shown.
4 changes: 4 additions & 0 deletions demos/fkm_nonlinear/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.ipynb_checkpoints/*
dump/*
*.png
data/*
Loading