KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Current class provides an implementation for standard builder and solving operations. More...
#include <residualbased_block_builder_and_solver.h>
Public Member Functions | |
Life Cycle | |
ResidualBasedBlockBuilderAndSolver () | |
Default constructor. More... | |
ResidualBasedBlockBuilderAndSolver (typename TLinearSolver::Pointer pNewLinearSystemSolver, Parameters ThisParameters) | |
Default constructor. (with parameters) More... | |
ResidualBasedBlockBuilderAndSolver (typename TLinearSolver::Pointer pNewLinearSystemSolver) | |
Default constructor. More... | |
~ResidualBasedBlockBuilderAndSolver () override | |
BaseType::Pointer | Create (typename TLinearSolver::Pointer pNewLinearSystemSolver, Parameters ThisParameters) const override |
Create method. More... | |
Access | |
TSparseSpace::MatrixType & | GetConstraintRelationMatrix () override |
This method returns constraint relation (T) matrix. More... | |
TSparseSpace::VectorType & | GetConstraintConstantVector () override |
This method returns constraint constant vector. More... | |
double | GetScaleFactor () |
Retrieves the current scale factor. This function returns the current scale factor value. More... | |
void | SetScaleFactor (const double ScaleFactor) |
Sets the scale factor. This function sets a new value for the scale factor. More... | |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | |
BuilderAndSolver () | |
Default constructor. More... | |
BuilderAndSolver (typename TLinearSolver::Pointer pNewLinearSystemSolver, Parameters ThisParameters) | |
Default constructor with Parameters. More... | |
BuilderAndSolver (typename TLinearSolver::Pointer pNewLinearSystemSolver) | |
Default constructor. More... | |
virtual | ~BuilderAndSolver () |
void | SetEchoLevel (int Level) |
It sets the level of echo for the solving strategy. More... | |
int | GetEchoLevel () const |
It returns the echo level. More... | |
KRATOS_CLASS_POINTER_DEFINITION (BuilderAndSolver) | |
Pointer definition of BuilderAndSolver. More... | |
bool | GetCalculateReactionsFlag () const |
This method returns the flag mCalculateReactionsFlag. More... | |
void | SetCalculateReactionsFlag (bool flag) |
This method sets the flag mCalculateReactionsFlag. More... | |
bool | GetDofSetIsInitializedFlag () const |
This method returns the flag mDofSetIsInitialized. More... | |
void | SetDofSetIsInitializedFlag (bool DofSetIsInitialized) |
This method sets the flag mDofSetIsInitialized. More... | |
bool | GetReshapeMatrixFlag () const |
This method returns the flag mReshapeMatrixFlag. More... | |
void | SetReshapeMatrixFlag (bool ReshapeMatrixFlag) |
This method sets the flag mReshapeMatrixFlag. More... | |
unsigned int | GetEquationSystemSize () const |
This method returns the value mEquationSystemSize. More... | |
TLinearSolver::Pointer | GetLinearSystemSolver () const |
This method return the linear solver used. More... | |
void | SetLinearSystemSolver (typename TLinearSolver::Pointer pLinearSystemSolver) |
This method sets the linear solver to be used. More... | |
virtual void | BuildLHS_Complete (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA) |
It builds a matrix of size N*N where "N" is the total number of degrees of freedom involved. More... | |
virtual void | ApplyDirichletConditions_LHS (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx) |
The same of the precedent but affecting only the LHS. More... | |
virtual void | ApplyDirichletConditions_RHS (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemVectorType &rDx, TSystemVectorType &rb) |
The same of the precedent but affecting only the RHS. More... | |
virtual DofsArrayType & | GetDofSet () |
It allows to get the list of Dofs from the element. More... | |
virtual const DofsArrayType & | GetDofSet () const |
It allows to get the list of Dofs from the element. More... | |
virtual void | InitializeSolutionStep (ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb) |
It applies certain operations at the system of equations at the beginning of the solution step. More... | |
virtual void | FinalizeSolutionStep (ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb) |
It applies certain operations at the system of equations at the end of the solution step. More... | |
Protected Member Functions | |
Protected Operations | |
void | BuildRHSNoDirichlet (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemVectorType &b) |
virtual void | ConstructMasterSlaveConstraintsStructure (ModelPart &rModelPart) |
virtual void | BuildMasterSlaveConstraints (ModelPart &rModelPart) |
virtual void | ConstructMatrixStructure (typename TSchemeType::Pointer pScheme, TSystemMatrixType &A, ModelPart &rModelPart) |
void | Assemble (TSystemMatrixType &A, TSystemVectorType &b, const LocalSystemMatrixType &LHS_Contribution, const LocalSystemVectorType &RHS_Contribution, Element::EquationIdVectorType &EquationId) |
void | AssembleLHS (TSystemMatrixType &rA, const LocalSystemMatrixType &rLHSContribution, Element::EquationIdVectorType &rEquationId) |
void | AssembleRHS (TSystemVectorType &b, LocalSystemVectorType &RHS_Contribution, Element::EquationIdVectorType &EquationId) |
void | AssembleRowContribution (TSystemMatrixType &A, const Matrix &Alocal, const unsigned int i, const unsigned int i_local, Element::EquationIdVectorType &EquationId) |
void | AssignSettings (const Parameters ThisParameters) override |
This method assigns settings to member variables. More... | |
Protected Member Functions inherited from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | |
virtual Parameters | ValidateAndAssignParameters (Parameters ThisParameters, const Parameters DefaultParameters) const |
This method validate and assign default parameters. More... | |
Protected Attributes | |
Protected member Variables | |
TSystemMatrixType | mT |
TSystemVectorType | mConstantVector |
This is matrix containing the global relation for the constraints. More... | |
std::vector< IndexType > | mSlaveIds |
This is vector containing the rigid movement of the constraint. More... | |
std::vector< IndexType > | mMasterIds |
The equation ids of the slaves. More... | |
std::unordered_set< IndexType > | mInactiveSlaveDofs |
The equation ids of the master. More... | |
double | mScaleFactor = 1.0 |
The set containing the inactive slave dofs. More... | |
SCALING_DIAGONAL | mScalingDiagonal = SCALING_DIAGONAL::CONSIDER_MAX_DIAGONAL |
The manually set scale factor. More... | |
Flags | mOptions |
We identify the scaling considered for the dirichlet dofs. More... | |
Protected Attributes inherited from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | |
TLinearSolver::Pointer | mpLinearSystemSolver = nullptr |
DofsArrayType | mDofSet |
Pointer to the linear solver. More... | |
bool | mReshapeMatrixFlag = false |
The set containing the DoF of the system. More... | |
bool | mDofSetIsInitialized = false |
If the matrix is reshaped each step. More... | |
bool | mCalculateReactionsFlag = false |
Flag taking care if the dof set was initialized ot not. More... | |
unsigned int | mEquationSystemSize |
Flag taking in account if it is needed or not to calculate the reactions. More... | |
int | mEchoLevel = 0 |
Number of degrees of freedom of the problem to be solve. More... | |
TSystemVectorPointerType | mpReactionsVector |
Operations | |
void | Build (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &A, TSystemVectorType &b) override |
Function to perform the build of the RHS. The vector could be sized as the total number of dofs or as the number of unrestrained ones. More... | |
void | BuildLHS (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA) override |
Function to perform the building of the LHS. More... | |
void | BuildLHS_CompleteOnFreeRows (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &A) override |
Build a rectangular matrix of size n*N where "n" is the number of unrestrained degrees of freedom and "N" is the total number of degrees of freedom involved. More... | |
void | SystemSolve (TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb) override |
This is a call to the linear system solver. More... | |
virtual void | SystemSolveWithPhysics (TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb, ModelPart &rModelPart) |
This is a call to the linear system solver (taking into account some physical particularities of the problem) More... | |
void | InternalSystemSolveWithPhysics (TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb, ModelPart &rModelPart) |
This is a call to the linear system solver (taking into account some physical particularities of the problem) More... | |
void | BuildAndSolve (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &A, TSystemVectorType &Dx, TSystemVectorType &b) override |
Function to perform the building and solving phase at the same time. More... | |
void | BuildAndSolveLinearizedOnPreviousIteration (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb, const bool MoveMesh) override |
Function to perform the building and solving phase at the same time Linearizing with the database at the old iteration. More... | |
void | BuildRHSAndSolve (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb) override |
Corresponds to the previews, but the System's matrix is considered already built and only the RHS is built again. More... | |
void | BuildRHS (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemVectorType &b) override |
Function to perform the build of the RHS. More... | |
void | SetUpDofSet (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart) override |
Builds the list of the DofSets involved in the problem by "asking" to each element and condition its Dofs. More... | |
void | SetUpSystem (ModelPart &rModelPart) override |
Organises the dofset in order to speed up the building phase. More... | |
void | ResizeAndInitializeVectors (typename TSchemeType::Pointer pScheme, TSystemMatrixPointerType &pA, TSystemVectorPointerType &pDx, TSystemVectorPointerType &pb, ModelPart &rModelPart) override |
This method initializes and resizes the system of equations. More... | |
void | CalculateReactions (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &A, TSystemVectorType &Dx, TSystemVectorType &b) override |
It computes the reactions of the system. More... | |
void | ApplyDirichletConditions (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rDx, TSystemVectorType &rb) override |
Applies the dirichlet conditions. This operation may be very heavy or completely unexpensive depending on the implementation chosen and on how the System Matrix is built. More... | |
void | ApplyRHSConstraints (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemVectorType &rb) override |
Applies the constraints with master-slave relation matrix (RHS only) More... | |
void | ApplyConstraints (typename TSchemeType::Pointer pScheme, ModelPart &rModelPart, TSystemMatrixType &rA, TSystemVectorType &rb) override |
Applies the constraints with master-slave relation matrix. More... | |
void | Clear () override |
This function is intended to be called at the end of the solution step to clean up memory storage not needed. More... | |
int | Check (ModelPart &rModelPart) override |
This function is designed to be called once to perform all the checks needed on the input provided. Checks can be "expensive" as the function is designed to catch user's errors. More... | |
Parameters | GetDefaultParameters () const override |
This method provides the defaults parameters to avoid conflicts between the different constructors. More... | |
static std::string | Name () |
Returns the name of the class as used in the settings (snake_case format) More... | |
Additional Inherited Members | |
Public Types inherited from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | |
typedef BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | ClassType |
The definition of the current class. More... | |
typedef std::size_t | SizeType |
Definition of the size type. More... | |
typedef std::size_t | IndexType |
Definition of the index type. More... | |
typedef TSparseSpace::DataType | TDataType |
Definition of the data type. More... | |
typedef TSparseSpace::MatrixType | TSystemMatrixType |
Definition of the sparse matrix. More... | |
typedef TSparseSpace::VectorType | TSystemVectorType |
Definition of the vector size. More... | |
typedef TSparseSpace::MatrixPointerType | TSystemMatrixPointerType |
Definition of the pointer to the sparse matrix. More... | |
typedef TSparseSpace::VectorPointerType | TSystemVectorPointerType |
Definition of the pointer to the vector. More... | |
typedef TDenseSpace::MatrixType | LocalSystemMatrixType |
The local matrix definition. More... | |
typedef TDenseSpace::VectorType | LocalSystemVectorType |
The local vector definition. More... | |
typedef Scheme< TSparseSpace, TDenseSpace > | TSchemeType |
Definition of the scheme type. More... | |
typedef ModelPart::DofType | TDofType |
Definition of the DoF class. More... | |
typedef ModelPart::DofsArrayType | DofsArrayType |
Definition of the DoF array type. More... | |
typedef ModelPart::NodesContainerType | NodesArrayType |
The containers of the entities. More... | |
typedef ModelPart::ElementsContainerType | ElementsArrayType |
typedef ModelPart::ConditionsContainerType | ConditionsArrayType |
typedef PointerVectorSet< Element, IndexedObject > | ElementsContainerType |
The definition of the element container type. More... | |
Static Public Member Functions inherited from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | |
static std::string | Name () |
Returns the name of the class as used in the settings (snake_case format) More... | |
Current class provides an implementation for standard builder and solving operations.
The RHS is constituted by the unbalanced loads (residual) Degrees of freedom are reordered putting the restrained degrees of freedom at the end of the system ordered in reverse order with respect to the DofSet. Imposition of the dirichlet conditions is naturally dealt with as the residual already contains this information. Calculation of the reactions involves a cost very similar to the calculation of the total residual
TSparseSpace | The sparse system considered |
TDenseSpace | The dense system considered |
TLinearSolver | The linear solver considered |
typedef BuilderAndSolver<TSparseSpace, TDenseSpace, TLinearSolver> Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::BaseType |
Definition of the base class.
typedef ResidualBasedBlockBuilderAndSolver<TSparseSpace, TDenseSpace, TLinearSolver> Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::ClassType |
The definition of the current class.
typedef boost::numeric::ublas::compressed_matrix<double> Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::CompressedMatrixType |
typedef BaseType::ConditionsArrayType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::ConditionsArrayType |
typedef DofType::Pointer Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::DofPointerType |
typedef BaseType::DofsArrayType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::DofsArrayType |
typedef Element::DofsVectorType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::DofsVectorType |
typedef NodeType::DofType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::DofType |
typedef BaseType::ElementsArrayType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::ElementsArrayType |
typedef PointerVectorSet<Element, IndexedObject> Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::ElementsContainerType |
Additional definitions.
typedef Element::EquationIdVectorType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::EquationIdVectorType |
typedef std::size_t Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::IndexType |
typedef BaseType::LocalSystemMatrixType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::LocalSystemMatrixType |
typedef BaseType::LocalSystemVectorType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::LocalSystemVectorType |
typedef BaseType::NodesArrayType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::NodesArrayType |
typedef Node Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::NodeType |
DoF types definition.
typedef std::size_t Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::SizeType |
typedef BaseType::TDataType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TDataType |
typedef BaseType::TSchemeType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TSchemeType |
Definition of the classes from the base class.
typedef BaseType::TSystemMatrixPointerType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TSystemMatrixPointerType |
typedef BaseType::TSystemMatrixType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TSystemMatrixType |
typedef BaseType::TSystemVectorPointerType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TSystemVectorPointerType |
typedef BaseType::TSystemVectorType Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::TSystemVectorType |
|
inlineexplicit |
Default constructor.
|
inlineexplicit |
Default constructor. (with parameters)
|
inlineexplicit |
Default constructor.
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
Applies the constraints with master-slave relation matrix.
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
rA | The LHS matrix |
rb | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverWithConstraintsForChimera< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Applies the dirichlet conditions. This operation may be very heavy or completely unexpensive depending on the implementation chosen and on how the System Matrix is built.
For explanation of how it works for a particular implementation the user should refer to the particular Builder And Solver chosen
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
rA | The LHS matrix |
rDx | The Unknowns vector |
rb | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ContactResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver, TBuilderAndSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverPeriodic< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Applies the constraints with master-slave relation matrix (RHS only)
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
rb | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
This method assigns settings to member variables.
ThisParameters | Parameters that are assigned to the member variables |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ContactResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver, TBuilderAndSolver >.
|
inlineoverridevirtual |
Function to perform the build of the RHS. The vector could be sized as the total number of dofs or as the number of unrestrained ones.
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
A | The LHS matrix |
b | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Function to perform the building and solving phase at the same time.
It is ideally the fastest and safer function to use when it is possible to solve just after building
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
A | The LHS matrix |
Dx | The Unknowns vector |
b | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Function to perform the building and solving phase at the same time Linearizing with the database at the old iteration.
It is ideally the fastest and safer function to use when it is possible to solve just after building
pScheme | The pointer to the integration scheme |
rModelPart | The model part to compute |
rA | The LHS matrix of the system of equations |
rDx | The vector of unknowns |
rb | The RHS vector of the system of equations |
MoveMesh | tells if the update of the scheme needs to be performed when calling the Update of the scheme |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Function to perform the building of the LHS.
Depending on the implementation chosen the size of the matrix could be equal to the total number of Dofs or to the number of unrestrained dofs
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
A | The LHS matrix |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Build a rectangular matrix of size n*N where "n" is the number of unrestrained degrees of freedom and "N" is the total number of degrees of freedom involved.
This matrix is obtained by building the total matrix without the lines corresponding to the fixed degrees of freedom (but keeping the columns!!)
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
A | The LHS matrix |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineprotectedvirtual |
|
inlineoverridevirtual |
Function to perform the build of the RHS.
The vector could be sized as the total number of dofs or as the number of unrestrained ones
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ContactResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver, TBuilderAndSolver >.
|
inlineoverridevirtual |
Corresponds to the previews, but the System's matrix is considered already built and only the RHS is built again.
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
rA | The LHS matrix |
rDx | The Unknowns vector |
rb | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineprotected |
|
inlineoverridevirtual |
It computes the reactions of the system.
pScheme | The pointer to the integration scheme |
rModelPart | The model part to compute |
rA | The LHS matrix of the system of equations |
rDx | The vector of unknowns |
rb | The RHS vector of the system of equations |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This function is designed to be called once to perform all the checks needed on the input provided. Checks can be "expensive" as the function is designed to catch user's errors.
rModelPart | The model part of the problem to solve |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This function is intended to be called at the end of the solution step to clean up memory storage not needed.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverWithConstraintsForChimera< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineoverridevirtual |
Create method.
pNewLinearSystemSolver | The linear solver for the system of equations |
ThisParameters | The configuration parameters |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ContactResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver, TBuilderAndSolver >.
|
inlineoverridevirtual |
This method returns constraint constant vector.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This method returns constraint relation (T) matrix.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This method provides the defaults parameters to avoid conflicts between the different constructors.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ContactResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver, TBuilderAndSolver >.
|
inline |
Retrieves the current scale factor. This function returns the current scale factor value.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::ResidualBasedBlockBuilderAndSolverWithMassAndDamping< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverWithConstraintsForChimera< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inline |
This is a call to the linear system solver (taking into account some physical particularities of the problem)
rA | The LHS matrix |
rDx | The Unknowns vector |
rb | The RHS vector |
rModelPart | The model part of the problem to solve |
Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::KRATOS_CLASS_POINTER_DEFINITION | ( | ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > | ) |
Definition of the pointer.
Kratos::ResidualBasedBlockBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >::KRATOS_DEFINE_LOCAL_FLAG | ( | SILENT_WARNINGS | ) |
Definition of the flags.
|
inlinestatic |
Returns the name of the class as used in the settings (snake_case format)
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::GlobalPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This method initializes and resizes the system of equations.
pScheme | The pointer to the integration scheme |
rModelPart | The model part to compute |
pA | The pointer to LHS matrix of the system of equations |
pDx | The pointer to vector of unknowns |
pb | The pointer to RHS vector of the system of equations |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inline |
Sets the scale factor. This function sets a new value for the scale factor.
ScaleFactor | The new value for the scale factor. |
|
inlineoverridevirtual |
Builds the list of the DofSets involved in the problem by "asking" to each element and condition its Dofs.
The list of dofs is stores inside the BuilderAndSolver as it is closely connected to the way the matrix and RHS are built
pScheme | The integration scheme considered |
rModelPart | The model part of the problem to solve |
Here we declare three sets.
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::LeastSquaresPetrovGalerkinROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
Organises the dofset in order to speed up the building phase.
rModelPart | The model part of the problem to solve |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::GlobalROMBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >, and Kratos::ResidualBasedBlockBuilderAndSolverPeriodic< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlineoverridevirtual |
This is a call to the linear system solver.
rA | The LHS matrix |
rDx | The Unknowns vector |
rb | The RHS vector |
Reimplemented from Kratos::BuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver >.
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >.
|
inlinevirtual |
This is a call to the linear system solver (taking into account some physical particularities of the problem)
rA | The LHS matrix |
rDx | The Unknowns vector |
rb | The RHS vector |
rModelPart | The model part of the problem to solve |
Reimplemented in Kratos::ResidualBasedBlockBuilderAndSolverWithLagrangeMultiplier< TSparseSpace, TDenseSpace, TLinearSolver >.
|
protected |
This is matrix containing the global relation for the constraints.
|
protected |
The equation ids of the master.
|
protected |
The equation ids of the slaves.
|
protected |
We identify the scaling considered for the dirichlet dofs.
|
protected |
The set containing the inactive slave dofs.
|
protected |
The manually set scale factor.
|
protected |
This is vector containing the rigid movement of the constraint.
|
protected |