Skip to content
Snippets Groups Projects
Commit b103a318 authored by jonathan.froehlich's avatar jonathan.froehlich
Browse files

Simplified scalar multiplication

parent 45290b60
No related branches found
No related tags found
2 merge requests!183Resolve "Resolve deprecated warnings",!182Resolve "Implement Oscillation test"
......@@ -128,10 +128,10 @@ double GuccioneBonetMaterial::q(const Tensor &E, const VectorField &f) const {
Tensor GuccioneBonetMaterial::dq(const Tensor &E, const VectorField &f) const {
VectorField Ef = E * f;
Tensor QE = 4.0 * a * (f * Ef) * Product(f, f);
QE += 4.0 * b * sym(Product(Ef, f));
QE += 4.0 * c * E;
return 2*QE;
Tensor QE = a * (f * Ef) * Product(f, f);
QE += b * sym(Product(Ef, f));
QE += c * E;
return 8.0*QE;
}
Tensor GuccioneBonetMaterial::ddq(const Tensor &E, const VectorField &f, const Tensor &H) const {
......
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