C# Класс SharpFE.Solvers.LinearSolver

Carries out a simple, linear analysis to solve a static, implicit finite element problem.
Наследование: IFiniteElementSolver
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
matrixBuilder SharpFE.Stiffness.GlobalModelStiffnessMatrixBuilder
model FiniteElementModel

Открытые методы

Метод Описание
LinearSolver ( FiniteElementModel modelToSolve ) : System

Initializes a new instance of the LinearSolver class.

LinearSolver ( FiniteElementModel modelToSolve, GlobalModelStiffnessMatrixBuilder stiffnessMatrixBuilder ) : System

Initializes a new instance of the LinearSolver class.

Solve ( ) : FiniteElementResults

Solves the model containing the finite element problem

Защищенные методы

Метод Описание
CalculateUnknownDisplacements ( ) : KeyedVector

Calculates part of the problem for unknown displacements

CalculateUnknownReactions ( KeyedVector unknownDisplacements ) : KeyedVector

Calculates part of the stiffness equations for the unknown reactions.

CombineExternalForcesOnReactionNodesWithReactions ( KeyedVector reactions ) : KeyedVector

The user may have placed reactions directly on to fixed supports. These are ignored during the calculation, but the correct answer for the total reaction must include them

CreateResults ( KeyedVector displacements, KeyedVector reactions ) : FiniteElementResults

Puts the data into the results data structure.

Solve ( StiffnessMatrix stiffnessMatrix, KeyedVector forceVector ) : KeyedVector

Solves AX=B for X.

ThrowIfNotAValidModel ( ) : void

Checks as to whether the model is valid for solving.

Описание методов

CalculateUnknownDisplacements() защищенный Метод

Calculates part of the problem for unknown displacements
protected CalculateUnknownDisplacements ( ) : KeyedVector
Результат KeyedVector

CalculateUnknownReactions() защищенный Метод

Calculates part of the stiffness equations for the unknown reactions.
protected CalculateUnknownReactions ( KeyedVector unknownDisplacements ) : KeyedVector
unknownDisplacements KeyedVector A vector of the displacements which were previously unknown
Результат KeyedVector

CombineExternalForcesOnReactionNodesWithReactions() защищенный Метод

The user may have placed reactions directly on to fixed supports. These are ignored during the calculation, but the correct answer for the total reaction must include them
protected CombineExternalForcesOnReactionNodesWithReactions ( KeyedVector reactions ) : KeyedVector
reactions KeyedVector The calculated values of the reactions
Результат KeyedVector

CreateResults() защищенный Метод

Puts the data into the results data structure.
protected CreateResults ( KeyedVector displacements, KeyedVector reactions ) : FiniteElementResults
displacements KeyedVector The calculated displacements. The index of the values in the vector matches the index of the displacement identifiers.
reactions KeyedVector The calculated reactions. The index of the values in the vector matches the index of the reaction identifiers.
Результат FiniteElementResults

LinearSolver() публичный Метод

Initializes a new instance of the LinearSolver class.
public LinearSolver ( FiniteElementModel modelToSolve ) : System
modelToSolve FiniteElementModel The model on which to run the analysis
Результат System

LinearSolver() публичный Метод

Initializes a new instance of the LinearSolver class.
public LinearSolver ( FiniteElementModel modelToSolve, GlobalModelStiffnessMatrixBuilder stiffnessMatrixBuilder ) : System
modelToSolve FiniteElementModel The model on which to run the analysis
stiffnessMatrixBuilder SharpFE.Stiffness.GlobalModelStiffnessMatrixBuilder The class which generates the stiffness matrices for solving.
Результат System

Solve() публичный Метод

Solves the model containing the finite element problem
public Solve ( ) : FiniteElementResults
Результат FiniteElementResults

Solve() защищенный абстрактный Метод

Solves AX=B for X.
protected abstract Solve ( StiffnessMatrix stiffnessMatrix, KeyedVector forceVector ) : KeyedVector
stiffnessMatrix StiffnessMatrix The stiffness matrix
forceVector KeyedVector The forces
Результат KeyedVector

ThrowIfNotAValidModel() защищенный Метод

Checks as to whether the model is valid for solving.
Thrown if the model is invalid for solving.
protected ThrowIfNotAValidModel ( ) : void
Результат void

Описание свойств

matrixBuilder защищенное свойство

A helper class to build the stiffness matrices from the model
protected GlobalModelStiffnessMatrixBuilder,SharpFE.Stiffness matrixBuilder
Результат SharpFE.Stiffness.GlobalModelStiffnessMatrixBuilder

model защищенное свойство

The model with the data to solve
protected FiniteElementModel model
Результат FiniteElementModel