From d15274fa28cb19dedf4eaf7f0b85546ee049d9a3 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Wed, 23 Apr 2014 01:19:12 +0200 Subject: [PATCH] correct stiffness matrix of 1d 3dof bar element --- .gitconfig | 4 ++++ src/fem/K.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitconfig b/.gitconfig index 8e7c327..8f651cc 100644 --- a/.gitconfig +++ b/.gitconfig @@ -6,6 +6,10 @@ br = branch ci = commit mylog = log --pretty=format:'%h %s [%an]' --graph + lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all + lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all + lg = !"git lg1" + changes = show --stat --oneline pushall = push --recurse-submodules=on-demand [core] quotepath = off diff --git a/src/fem/K.java b/src/fem/K.java index ca05599..17feec7 100644 --- a/src/fem/K.java +++ b/src/fem/K.java @@ -34,8 +34,8 @@ public class K extends Matrix{ */ public static Matrix bar3(double L, double ki){ return new Matrix(new double[][]{ - { 7, 56, 1}, - {56, 16, -8}, + { 7, -8, 1}, + {-8, 16, -8}, { 1, -8, 7}}).times(ki/(3*L)); }