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.
- fedoo-0.1.0/.github/workflows/build-and-test.yml +58 -0
- fedoo-0.1.0/.github/workflows/conda-packaging.yml +21 -0
- fedoo-0.1.0/.readthedocs.yml +32 -0
- fedoo-0.1.0/LICENSE +674 -0
- fedoo-0.1.0/PKG-INFO +55 -0
- fedoo-0.1.0/README.md +31 -0
- fedoo-0.1.0/conda.recipe/bld.bat +1 -0
- fedoo-0.1.0/conda.recipe/build.sh +2 -0
- fedoo-0.1.0/conda.recipe/meta.yaml +32 -0
- fedoo-0.1.0/docs/Assembly.rst +7 -0
- fedoo-0.1.0/docs/ConstitutiveLaw.rst +5 -0
- fedoo-0.1.0/docs/Examples.rst +56 -0
- fedoo-0.1.0/docs/Install.rst +14 -0
- fedoo-0.1.0/docs/Makefile +20 -0
- fedoo-0.1.0/docs/Mesh.rst +5 -0
- fedoo-0.1.0/docs/Overview.rst +44 -0
- fedoo-0.1.0/docs/Problem.rst +5 -0
- fedoo-0.1.0/docs/Quick_Start.rst +160 -0
- fedoo-0.1.0/docs/WeakForm.rst +5 -0
- fedoo-0.1.0/docs/_static/examples/example_plot_dataset.png +0 -0
- fedoo-0.1.0/docs/_static/examples/example_plot_dataset_nl.png +0 -0
- fedoo-0.1.0/docs/_static/examples/multiplot.png +0 -0
- fedoo-0.1.0/docs/_static/examples/plate_with_hole.png +0 -0
- fedoo-0.1.0/docs/_static/fedOOLogos.png +0 -0
- fedoo-0.1.0/docs/_static/fedOOLogos_ss_fond.png +0 -0
- fedoo-0.1.0/docs/_templates/custom-class-template.rst +47 -0
- fedoo-0.1.0/docs/conf.py +78 -0
- fedoo-0.1.0/docs/index.rst +25 -0
- fedoo-0.1.0/docs/make.bat +35 -0
- fedoo-0.1.0/docs/post-treatment.rst +184 -0
- fedoo-0.1.0/docs/requirements.txt +9 -0
- fedoo-0.1.0/environment.yml +13 -0
- fedoo-0.1.0/example/FE2/FE2.py +79 -0
- fedoo-0.1.0/example/FE2/octet_surf.msh +10879 -0
- fedoo-0.1.0/example/PGD/Plate_Simple_Bending.py +89 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/2D_Periodic_BC_in_composite_ply.py +191 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/3D_periodic_BC.py +154 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/Gyroid/3D_periodic_BC.py +129 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/Gyroid/gyroid.msh +51946 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/Job-1.inp +2635 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/Periodic_BC_2D_Plate_with_hole.py +149 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/cell_taffetas.inp +14953 -0
- fedoo-0.1.0/example/PeriodicBoundaryConditions/plate_with_hole.msh +1923 -0
- fedoo-0.1.0/example/beam_elements/simpleBeamElementExample.py +95 -0
- fedoo-0.1.0/example/dynamique/Broberg2D_10000_10000.msh +23123 -0
- fedoo-0.1.0/example/dynamique/Broberg2D_Dynamic.py +154 -0
- fedoo-0.1.0/example/homogenization/data/output.dat +16 -0
- fedoo-0.1.0/example/homogenization/data/path.txt +44 -0
- fedoo-0.1.0/example/homogenization/getL.py +31 -0
- fedoo-0.1.0/example/homogenization/material_point_solver.py +168 -0
- fedoo-0.1.0/example/homogenization/octet_surf.msh +10879 -0
- fedoo-0.1.0/example/homogenization/octet_truss.py +31 -0
- fedoo-0.1.0/example/homogenization/periodic_homogenization.py +200 -0
- fedoo-0.1.0/example/homogenization/periodic_homogenization_from_scratch.py +343 -0
- fedoo-0.1.0/example/plasticity/2Dbending/2DplasticBending.py +109 -0
- fedoo-0.1.0/example/plasticity/plastic_bending_3D.py +173 -0
- fedoo-0.1.0/example/plasticity/rotation_test.py +259 -0
- fedoo-0.1.0/example/plasticity/shear_test.py +277 -0
- fedoo-0.1.0/example/plasticity/torsion_test.py +255 -0
- fedoo-0.1.0/example/shell_elements/LaminateExample.py +71 -0
- fedoo-0.1.0/example/shell_elements/simplePlateElementExample.py +77 -0
- fedoo-0.1.0/example/simple_cantilever_beam_3D_model/cantilever_beam_3D_wedge.py +51 -0
- fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model.ipynb +358 -0
- fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model.py +80 -0
- fedoo-0.1.0/example/simple_cantilever_beam_3D_model/simple_cantilever_beam_3D_model_nlgeom.py +69 -0
- fedoo-0.1.0/example/tensile_plate/Plate_with_hole_in_tension.ipynb +376 -0
- fedoo-0.1.0/example/tensile_plate/Plate_with_hole_in_tension.py +114 -0
- fedoo-0.1.0/example/tensile_plate/plate_with_hole.msh +1923 -0
- fedoo-0.1.0/example/thermal/octet_surf.msh +15477 -0
- fedoo-0.1.0/example/thermal/thermal_condution_2D.py +56 -0
- fedoo-0.1.0/example/thermal/thermal_condution_3D.py +76 -0
- fedoo-0.1.0/example/thermal/thermo_meca_weak_coupling_3D.py +235 -0
- fedoo-0.1.0/example/thermal/thermo_meca_weak_coupling_3D_post_tt.py +97 -0
- fedoo-0.1.0/example/user_equation/fluid_mechanics.py +107 -0
- fedoo-0.1.0/example/user_equation/poison_eq.py +26 -0
- fedoo-0.1.0/example/user_equation/recirculating_flow.py +84 -0
- fedoo-0.1.0/fedOOLogos.png +0 -0
- fedoo-0.1.0/fedOOLogos.svg +390 -0
- fedoo-0.1.0/fedoo/__init__.py +20 -0
- fedoo-0.1.0/fedoo/_version.py +3 -0
- fedoo-0.1.0/fedoo/constitutivelaw/__init__.py +74 -0
- fedoo-0.1.0/fedoo/constitutivelaw/beam.py +165 -0
- fedoo-0.1.0/fedoo/constitutivelaw/cohesivelaw.py +335 -0
- fedoo-0.1.0/fedoo/constitutivelaw/cohesivelaw_mod.py +359 -0
- fedoo-0.1.0/fedoo/constitutivelaw/composite_ud.py +143 -0
- fedoo-0.1.0/fedoo/constitutivelaw/elastic_anisotropic.py +80 -0
- fedoo-0.1.0/fedoo/constitutivelaw/elastic_isotrop.py +62 -0
- fedoo-0.1.0/fedoo/constitutivelaw/elastic_orthotropic.py +79 -0
- fedoo-0.1.0/fedoo/constitutivelaw/elasto_plasticity.py +287 -0
- fedoo-0.1.0/fedoo/constitutivelaw/fe2.py +255 -0
- fedoo-0.1.0/fedoo/constitutivelaw/shell.py +276 -0
- fedoo-0.1.0/fedoo/constitutivelaw/simcoon_umat.py +214 -0
- fedoo-0.1.0/fedoo/constitutivelaw/spring.py +109 -0
- fedoo-0.1.0/fedoo/constitutivelaw/thermal_prop.py +18 -0
- fedoo-0.1.0/fedoo/constitutivelaw/umat_simcoon.py +210 -0
- fedoo-0.1.0/fedoo/constitutivelaw/umat_simcoon_2.py +279 -0
- fedoo-0.1.0/fedoo/constitutivelaw/viso_elastic_orthotropic.py +57 -0
- fedoo-0.1.0/fedoo/constraint/__init__.py +5 -0
- fedoo-0.1.0/fedoo/constraint/contact.py +491 -0
- fedoo-0.1.0/fedoo/constraint/periodic_bc.py +1199 -0
- fedoo-0.1.0/fedoo/constraint/rigid_tie.py +296 -0
- fedoo-0.1.0/fedoo/core/__init__.py +7 -0
- fedoo-0.1.0/fedoo/core/_sparsematrix.py +333 -0
- fedoo-0.1.0/fedoo/core/assembly.py +1217 -0
- fedoo-0.1.0/fedoo/core/assembly_sum.py +168 -0
- fedoo-0.1.0/fedoo/core/base.py +586 -0
- fedoo-0.1.0/fedoo/core/boundary_conditions.py +595 -0
- fedoo-0.1.0/fedoo/core/dataset.py +1097 -0
- fedoo-0.1.0/fedoo/core/diffop.py +159 -0
- fedoo-0.1.0/fedoo/core/mechanical3d.py +114 -0
- fedoo-0.1.0/fedoo/core/mesh.py +1315 -0
- fedoo-0.1.0/fedoo/core/modelingspace.py +332 -0
- fedoo-0.1.0/fedoo/core/output.py +318 -0
- fedoo-0.1.0/fedoo/core/problem.py +340 -0
- fedoo-0.1.0/fedoo/core/weakform.py +299 -0
- fedoo-0.1.0/fedoo/homogen/Homog_path.py +225 -0
- fedoo-0.1.0/fedoo/homogen/__init__.py +7 -0
- fedoo-0.1.0/fedoo/homogen/tangent_stiffness.py +275 -0
- fedoo-0.1.0/fedoo/lib_elements/__init__.py +7 -0
- fedoo-0.1.0/fedoo/lib_elements/beam.py +357 -0
- fedoo-0.1.0/fedoo/lib_elements/cohesive.py +99 -0
- fedoo-0.1.0/fedoo/lib_elements/element_base.py +308 -0
- fedoo-0.1.0/fedoo/lib_elements/element_list.py +206 -0
- fedoo-0.1.0/fedoo/lib_elements/finite_difference_1d.py +95 -0
- fedoo-0.1.0/fedoo/lib_elements/hexahedron.py +90 -0
- fedoo-0.1.0/fedoo/lib_elements/line.py +68 -0
- fedoo-0.1.0/fedoo/lib_elements/plate.py +32 -0
- fedoo-0.1.0/fedoo/lib_elements/quadrangle.py +114 -0
- fedoo-0.1.0/fedoo/lib_elements/tetrahedron.py +88 -0
- fedoo-0.1.0/fedoo/lib_elements/triangle.py +96 -0
- fedoo-0.1.0/fedoo/lib_elements/wedge.py +173 -0
- fedoo-0.1.0/fedoo/mesh/__init__.py +74 -0
- fedoo-0.1.0/fedoo/mesh/functions.py +281 -0
- fedoo-0.1.0/fedoo/mesh/importmesh.py +527 -0
- fedoo-0.1.0/fedoo/mesh/simple.py +629 -0
- fedoo-0.1.0/fedoo/pgd/AssemblyPGD.py +413 -0
- fedoo-0.1.0/fedoo/pgd/MeshPGD.py +262 -0
- fedoo-0.1.0/fedoo/pgd/PeriodicBoundaryConditionPGD.py +735 -0
- fedoo-0.1.0/fedoo/pgd/ProblemPGD.py +662 -0
- fedoo-0.1.0/fedoo/pgd/SeparatedArray.py +723 -0
- fedoo-0.1.0/fedoo/pgd/SeparatedOperator.py +182 -0
- fedoo-0.1.0/fedoo/pgd/UsualFunctions.py +393 -0
- fedoo-0.1.0/fedoo/pgd/__init__.py +18 -0
- fedoo-0.1.0/fedoo/problem/__init__.py +37 -0
- fedoo-0.1.0/fedoo/problem/explicit_dynamic.py +149 -0
- fedoo-0.1.0/fedoo/problem/linear.py +120 -0
- fedoo-0.1.0/fedoo/problem/newmark.py +189 -0
- fedoo-0.1.0/fedoo/problem/nl_newmark.py +391 -0
- fedoo-0.1.0/fedoo/problem/non_linear.py +379 -0
- fedoo-0.1.0/fedoo/util/__init__.py +9 -0
- fedoo-0.1.0/fedoo/util/abaqus_inp.py +175 -0
- fedoo-0.1.0/fedoo/util/localframe.py +148 -0
- fedoo-0.1.0/fedoo/util/mesh_writer.py +738 -0
- fedoo-0.1.0/fedoo/util/simple_plot.py +243 -0
- fedoo-0.1.0/fedoo/util/test_periodicity.py +83 -0
- fedoo-0.1.0/fedoo/util/voigt_tensors.py +208 -0
- fedoo-0.1.0/fedoo/weakform/__init__.py +46 -0
- fedoo-0.1.0/fedoo/weakform/beam.py +81 -0
- fedoo-0.1.0/fedoo/weakform/beam_parametric.py +144 -0
- fedoo-0.1.0/fedoo/weakform/heat_equation.py +165 -0
- fedoo-0.1.0/fedoo/weakform/inertia.py +37 -0
- fedoo-0.1.0/fedoo/weakform/interface_force.py +90 -0
- fedoo-0.1.0/fedoo/weakform/plate.py +170 -0
- fedoo-0.1.0/fedoo/weakform/stress_equilibrium.py +315 -0
- fedoo-0.1.0/fedoo.egg-info/PKG-INFO +55 -0
- fedoo-0.1.0/fedoo.egg-info/SOURCES.txt +185 -0
- fedoo-0.1.0/fedoo.egg-info/dependency_links.txt +1 -0
- fedoo-0.1.0/fedoo.egg-info/requires.txt +15 -0
- fedoo-0.1.0/fedoo.egg-info/top_level.txt +1 -0
- fedoo-0.1.0/pyproject.toml +58 -0
- fedoo-0.1.0/setup.cfg +4 -0
- fedoo-0.1.0/setup.py +3 -0
- fedoo-0.1.0/tests/run_tests.py +10 -0
- fedoo-0.1.0/tests/test_2DDynamicPlasticBending.py +107 -0
- fedoo-0.1.0/tests/test_BeamElement.py +90 -0
- fedoo-0.1.0/tests/test_Laminate.py +79 -0
- fedoo-0.1.0/tests/test_PlateElement.py +75 -0
- fedoo-0.1.0/tests/test_cantilever_beam_3D_model.py +52 -0
- fedoo-0.1.0/tests/test_octet.py +94 -0
- fedoo-0.1.0/tests/test_platewithhol.py +53 -0
- fedoo-0.1.0/tests/test_thermal3D.py +64 -0
- fedoo-0.1.0/util/meshes/gyroid.msh +63896 -0
- fedoo-0.1.0/util/meshes/gyroid_2.msh +63896 -0
- fedoo-0.1.0/util/meshes/gyroid_per.vtk +371640 -0
- fedoo-0.1.0/util/meshes/octet_truss.msh +10879 -0
- fedoo-0.1.0/util/meshes/octet_truss_2.msh +50890 -0
- 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
|