Skip to content

Commit

Permalink
loadcase as dict
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Aug 8, 2022
1 parent 6e9782e commit 1575b8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/howto/composite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The displacement boundaries are created on the total field.

.. code-block:: python
boundaries, dof0, dof1, ext0 = fe.dof.uniaxial(field, move=-0.25)
boundaries, loadcase = fe.dof.uniaxial(field, move=-0.25)
The rubber is associated to a Neo-Hookean material formulation whereas the steel is modeled by a linear elastic material formulation. For each material a solid body is created.
Expand All @@ -71,6 +71,10 @@ Inside the Newton-Rhapson iterations both the internal force vector and the tang
r = rubber.assemble.vector()
r+= steel.assemble.vector()
dof1 = loadcase["dof1"]
dof0 = loadcase["dof0"]
ext0 = loadcase["ext0"]
for iteration in range(8):
Expand Down
6 changes: 5 additions & 1 deletion docs/tutorial/platewithhole.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ A numeric quad-region created on the mesh in combination with a vector-valued di
displacement = fe.Field(region, dim=2)
field = fe.FieldContainer([displacement])
boundaries, dof0, dof1, ext0 = fe.dof.uniaxial(
boundaries, loadcase = fe.dof.uniaxial(
field, move=0.001, right=L, clamped=False
)
Expand Down Expand Up @@ -96,6 +96,10 @@ The linear equation system may now be solved. First, a partition into active and

.. code-block:: python
dof1 = loadcase["dof1"]
dof0 = loadcase["dof0"]
ext0 = loadcase["ext0"]
system = fe.solve.partition(field, K, dof1, dof0)
field += fe.solve.solve(*system, ext0)
Expand Down

0 comments on commit 1575b8a

Please sign in to comment.