Skip to content
Snippets Groups Projects
Commit 59248665 authored by Laura Stengel's avatar Laura Stengel
Browse files

started to fix KelvinVoigt damping

parent dd2d316f
No related branches found
No related tags found
1 merge request!260i..
...@@ -41,24 +41,22 @@ public: ...@@ -41,24 +41,22 @@ public:
}; };
double Derivative(const Tensor &F, const Tensor &L, const Tensor &H) const override { double Derivative(const Tensor &F, const Tensor &L, const Tensor &H) const override {
auto traceEDot = trace(sym(transpose(F) * L)); return 2.0 * eta * Frobenius(F, L) * Frobenius(H, L);
return 2.0 * eta * traceEDot * Frobenius(F, H); }
};
double SecondDerivative(const Tensor &F, const Tensor &L, const Tensor &H, double SecondDerivative(const Tensor &F, const Tensor &L, const Tensor &H,
const Tensor &G) const override { const Tensor &G) const override {
return 2.0 * eta * Frobenius(F, H) * Frobenius(F, G); return 2.0 * eta * Frobenius(H, L) * Frobenius(G, L);
}; }
double Derivative(const Tensor &F, const Tensor &L, const TensorRow &H) const override { double Derivative(const Tensor &F, const Tensor &L, const TensorRow &H) const override {
auto traceEDot = trace(sym(transpose(F) * L)); return 2.0 * eta * Frobenius(F, L) * Frobenius(H, L);
return 2.0 * eta * traceEDot * Frobenius(F, H); }
};
double SecondDerivative(const Tensor &F, const Tensor &L, const TensorRow &H, double SecondDerivative(const Tensor &F, const Tensor &L, const TensorRow &H,
const TensorRow &G) const override { const TensorRow &G) const override {
return 2.0 * eta * Frobenius(F, H) * Frobenius(F, G); return 2.0 * eta * Frobenius(H, L) * Frobenius(G, L);
}; }
}; };
#endif //VISCOELASTICDAMPING_HPP #endif //VISCOELASTICDAMPING_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment