BasicTools.FE.FeaBase module

BasicTools.FE.FeaBase.CheckIntegrity(GUI=False)[source]
class BasicTools.FE.FeaBase.FeaBase(spaceDim=3, size=1)[source]

Bases: BaseOutputObject

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

normaly a finit element solver has a mesh (slef.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 (asembly 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).

PushSolutionVectorToUnkownFields()[source]

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

PushUnkownFieldsToSolutionVector()[source]

Function to extract from the Unkown 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