fedoo 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. fedoo-0.1.0/.github/workflows/build-and-test.yml +58 -0
  2. fedoo-0.1.0/.github/workflows/conda-packaging.yml +21 -0
  3. fedoo-0.1.0/.readthedocs.yml +32 -0
  4. fedoo-0.1.0/LICENSE +674 -0
  5. fedoo-0.1.0/PKG-INFO +55 -0
  6. fedoo-0.1.0/README.md +31 -0
  7. fedoo-0.1.0/conda.recipe/bld.bat +1 -0
  8. fedoo-0.1.0/conda.recipe/build.sh +2 -0
  9. fedoo-0.1.0/conda.recipe/meta.yaml +32 -0
  10. fedoo-0.1.0/docs/Assembly.rst +7 -0
  11. fedoo-0.1.0/docs/ConstitutiveLaw.rst +5 -0
  12. fedoo-0.1.0/docs/Examples.rst +56 -0
  13. fedoo-0.1.0/docs/Install.rst +14 -0
  14. fedoo-0.1.0/docs/Makefile +20 -0
  15. fedoo-0.1.0/docs/Mesh.rst +5 -0
  16. fedoo-0.1.0/docs/Overview.rst +44 -0
  17. fedoo-0.1.0/docs/Problem.rst +5 -0
  18. fedoo-0.1.0/docs/Quick_Start.rst +160 -0
  19. fedoo-0.1.0/docs/WeakForm.rst +5 -0
  20. fedoo-0.1.0/docs/_static/examples/example_plot_dataset.png +0 -0
  21. fedoo-0.1.0/docs/_static/examples/example_plot_dataset_nl.png +0 -0
  22. fedoo-0.1.0/docs/_static/examples/multiplot.png +0 -0
  23. fedoo-0.1.0/docs/_static/examples/plate_with_hole.png +0 -0
  24. fedoo-0.1.0/docs/_static/fedOOLogos.png +0 -0
  25. fedoo-0.1.0/docs/_static/fedOOLogos_ss_fond.png +0 -0
  26. fedoo-0.1.0/docs/_templates/custom-class-template.rst +47 -0
  27. fedoo-0.1.0/docs/conf.py +78 -0
  28. fedoo-0.1.0/docs/index.rst +25 -0
  29. fedoo-0.1.0/docs/make.bat +35 -0
  30. fedoo-0.1.0/docs/post-treatment.rst +184 -0
  31. fedoo-0.1.0/docs/requirements.txt +9 -0
  32. fedoo-0.1.0/environment.yml +13 -0
  33. fedoo-0.1.0/example/FE2/FE2.py +79 -0
  34. fedoo-0.1.0/example/FE2/octet_surf.msh +10879 -0
  35. fedoo-0.1.0/example/PGD/Plate_Simple_Bending.py +89 -0
  36. fedoo-0.1.0/example/PeriodicBoundaryConditions/2D_Periodic_BC_in_composite_ply.py +191 -0
  37. fedoo-0.1.0/example/PeriodicBoundaryConditions/3D_periodic_BC.py +154 -0
  38. fedoo-0.1.0/example/PeriodicBoundaryConditions/Gyroid/3D_periodic_BC.py +129 -0
  39. fedoo-0.1.0/example/PeriodicBoundaryConditions/Gyroid/gyroid.msh +51946 -0
  40. fedoo-0.1.0/example/PeriodicBoundaryConditions/Job-1.inp +2635 -0
  41. fedoo-0.1.0/example/PeriodicBoundaryConditions/Periodic_BC_2D_Plate_with_hole.py +149 -0
  42. fedoo-0.1.0/example/PeriodicBoundaryConditions/cell_taffetas.inp +14953 -0
  43. fedoo-0.1.0/example/PeriodicBoundaryConditions/plate_with_hole.msh +1923 -0
  44. fedoo-0.1.0/example/beam_elements/simpleBeamElementExample.py +95 -0
  45. fedoo-0.1.0/example/dynamique/Broberg2D_10000_10000.msh +23123 -0
  46. fedoo-0.1.0/example/dynamique/Broberg2D_Dynamic.py +154 -0
  47. fedoo-0.1.0/example/homogenization/data/output.dat +16 -0
  48. fedoo-0.1.0/example/homogenization/data/path.txt +44 -0
  49. fedoo-0.1.0/example/homogenization/getL.py +31 -0
  50. fedoo-0.1.0/example/homogenization/material_point_solver.py +168 -0
  51. fedoo-0.1.0/example/homogenization/octet_surf.msh +10879 -0
  52. fedoo-0.1.0/example/homogenization/octet_truss.py +31 -0
  53. fedoo-0.1.0/example/homogenization/periodic_homogenization.py +200 -0
  54. fedoo-0.1.0/example/homogenization/periodic_homogenization_from_scratch.py +343 -0
  55. fedoo-0.1.0/example/plasticity/2Dbending/2DplasticBending.py +109 -0
  56. fedoo-0.1.0/example/plasticity/plastic_bending_3D.py +173 -0
  57. fedoo-0.1.0/example/plasticity/rotation_test.py +259 -0
  58. fedoo-0.1.0/example/plasticity/shear_test.py +277 -0
  59. fedoo-0.1.0/example/plasticity/torsion_test.py +255 -0
  60. fedoo-0.1.0/example/shell_elements/LaminateExample.py +71 -0
  61. fedoo-0.1.0/example/shell_elements/simplePlateElementExample.py +77 -0
  62. fedoo-0.1.0/example/simple_cantilever_beam_3D_model/cantilever_beam_3D_wedge.py +51 -0
  63. fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model.ipynb +358 -0
  64. fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model.py +80 -0
  65. fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model_nlgeom.py +69 -0
  66. fedoo-0.1.0/example/tensile_plate/Plate_with_hole_in_tension.ipynb +376 -0
  67. fedoo-0.1.0/example/tensile_plate/Plate_with_hole_in_tension.py +114 -0
  68. fedoo-0.1.0/example/tensile_plate/plate_with_hole.msh +1923 -0
  69. fedoo-0.1.0/example/thermal/octet_surf.msh +15477 -0
  70. fedoo-0.1.0/example/thermal/thermal_condution_2D.py +56 -0
  71. fedoo-0.1.0/example/thermal/thermal_condution_3D.py +76 -0
  72. fedoo-0.1.0/example/thermal/thermo_meca_weak_coupling_3D.py +235 -0
  73. fedoo-0.1.0/example/thermal/thermo_meca_weak_coupling_3D_post_tt.py +97 -0
  74. fedoo-0.1.0/example/user_equation/fluid_mechanics.py +107 -0
  75. fedoo-0.1.0/example/user_equation/poison_eq.py +26 -0
  76. fedoo-0.1.0/example/user_equation/recirculating_flow.py +84 -0
  77. fedoo-0.1.0/fedOOLogos.png +0 -0
  78. fedoo-0.1.0/fedOOLogos.svg +390 -0
  79. fedoo-0.1.0/fedoo/__init__.py +20 -0
  80. fedoo-0.1.0/fedoo/_version.py +3 -0
  81. fedoo-0.1.0/fedoo/constitutivelaw/__init__.py +74 -0
  82. fedoo-0.1.0/fedoo/constitutivelaw/beam.py +165 -0
  83. fedoo-0.1.0/fedoo/constitutivelaw/cohesivelaw.py +335 -0
  84. fedoo-0.1.0/fedoo/constitutivelaw/cohesivelaw_mod.py +359 -0
  85. fedoo-0.1.0/fedoo/constitutivelaw/composite_ud.py +143 -0
  86. fedoo-0.1.0/fedoo/constitutivelaw/elastic_anisotropic.py +80 -0
  87. fedoo-0.1.0/fedoo/constitutivelaw/elastic_isotrop.py +62 -0
  88. fedoo-0.1.0/fedoo/constitutivelaw/elastic_orthotropic.py +79 -0
  89. fedoo-0.1.0/fedoo/constitutivelaw/elasto_plasticity.py +287 -0
  90. fedoo-0.1.0/fedoo/constitutivelaw/fe2.py +255 -0
  91. fedoo-0.1.0/fedoo/constitutivelaw/shell.py +276 -0
  92. fedoo-0.1.0/fedoo/constitutivelaw/simcoon_umat.py +214 -0
  93. fedoo-0.1.0/fedoo/constitutivelaw/spring.py +109 -0
  94. fedoo-0.1.0/fedoo/constitutivelaw/thermal_prop.py +18 -0
  95. fedoo-0.1.0/fedoo/constitutivelaw/umat_simcoon.py +210 -0
  96. fedoo-0.1.0/fedoo/constitutivelaw/umat_simcoon_2.py +279 -0
  97. fedoo-0.1.0/fedoo/constitutivelaw/viso_elastic_orthotropic.py +57 -0
  98. fedoo-0.1.0/fedoo/constraint/__init__.py +5 -0
  99. fedoo-0.1.0/fedoo/constraint/contact.py +491 -0
  100. fedoo-0.1.0/fedoo/constraint/periodic_bc.py +1199 -0
  101. fedoo-0.1.0/fedoo/constraint/rigid_tie.py +296 -0
  102. fedoo-0.1.0/fedoo/core/__init__.py +7 -0
  103. fedoo-0.1.0/fedoo/core/_sparsematrix.py +333 -0
  104. fedoo-0.1.0/fedoo/core/assembly.py +1217 -0
  105. fedoo-0.1.0/fedoo/core/assembly_sum.py +168 -0
  106. fedoo-0.1.0/fedoo/core/base.py +586 -0
  107. fedoo-0.1.0/fedoo/core/boundary_conditions.py +595 -0
  108. fedoo-0.1.0/fedoo/core/dataset.py +1097 -0
  109. fedoo-0.1.0/fedoo/core/diffop.py +159 -0
  110. fedoo-0.1.0/fedoo/core/mechanical3d.py +114 -0
  111. fedoo-0.1.0/fedoo/core/mesh.py +1315 -0
  112. fedoo-0.1.0/fedoo/core/modelingspace.py +332 -0
  113. fedoo-0.1.0/fedoo/core/output.py +318 -0
  114. fedoo-0.1.0/fedoo/core/problem.py +340 -0
  115. fedoo-0.1.0/fedoo/core/weakform.py +299 -0
  116. fedoo-0.1.0/fedoo/homogen/Homog_path.py +225 -0
  117. fedoo-0.1.0/fedoo/homogen/__init__.py +7 -0
  118. fedoo-0.1.0/fedoo/homogen/tangent_stiffness.py +275 -0
  119. fedoo-0.1.0/fedoo/lib_elements/__init__.py +7 -0
  120. fedoo-0.1.0/fedoo/lib_elements/beam.py +357 -0
  121. fedoo-0.1.0/fedoo/lib_elements/cohesive.py +99 -0
  122. fedoo-0.1.0/fedoo/lib_elements/element_base.py +308 -0
  123. fedoo-0.1.0/fedoo/lib_elements/element_list.py +206 -0
  124. fedoo-0.1.0/fedoo/lib_elements/finite_difference_1d.py +95 -0
  125. fedoo-0.1.0/fedoo/lib_elements/hexahedron.py +90 -0
  126. fedoo-0.1.0/fedoo/lib_elements/line.py +68 -0
  127. fedoo-0.1.0/fedoo/lib_elements/plate.py +32 -0
  128. fedoo-0.1.0/fedoo/lib_elements/quadrangle.py +114 -0
  129. fedoo-0.1.0/fedoo/lib_elements/tetrahedron.py +88 -0
  130. fedoo-0.1.0/fedoo/lib_elements/triangle.py +96 -0
  131. fedoo-0.1.0/fedoo/lib_elements/wedge.py +173 -0
  132. fedoo-0.1.0/fedoo/mesh/__init__.py +74 -0
  133. fedoo-0.1.0/fedoo/mesh/functions.py +281 -0
  134. fedoo-0.1.0/fedoo/mesh/importmesh.py +527 -0
  135. fedoo-0.1.0/fedoo/mesh/simple.py +629 -0
  136. fedoo-0.1.0/fedoo/pgd/AssemblyPGD.py +413 -0
  137. fedoo-0.1.0/fedoo/pgd/MeshPGD.py +262 -0
  138. fedoo-0.1.0/fedoo/pgd/PeriodicBoundaryConditionPGD.py +735 -0
  139. fedoo-0.1.0/fedoo/pgd/ProblemPGD.py +662 -0
  140. fedoo-0.1.0/fedoo/pgd/SeparatedArray.py +723 -0
  141. fedoo-0.1.0/fedoo/pgd/SeparatedOperator.py +182 -0
  142. fedoo-0.1.0/fedoo/pgd/UsualFunctions.py +393 -0
  143. fedoo-0.1.0/fedoo/pgd/__init__.py +18 -0
  144. fedoo-0.1.0/fedoo/problem/__init__.py +37 -0
  145. fedoo-0.1.0/fedoo/problem/explicit_dynamic.py +149 -0
  146. fedoo-0.1.0/fedoo/problem/linear.py +120 -0
  147. fedoo-0.1.0/fedoo/problem/newmark.py +189 -0
  148. fedoo-0.1.0/fedoo/problem/nl_newmark.py +391 -0
  149. fedoo-0.1.0/fedoo/problem/non_linear.py +379 -0
  150. fedoo-0.1.0/fedoo/util/__init__.py +9 -0
  151. fedoo-0.1.0/fedoo/util/abaqus_inp.py +175 -0
  152. fedoo-0.1.0/fedoo/util/localframe.py +148 -0
  153. fedoo-0.1.0/fedoo/util/mesh_writer.py +738 -0
  154. fedoo-0.1.0/fedoo/util/simple_plot.py +243 -0
  155. fedoo-0.1.0/fedoo/util/test_periodicity.py +83 -0
  156. fedoo-0.1.0/fedoo/util/voigt_tensors.py +208 -0
  157. fedoo-0.1.0/fedoo/weakform/__init__.py +46 -0
  158. fedoo-0.1.0/fedoo/weakform/beam.py +81 -0
  159. fedoo-0.1.0/fedoo/weakform/beam_parametric.py +144 -0
  160. fedoo-0.1.0/fedoo/weakform/heat_equation.py +165 -0
  161. fedoo-0.1.0/fedoo/weakform/inertia.py +37 -0
  162. fedoo-0.1.0/fedoo/weakform/interface_force.py +90 -0
  163. fedoo-0.1.0/fedoo/weakform/plate.py +170 -0
  164. fedoo-0.1.0/fedoo/weakform/stress_equilibrium.py +315 -0
  165. fedoo-0.1.0/fedoo.egg-info/PKG-INFO +55 -0
  166. fedoo-0.1.0/fedoo.egg-info/SOURCES.txt +185 -0
  167. fedoo-0.1.0/fedoo.egg-info/dependency_links.txt +1 -0
  168. fedoo-0.1.0/fedoo.egg-info/requires.txt +15 -0
  169. fedoo-0.1.0/fedoo.egg-info/top_level.txt +1 -0
  170. fedoo-0.1.0/pyproject.toml +58 -0
  171. fedoo-0.1.0/setup.cfg +4 -0
  172. fedoo-0.1.0/setup.py +3 -0
  173. fedoo-0.1.0/tests/run_tests.py +10 -0
  174. fedoo-0.1.0/tests/test_2DDynamicPlasticBending.py +107 -0
  175. fedoo-0.1.0/tests/test_BeamElement.py +90 -0
  176. fedoo-0.1.0/tests/test_Laminate.py +79 -0
  177. fedoo-0.1.0/tests/test_PlateElement.py +75 -0
  178. fedoo-0.1.0/tests/test_cantilever_beam_3D_model.py +52 -0
  179. fedoo-0.1.0/tests/test_octet.py +94 -0
  180. fedoo-0.1.0/tests/test_platewithhol.py +53 -0
  181. fedoo-0.1.0/tests/test_thermal3D.py +64 -0
  182. fedoo-0.1.0/util/meshes/gyroid.msh +63896 -0
  183. fedoo-0.1.0/util/meshes/gyroid_2.msh +63896 -0
  184. fedoo-0.1.0/util/meshes/gyroid_per.vtk +371640 -0
  185. fedoo-0.1.0/util/meshes/octet_truss.msh +10879 -0
  186. fedoo-0.1.0/util/meshes/octet_truss_2.msh +50890 -0
  187. fedoo-0.1.0/util/meshes/octet_truss_quad.msh +91069 -0
