Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5881 > unrolled thread
| Started by | Michelle Maul <michellemaul312@gmail.com> |
|---|---|
| First post | 2011-10-26 21:44 +0000 |
| Last post | 2011-10-26 21:44 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Table to calculate faster Michelle Maul <michellemaul312@gmail.com> - 2011-10-26 21:44 +0000
| From | Michelle Maul <michellemaul312@gmail.com> |
|---|---|
| Date | 2011-10-26 21:44 +0000 |
| Subject | Table to calculate faster |
| Message-ID | <j89uvc$7i$1@smc.vnet.net> |
I am trying to perform a heat transfer calculation on a wall with
transient heating. I am using rules so that we can easily change the
material. I want to be able to do several hundred time steps but I am
only able to get about 10 in an hour. It is a pretty straight forward
calculation so I'm wondering why it is taking so long to compute.
This is a calculation that Excel would be good at because it is taking
data from the cells above it to solve. Help please
T[0, t_] := (1. -
2. \[Tau] - (2. \[Tau] Subscript[h, in] \[CapitalDelta]x)/k) T[
0, t - 1] +
2. \[Tau] T[1,
t - 1] + (2. \[Tau] Subscript[h, in] \[CapitalDelta]x)/k*
Subscript[T, in] /. masonry;
T[m_, t_] := \[Tau] (T[m - 1, t - 1] + T[m + 1, t - 1]) + (1. -
2. \[Tau]) T[m, t - 1] /. masonry;
T[5, t_] := (1. - 2. \[Tau] -
2. \[Tau] (Subscript[h, out] \[CapitalDelta]x)/k) T[5,
t - 1] + 2. \[Tau] T[4, t - 1] +
2. \[Tau] (Subscript[h, out] \[CapitalDelta]x)/
k*(Subscript[T, out] /. {x -> t}) +
2. \[Tau] (\[Kappa] *(Subscript[q,
solar] /. {x -> t}) \[CapitalDelta]x)/k /. masonry;
solution = Transpose[Table[T[n, x], {n, 0, 5}, {x, 0, 24}]]
Thank you
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web