Mercurial > repos > public > sbplib
comparison +time/ExplicitRungeKuttaDiscreteData.m @ 859:4c7532db42cd feature/poroelastic
Add method getTimeStepQuadrature to RungeKuttaDiscreteData
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 03 Oct 2018 10:43:24 -0700 |
parents | 3c916a00033f |
children | c70131daaa6e 7963a9cab637 |
comparison
equal
deleted
inserted
replaced
858:335b8b1366d4 | 859:4c7532db42cd |
---|---|
57 b = obj.b; | 57 b = obj.b; |
58 c = obj.c; | 58 c = obj.c; |
59 s = obj.s; | 59 s = obj.s; |
60 end | 60 end |
61 | 61 |
62 % Returns quadrature weights for stages in one time step | |
63 function quadWeights = getTimeStepQuadrature(obj) | |
64 [~, b] = obj.getTableau(); | |
65 quadWeights = obj.k*b; | |
66 end | |
67 | |
62 function obj = step(obj) | 68 function obj = step(obj) |
63 v = obj.v; | 69 v = obj.v; |
64 a = obj.a; | 70 a = obj.a; |
65 b = obj.b; | 71 b = obj.b; |
66 c = obj.c; | 72 c = obj.c; |