Skip to content

Commit

Permalink
Add SolidBody(..., multiplier=None)
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Dec 17, 2024
1 parent bfba653 commit 326a8eb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/felupe/mechanics/_solidbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class SolidBody(Solid):
stacking sparse matrices vertically (row wise). Default is True.
apply : callable or None, optional
Apply a callable on the assembled vectors and sparse matrices. Default is None.
multiplier : float or None, optional
A scale factor for the assembled vector and matrix. Default is None.
Notes
-----
Expand Down Expand Up @@ -247,7 +249,14 @@ class SolidBody(Solid):
"""

def __init__(
self, umat, field, statevars=None, density=None, block=True, apply=None
self,
umat,
field,
statevars=None,
density=None,
block=True,
apply=None,
multiplier=None,
):
self.umat = umat
self.field = field
Expand All @@ -273,7 +282,10 @@ def __init__(
)

self.assemble = Assemble(
vector=self._vector, matrix=self._matrix, mass=self._mass
vector=self._vector,
matrix=self._matrix,
mass=self._mass,
multiplier=multiplier,
)

self.evaluate = Evaluate(
Expand Down

0 comments on commit 326a8eb

Please sign in to comment.