56 template<
class TSparseSpace,
101 if (CurrentProcessInfo[BUILD_LEVEL] == 1)
104 std::size_t LocalSize = LHS_Contribution.size1();
105 if (RHS_Contribution.size() != LocalSize)
106 RHS_Contribution.resize(LocalSize,
false);
109 else if (CurrentProcessInfo[BUILD_LEVEL] == 2)
132 RHS_Contribution.resize(LHS_Contribution.size1(),
false);
167 if (CurrentProcessInfo[BUILD_LEVEL] == 1)
170 std::size_t LocalSize = LHS_Contribution.size1();
171 if (RHS_Contribution.size() != LocalSize)
173 RHS_Contribution.resize(LocalSize,
false);
177 else if (CurrentProcessInfo[BUILD_LEVEL] == 2)
200 RHS_Contribution.resize(LHS_Contribution.size1(),
false);
Base class for all Conditions.
Definition: condition.h:59
std::vector< std::size_t > EquationIdVectorType
Definition: condition.h:98
virtual void CalculateMassMatrix(MatrixType &rMassMatrix, const ProcessInfo &rCurrentProcessInfo)
Definition: condition.h:574
virtual void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const
Definition: condition.h:260
virtual void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo)
Definition: condition.h:440
virtual void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo)
Definition: condition.h:408
An adapter scheme for obtaining mass and stiffness matrices for dynamic eigenvalue problems.
Definition: eigensolver_dynamic_scheme.hpp:60
Scheme< TSparseSpace, TDenseSpace > BaseType
Definition: eigensolver_dynamic_scheme.hpp:67
KRATOS_CLASS_POINTER_DEFINITION(EigensolverDynamicScheme)
BaseType::LocalSystemVectorType LocalSystemVectorType
Definition: eigensolver_dynamic_scheme.hpp:69
void CalculateSystemContributions(Element &rCurrentElement, LocalSystemMatrixType &LHS_Contribution, LocalSystemVectorType &RHS_Contribution, Element::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
This function is designed to be called in the builder and solver to introduce the selected time integ...
Definition: eigensolver_dynamic_scheme.hpp:91
void CalculateRHSContribution(Element &rCurrentElement, LocalSystemVectorType &RHS_Contribution, Element::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
This function is designed to calculate just the RHS contribution.
Definition: eigensolver_dynamic_scheme.hpp:143
~EigensolverDynamicScheme() override
Destructor.
Definition: eigensolver_dynamic_scheme.hpp:81
void CalculateSystemContributions(Condition &rCurrentCondition, LocalSystemMatrixType &LHS_Contribution, LocalSystemVectorType &RHS_Contribution, Condition::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
Functions totally analogous to the precedent but applied to the "condition" objects.
Definition: eigensolver_dynamic_scheme.hpp:158
void CalculateRHSContribution(Condition &rCurrentCondition, LocalSystemVectorType &RHS_Contribution, Element::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
Functions totally analogous to the precedent but applied to the "condition" objects.
Definition: eigensolver_dynamic_scheme.hpp:211
BaseType::LocalSystemMatrixType LocalSystemMatrixType
Definition: eigensolver_dynamic_scheme.hpp:71
void CalculateLHSContribution(Element &rCurrentElement, LocalSystemMatrixType &LHS_Contribution, Element::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
This function is designed to calculate just the LHS contribution.
Definition: eigensolver_dynamic_scheme.hpp:123
void CalculateLHSContribution(Condition &rCurrentCondition, LocalSystemMatrixType &LHS_Contribution, Condition::EquationIdVectorType &EquationId, const ProcessInfo &CurrentProcessInfo) override
Functions totally analogous to the precedent but applied to the "condition" objects.
Definition: eigensolver_dynamic_scheme.hpp:191
EigensolverDynamicScheme()
Constructor.
Definition: eigensolver_dynamic_scheme.hpp:78
Base class for all Elements.
Definition: element.h:60
virtual void CalculateMassMatrix(MatrixType &rMassMatrix, const ProcessInfo &rCurrentProcessInfo)
Definition: element.h:570
virtual void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo)
Definition: element.h:437
virtual void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const
Definition: element.h:258
virtual void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo)
Definition: element.h:405
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
This class provides the implementation of the basic tasks that are needed by the solution strategy.
Definition: scheme.h:56
virtual void EquationId(const Element &rElement, Element::EquationIdVectorType &rEquationId, const ProcessInfo &rCurrentProcessInfo)
This method gets the eqaution id corresponding to the current element.
Definition: scheme.h:636
typename TDenseSpace::VectorType LocalSystemVectorType
Local system vector type definition.
Definition: scheme.h:80
typename TDenseSpace::MatrixType LocalSystemMatrixType
Local system matrix type definition.
Definition: scheme.h:77
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484