@@ -0,0 +1,58 @@
1
+ name: Build and Test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '*'
7
+
8
+ pull_request:
9
+ branches:
10
+ - '*'
11
+
12
+ schedule:
13
+ - cron: '0 0 * * *'
14
+
15
+ jobs:
16
+ build-linux:
17
+ runs-on: ubuntu-latest
18
+
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+
22
+ - name: Setup Mambaforge
23
+ uses: conda-incubator/setup-miniconda@v2
24
+ with:
25
+ miniforge-variant: Mambaforge
26
+ miniforge-version: latest
27
+ activate-environment: fedoo
28
+ use-mamba: true
29
+
30
+ - name: Get Date
31
+ id: get-date
32
+ run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')"
33
+ shell: bash
34
+
35
+ - name: Cache Conda env
36
+ uses: actions/cache@v2
37
+ with:
38
+ path: ${{ env.CONDA }}/envs
39
+ key: conda-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }}
40
+ env:
41
+ # Increase this value to reset cache if environment.yml has not changed
42
+ CACHE_NUMBER: 0
43
+ id: cache
44
+
45
+ - name: Update environment
46
+ run: mamba env update -n fedoo -f environment.yml
47
+ if: steps.cache.outputs.cache-hit != 'true'
48
+
49
+ - name: Install
50
+ shell: bash -l {0}
51
+ run: pip install .
52
+
53
+ - name: Test
54
+ shell: bash -l {0}
55
+ run: |
56
+ cd tests
57
+ python run_tests.py
58
+
@@ -0,0 +1,21 @@
1
+ name: Conda packaging
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ Linux:
8
+ name: Linux
9
+ runs-on: "ubuntu-latest"
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: conda-incubator/setup-miniconda@v2
13
+ with:
14
+ miniconda-version: "latest"
15
+ - name: Conda build for Linux
16
+ shell: bash -l {0}
17
+ run: |
18
+ conda install conda-build anaconda-client
19
+ anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
20
+ conda-build conda.recipe -c conda-forge -c set3mah --output-folder .
21
+ anaconda upload noarch/*.tar.bz2 --force
@@ -0,0 +1,32 @@
1
+ # .readthedocs.yml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ conda:
9
+ environment: environment.yml
10
+
11
+ build:
12
+ os: "ubuntu-20.04"
13
+ tools:
14
+ python: "mambaforge-4.10"
15
+
16
+ # Build documentation in the docs/ directory with Sphinx
17
+ sphinx:
18
+ configuration: docs/conf.py
19
+
20
+ # Build documentation with MkDocs
21
+ #mkdocs:
22
+ # configuration: mkdocs.yml
23
+
24
+ # Optionally build your docs in additional formats such as PDF
25
+ # formats:
26
+ # - pdf
27
+
28
+ # Optionally set the version of Python and requirements required to build your docs
29
+ # python:
30
+ # version: 3.8
31
+ # install:
32
+ # - requirements: docs/requirements.txt