Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GeomechanicsApplication] Geo/linear elastic strategy #12479

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
9c45b7d
added linear elastic dynamic strategy
aronnoordam Jun 21, 2024
0a862d3
improved linear elastic dynamic strategy
aronnoordam Jun 25, 2024
1f1e3e0
added clarification
aronnoordam Jun 25, 2024
507aeb9
added calculation of initial acceleration
aronnoordam Jun 28, 2024
346e221
connected solver in python
aronnoordam Jul 5, 2024
c79fe65
reverted unintended commit
aronnoordam Jul 5, 2024
19f2f70
added find_neighbour_elements and solved issue in validation
aronnoordam Aug 2, 2024
d15b379
cleanup
aronnoordam Aug 7, 2024
dd32a7f
added benchmark test
aronnoordam Aug 14, 2024
74aead2
added benchmark test
aronnoordam Aug 14, 2024
fee5a20
added dynamic test for multistage
aronnoordam Aug 14, 2024
b5c7729
clang tidy custom processes and strategies
aronnoordam Aug 14, 2024
23473f7
clang tidy solver linear elastic
aronnoordam Aug 14, 2024
aaf13ac
clang tidy test solver linear elastic
aronnoordam Aug 14, 2024
17f6f8e
clang tidy test solver linear elastic
aronnoordam Aug 14, 2024
8979322
removed forcing of using direct solver
aronnoordam Sep 9, 2024
02147d9
Merge branch 'master' into geo/linear_elastic_strategy
aronnoordam Sep 9, 2024
e4a1e45
corrected test after merge
aronnoordam Sep 9, 2024
dd6ab80
resolved warnings and added test for iterative solver
aronnoordam Sep 9, 2024
4fce2a9
removed unused variable
aronnoordam Sep 9, 2024
a678257
resolved errors in CI
aronnoordam Sep 10, 2024
4a172e1
resolved errors in CI
aronnoordam Sep 10, 2024
a5accd0
resolved errors in CI
aronnoordam Sep 13, 2024
236def6
cleaned test_dynamics
aronnoordam Sep 13, 2024
94ea951
cleaned test_dynamics
aronnoordam Sep 13, 2024
93e2dcb
sonar cloud suggestions
aronnoordam Sep 13, 2024
810d3c1
Merge branch 'master' into geo/linear_elastic_strategy
aronnoordam Sep 18, 2024
de657ba
resolved double declaration
aronnoordam Sep 18, 2024
7d18b7c
sonarcloud
aronnoordam Sep 18, 2024
a108b23
cleanup
aronnoordam Sep 19, 2024
0b56e8f
cleanup
aronnoordam Sep 19, 2024
a571be3
cleanup
aronnoordam Sep 19, 2024
7e9814e
Merge branch 'master' into geo/linear_elastic_strategy
aronnoordam Sep 19, 2024
18b9c89
corrected iteration numbering
aronnoordam Sep 20, 2024
9aa2851
added incremental newmark upw scheme
aronnoordam Oct 1, 2024
26df5f7
moved functions to utilities class
aronnoordam Oct 3, 2024
9d5baea
cleanup
aronnoordam Oct 3, 2024
570d797
added master slave constraint
aronnoordam Oct 4, 2024
7f76ace
clang tidy
aronnoordam Oct 4, 2024
6e82c5d
added master slave constraint to linear elastic solver
aronnoordam Oct 9, 2024
d50e3c7
resolved comments
aronnoordam Oct 9, 2024
d8b494e
moved mass and damping part out of predict
aronnoordam Oct 10, 2024
6cd438d
resolved sonarcloud issues
aronnoordam Oct 10, 2024
b4f9be7
removed unused variable
aronnoordam Oct 10, 2024
cbeb8c4
solved bug for multistage and resolved comments
aronnoordam Oct 24, 2024
7e391af
rhs of elements are now called once, with 0 zero displacements to pre…
aronnoordam Nov 28, 2024
70bb353
added test for gravity load on soil column and fixed bug in init acc …
aronnoordam Nov 29, 2024
a71e1ca
added test for gravity load on soil column and fixed bug in init acc …
aronnoordam Nov 29, 2024
7aef93c
corrected c++ test
aronnoordam Nov 29, 2024
3f2b0c3
internal forces calculation can now be skipped in lysmer
aronnoordam Dec 11, 2024
1335743
moved initialisation of dxTot
aronnoordam Dec 19, 2024
2a3dee6
added test to check if solvesolutionstep can be called multiple times
aronnoordam Dec 20, 2024
cb32891
removed calculation of velocity and acceleration for backward euler q…
aronnoordam Dec 20, 2024
fe4a6c1
commented meaningless tests
aronnoordam Dec 20, 2024
9593e2b
added checks if rotation dofs are added
aronnoordam Dec 20, 2024
80d599b
added validate and assign defaults for absorbing boundary
aronnoordam Dec 23, 2024
38c788d
added skip mark for settlement test
aronnoordam Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Condition::Pointer UPwLysmerAbsorbingCondition<TDim, TNumNodes>::Create(IndexTyp

template <unsigned int TDim, unsigned int TNumNodes>
void UPwLysmerAbsorbingCondition<TDim, TNumNodes>::CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix,
const ProcessInfo& rCurrentProcessInfo)
const ProcessInfo& rCurrentProcessInfo)
{
ElementMatrixType stiffness_matrix;

Expand All @@ -41,7 +41,6 @@ void UPwLysmerAbsorbingCondition<TDim, TNumNodes>::CalculateLeftHandSide(MatrixT
this->AddLHS(rLeftHandSideMatrix, stiffness_matrix);
}


template <unsigned int TDim, unsigned int TNumNodes>
void UPwLysmerAbsorbingCondition<TDim, TNumNodes>::CalculateLocalSystem(MatrixType& rLhsMatrix,
VectorType& rRightHandSideVector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) UPwLysmerAbsorbingCondition
void CalculateRightHandSide(VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;

/**
* @brief Calculates LHS stiffness part of absorbing boundary
* @param rLeftHandSideMatrix Global left hand side matrix
* @param rCurrentProcessInfo Current process information
*/
void CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix,
const ProcessInfo& rCurrentProcessInfo) override;
* @brief Calculates LHS stiffness part of absorbing boundary
* @param rLeftHandSideMatrix Global left hand side matrix
* @param rCurrentProcessInfo Current process information
*/
void CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, const ProcessInfo& rCurrentProcessInfo) override;

