Commit 0708c473 authored by uheqb's avatar uheqb
Browse files

generalized Prestress in MainElasticity

parent 2a78e345
Pipeline #218951 failed with stages
in 98 minutes and 10 seconds
......@@ -105,8 +105,8 @@ void MainElasticity::initAssemble() {
config.get("WithPrestress", prestress);
if (prestress) {
StaticPressureProblem prestressPressure(pressureProblem->InitialPressure());
LagrangeElasticity pEla(*elasticityProblem, prestressPressure, *meshes, degree,isStatic);
IterativePressureSolver prestressSolver(pEla, prestressPressure);
prestressedEla = CreateFiniteElasticityAssemble(*elasticityProblem, prestressPressure, *meshes, degree, isStatic);
IterativePressureSolver prestressSolver(*prestressedEla, prestressPressure);
Vector p(0.0, *displacement);
prestressSolver.Solve(p, prestressSteps);
mechA->InitializePrestress(p);
......
......@@ -23,6 +23,7 @@ class MainElasticity : public MainCardMech {
std::unique_ptr<IDiscretization> scalarDisc = nullptr;
std::unique_ptr<FiniteElasticity> mechA = nullptr;
std::unique_ptr<FiniteElasticity> prestressedEla = nullptr;
std::unique_ptr<TimeSeries> tSeries = nullptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment