Muscat.FE.FeaBase module

CheckIntegrity(GUI: bool = False)[source]
class FeaBase(spaceDim=3, size=1)[source]

Bases: object

Base class for a finite element solver, this class is experimental

normally a finite element solver has a mesh (self.mesh), a solution vector (self.sol), a linear solver (self.solver), the dimensionality of the physical space (1D,2D,3D) (self.spaceDim), and the number of dofs to allocate the objects. All the other parts (assembly operator, IO). must be defined in the derived class

ComputeConstraintsEquations()[source]

To computhe the cinematic relation in terms of dofs.

The the cinematic relations are stored in the solver

ComputeDofNumbering(elementFilter=None)[source]

This fuction must be eliminated (it uses self.space).

PushSolutionVectorToUnknownFields()[source]

Function to extract fields from the solution vector and to put it into fields data

PushUnknownFieldsToSolutionVector()[source]

Function to extract from the Unknown fields a solution vector

Reset()[source]

To eliminate the solution vector and to reset the linear solver

Resolve(cleanff)[source]

To solve a problem with the same tangent operator but with a different RHS term

SetMesh(mesh)[source]

To set the mesh

Solve(cleanK, cleanff)[source]

Solve a linear system using the internal solver with the cinematic reations calculated previously