Linear Solver class

Parent class

Class doc

class femedu.solver.LinearSolver.LinearSolver

A linear system solver

This solver implies \(\{{\bf P}\} = [{\bf K}] \{{\bf u}\}\)

assemble(force_only=False)

inherited from Solver class.

pushState(state)

Pushes state to the solver. The solver will use that data to update it’s internal state.

state is defined as a dictionary with the following contents:

nodes

list of node pointers (required)

elements

list of element pointers (required)

P0

system vector of initial forces

Pref

system vector of reference forces

u1

system vector of current (converged) displacements

un

system vector of previous (converged) displacements

lam1

load level of current (converged) displacements

lamn

load level of previous (converged) displacements

Parameters:

state – state of the solver

solve(**kwargs)

Solves the system assuming the given load is the total load and the obtained displacement is the total displacement.

Note

This method will not verify whether or not the linear assumption is correct. The resulting forces may be out of equilibrium if the system experiences nonlinear behavior under the given load.