step
gripyth.solving.step
Load steps.
MODULE | DESCRIPTION |
---|---|
assembly |
Assembly of the system's stiffness matrix. |
CLASS | DESCRIPTION |
---|---|
StepParameters |
Parameters regarding the load steps. |
StepVars |
Load-step variables. |
FUNCTION | DESCRIPTION |
---|---|
load_linear |
Linear load function. |
load_sine |
Sine load function. |
load_triangle |
Triangle load function. |
post_iter_update |
Update after load step. |
pre_iter_update |
Update before load step. |
remove_unload |
Change discretization of loading- and unloading phases. |
StepParameters
dataclass
Parameters regarding the load steps.
METHOD | DESCRIPTION |
---|---|
__init__ |
Collects solver-step parameters. |
__init__
__init__(
load_fun: NDArray[np.float64],
ux_final: float = 1.0,
uy_final: float = 0.0,
tx_final: float = 0.0,
ty_final: float = 0.0,
)
Collects solver-step parameters.
Input:
n_step
: number of solver stepsload_fun
: Load function used to preparetx_increment
,ty_increment
,ux_increment
,uy_increment
ux_final
: final displacement in x-directionuy_final
: final displacement in y-directiontx_final
: final traction in x-directionty_final
: final traction in y-direction
StepVars
dataclass
Load-step variables.
METHOD | DESCRIPTION |
---|---|
__init__ |
Create load-step variables. |
ATTRIBUTE | DESCRIPTION |
---|---|
F_x |
force in x-direction
TYPE:
|
F_y |
force in y-direction
TYPE:
|
u_x |
displacement in x-direction
TYPE:
|
u_y |
displacement in y-direction
TYPE:
|
load_linear
Linear load function.
To be used as the load_fun
argument of
StepParameters()
.
load_sine
load_sine(
n_step: int,
R: float,
n_step_burnin: int = 0,
zero_padding: float = 1e-06,
) -> NDArray[np.float64]
Sine load function.
To be used as the load_fun
argument of
StepParameters()
.
load_triangle
load_triangle(
n_step: int,
R: float,
n_step_burnin: int = 0,
zero_padding: float = 1e-06,
) -> NDArray[np.float64]
Triangle load function.
To be used as the load_fun
argument of
StepParameters()
.
post_iter_update
post_iter_update(
i_step: int,
step_vars: StepVars,
stiffness_matrix: StiffnessMatrix,
displacement: NDArray[float64],
boundaries: NodeBoundaries,
n_nodes: int,
step_params: StepParameters,
) -> StepVars
Update after load step.
pre_iter_update
pre_iter_update(
i_step: int,
t: float,
boundaries: NodeBoundaries,
dofs: Dofs,
stiffness_matrix: StiffnessMatrix,
displ: NDArray[float64],
step_params: StepParameters,
bc: BoundaryConditions,
quadrature: Quadrature,
mesh: Mesh,
) -> tuple[
NDArray[float64], NDArray[float64], NDArray[float64]
]
Update before load step.