/**
* @brief Calculates LHS Damping part of absorbing boundary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
#include "custom_strategies/strategies/geo_mechanics_newton_raphson_erosion_process_strategy.hpp"
#include "custom_strategies/strategies/geo_mechanics_newton_raphson_strategy.hpp"
#include "custom_strategies/strategies/geo_mechanics_ramm_arc_length_strategy.hpp"
#include "custom_strategies/strategies/residualbased_newton_raphson_strategy_linear_elastic_dynamic.hpp"
#include "solving_strategies/strategies/solving_strategy.h"

// builders and solvers
#include "custom_strategies/builder_and_solvers/residualbased_block_builder_and_solver_linear_elastic_dynamic.h"
#include "custom_strategies/builder_and_solvers/residualbased_block_builder_and_solver_with_mass_and_damping.h"

// schemes
Expand All @@ -33,6 +35,7 @@
#include "custom_strategies/schemes/backward_euler_quasistatic_U_Pw_scheme.hpp"
#include "custom_strategies/schemes/generalized_newmark_T_scheme.hpp"
#include "custom_strategies/schemes/newmark_dynamic_U_Pw_scheme.hpp"
#include "custom_strategies/schemes/incremental_newmark_linear_elastic_U_scheme.hpp"
#include "custom_strategies/schemes/newmark_quasistatic_Pw_scheme.hpp"
#include "custom_strategies/schemes/newmark_quasistatic_U_Pw_scheme.hpp"
#include "custom_strategies/schemes/newmark_quasistatic_damped_U_Pw_scheme.hpp"
Expand Down Expand Up @@ -60,6 +63,7 @@ void AddCustomStrategiesToPython(pybind11::module& m)
using NewmarkQuasistaticDampedUPwSchemeType =
NewmarkQuasistaticDampedUPwScheme<SparseSpaceType, LocalSpaceType>;
using NewmarkDynamicUPwSchemeType = NewmarkDynamicUPwScheme<SparseSpaceType, LocalSpaceType>;
using IncrementalNewmarkLinearElasticUSchemeType = IncrementalNewmarkLinearElasticUScheme<SparseSpaceType, LocalSpaceType>;
using NewmarkQuasistaticPwSchemeType = NewmarkQuasistaticPwScheme<SparseSpaceType, LocalSpaceType>;
using NewmarkQuasistaticTSchemeType = GeneralizedNewmarkTScheme<SparseSpaceType, LocalSpaceType>;

Expand All @@ -75,6 +79,8 @@ void AddCustomStrategiesToPython(pybind11::module& m)
GeoMechanicsRammArcLengthStrategy<SparseSpaceType, LocalSpaceType, LinearSolverType>;
using GeoMechanicsNewtonRaphsonErosionProcessStrategyType =
GeoMechanicsNewtonRaphsonErosionProcessStrategy<SparseSpaceType, LocalSpaceType, LinearSolverType>;
using GeoMechanicNewtonRaphsonStrategyLinearElasticDynamicType =
GeoMechanicNewtonRaphsonStrategyLinearElasticDynamic<SparseSpaceType, LocalSpaceType, LinearSolverType>;

//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Expand All @@ -89,6 +95,10 @@ void AddCustomStrategiesToPython(pybind11::module& m)
py::class_<NewmarkDynamicUPwSchemeType, typename NewmarkDynamicUPwSchemeType::Pointer, BaseSchemeType>(
m, "NewmarkDynamicUPwScheme", py::module_local())
.def(py::init<double, double, double>());

py::class_<IncrementalNewmarkLinearElasticUSchemeType, typename IncrementalNewmarkLinearElasticUSchemeType::Pointer, BaseSchemeType>(
m, "IncrementalNewmarkLinearElasticUScheme", py::module_local())
.def(py::init<double, double>());

py::class_<NewmarkQuasistaticPwSchemeType, typename NewmarkQuasistaticPwSchemeType::Pointer, BaseSchemeType>(
m, "NewmarkQuasistaticPwScheme")
Expand Down Expand Up @@ -127,13 +137,26 @@ void AddCustomStrategiesToPython(pybind11::module& m)
BuilderAndSolverType::Pointer, Parameters&, int, bool, bool, bool>())
.def("UpdateLoads", &GeoMechanicsRammArcLengthStrategyType::UpdateLoads);

py::class_<GeoMechanicNewtonRaphsonStrategyLinearElasticDynamicType,
typename GeoMechanicNewtonRaphsonStrategyLinearElasticDynamicType::Pointer, BaseSolvingStrategyType>(
m, "GeoMechanicNewtonRaphsonStrategyLinearElasticDynamic")
.def(py::init<ModelPart&, BaseSchemeType::Pointer, LinearSolverType::Pointer, ConvergenceCriteriaType::Pointer,
BuilderAndSolverType::Pointer, Parameters&, int, bool, bool>());

using ResidualBasedBlockBuilderAndSolverWithMassAndDampingType =
ResidualBasedBlockBuilderAndSolverWithMassAndDamping<SparseSpaceType, LocalSpaceType, LinearSolverType>;
py::class_<ResidualBasedBlockBuilderAndSolverWithMassAndDampingType,
ResidualBasedBlockBuilderAndSolverWithMassAndDampingType::Pointer, BuilderAndSolverType>(
m, "ResidualBasedBlockBuilderAndSolverWithMassAndDamping")
.def(py::init<LinearSolverType::Pointer>())
.def(py::init<LinearSolverType::Pointer, Parameters>());

using ResidualBasedBlockBuilderAndSolverLinearElasticDynamicType =
ResidualBasedBlockBuilderAndSolverLinearElasticDynamic<SparseSpaceType, LocalSpaceType, LinearSolverType>;
py::class_<ResidualBasedBlockBuilderAndSolverLinearElasticDynamicType,
ResidualBasedBlockBuilderAndSolverLinearElasticDynamicType::Pointer, BuilderAndSolverType>(
m, "ResidualBasedBlockBuilderAndSolverLinearElasticDynamic")
.def(py::init<LinearSolverType::Pointer, double, double, bool>());
}

} // Namespace Kratos::Python
Loading
Loading