What does a three-dimensional matrix look like?

  • Context: Undergrad 
  • Thread starter Thread starter Hypatio
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary

Discussion Overview

The discussion revolves around the construction and visualization of a three-dimensional matrix for solving systems of linear equations that involve two spatial dimensions and one temporal dimension. Participants explore how to represent this matrix, particularly in the context of a linear viscoelastic problem that incorporates time-dependent viscosity and convolution integrals.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks to understand how to visualize and construct a three-dimensional matrix for a system that depends on spatial and temporal dimensions, questioning whether to add the third dimension below or to the right of a 2D matrix.
  • Another participant requests clarification on the definition of "dimension" in this context, suggesting that it relates to the number of arguments the solution depends on.
  • A participant proposes that performing a Fourier transform with respect to time could simplify the convolution integral involved in the problem.
  • Concerns are raised about the complexity of the problem due to the time and space dependence of the relaxation modulus, complicating the numerical solution.
  • Several participants discuss the notation and meaning of summation and integration in the context of the equations presented, with some expressing confusion over the variables involved.
  • There is a suggestion that switching the order of integration in double integrals might simplify the problem, although participants express uncertainty about how to do this correctly.
  • One participant wonders if it is possible to reduce the summation required for time-dependent viscosity to use accumulated results from previous timesteps instead of summing over all times.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the construction of the matrix and the mathematical operations involved. There is no consensus on how to visualize the three-dimensional matrix or on the best approach to simplify the numerical solution, indicating multiple competing views and unresolved questions.

Contextual Notes

The discussion includes complex mathematical expressions and assumptions about the nature of the problem, such as the dependence of viscosity on time and space, which may affect the formulation of the matrix and the numerical methods applied.

Hypatio
Messages
147
Reaction score
1
I am trying to figure out how to construct a matrix for solving systems of linear equations with two dimensions of space and a dimension of time, but I do not know how to do this or begin visualizing such a matrix. The solution depends on all the data at all times less than the solved time so I can't cheat by simply updating a 2D matrix.

For instance, it is very clear that a 2D matrix will look like this:

http://www.eecs.berkeley.edu/~demmel/cs267/lecture17/DiscretePoisson.gif

Do I add the third dimension directly below this, or to the right? or to the bottom right? I would assume to the bottom right since a system of equations which can be reduced to tridiagonal matrix will also be true for a 3D matrix. On the other hand, I do not how it would be possible to create a tridiagonal matrix with a 3D problem because you will refer to prior time levels when solving new time levels.
 
Last edited:
Physics news on Phys.org
define what you mean by dimension
 
Dickfore said:
define what you mean by dimension
I'm not sure I can do that correctly without simply looking up the mathematical definition. The solution to my model has two dimensions of space, consisting of regularly spaced points. The dimension of time is also discretized so that I find the solution at desired times. The dependence on the time in the solution is due to a convolution integral so it is not a simple forward model where I can just update a 2D mesh, values for all times need to be retained since they depend on values at all previous times from the convolution.

I just want to know what the matrix is supposed to look like so that I can prepare the matrix gaussian elimination.
 
oh, so dimension is the number of arguments the solution depends on. If the equation is linear and contains a convolution in time, then performing a Fourier transform (with respect to time) will make the covolution a simplle multiplication of the Fourier componets. Then, it is a matter of finding the inverse Fourier transform, but there are methods for numerically doing that (FFT).
 
Dickfore said:
oh, so dimension is the number of arguments the solution depends on. If the equation is linear and contains a convolution in time, then performing a Fourier transform (with respect to time) will make the covolution a simplle multiplication of the Fourier componets. Then, it is a matter of finding the inverse Fourier transform, but there are methods for numerically doing that (FFT).
That sounds promising, but does matter if all the unit response functions are dependent on the time? My problem would be easily solved if the relaxation modulus was not time and space dependent. It is a linear viscoelastic problem where viscosity varies with time as well as space.

In any case, I still don't understand how a 3+dimensional problem can be numerically solved since I do not know how the matrix is constructed.
 
ok, i would suggest you start by showing us what the meaning of the matrix you linked in the op is and how you obtain it for the Poisson equation.
 
The equation solved is:
[tex]\nabla^4\phi\left (1+\lambda\frac{1-v}{E} \right )+\sum_{t_0}^t\int_{t_i}^t\left [k\frac{1-v}{E}\nabla^4\dot{\phi}-\left ( \frac{\partial^4}{\partial x^4}+\frac{\partial^4}{\partial y^4} \right )\dot{\phi} \right ]\exp \left [ -(t-t_i)\frac{\mu}{\eta} \right ]dt=\sum_{t_0}^t\int_{t_i}^t\dot{\epsilon_T}\exp \left [ -(t-t_i)\frac{\mu}{\eta} \right ]dt -\nabla^2 k\alpha_VT[/tex]
where:
nabla^4 is the biharmonic operator
lambda, v, E, k, aV, and mu are constant coefficients.
t is time (t_0 is start time and ti is a time between t_0 and t)
T is a variable (temperature)
phi is the scalar potential function which is what the solution finds.
the dot indicates derivative in respects to time
eta is the viscosity which varies in space and time
and
[tex]\epsilon_T=\frac{\partial^2}{\partial y^2}k\alpha_V T[/tex]

Finding the right side of the equation is quite trivial since epsilon is known, but since the convolution on the LHS involves the unknown stress function phi it will require more work in the dimension of time.
 
Last edited:
What does:

[tex] \sum_{t_{0}}^{t}[/tex]

stand for?
 
Dickfore said:
What does:

[tex] \sum_{t_{0}}^{t}[/tex]

stand for?
I see the notation is unclear. The amount of sum's depends on the time discretization. So you sum from time t_0 to t, t/Dt many times where Dt is the time interval.Maybe it is better written

[tex]\sum_{t=0}^{t/\Delta t}\int_{t_i}^tf(t)dt[/tex]
 
  • #10
Ok, so is:

[tex] \int_{t_{i}}^{t}{f(t') \, dt'}[/tex]

a function of the upper bound [itex]t[/itex] (I used a different symbol for the dummy variable [itex]t'[/itex]) and then you take the sum of the values of this function for a discrete set of the upper bound [itex]t[/itex]?

EDIT:

Also, what is [itex]t_{i}[/itex]?
 
  • #11
Dickfore said:
Ok, so is:

[tex] \int_{t_{i}}^{t}{f(t') \, dt'}[/tex]

a function of the upper bound [itex]t[/itex] (I used a different symbol for the dummy variable [itex]t'[/itex]) and then you take the sum of the values of this function for a discrete set of the upper bound [itex]t[/itex]?
I think that is right. So:

[tex]\sum_{t=0}^{t/\Delta t}\int_{t_i}^tf(t)dt=\int_{t_0}^tf(t)dt+\int_{\Delta t}^tf(t)dt+\int_{2\Delta t}^tf(t)dt...[/tex]
 
  • #12
what you wrote is not what I said.
 
  • #13
Dickfore said:
what you wrote is not what I said.
I'm sorry, I guess I didn't understand what you were asking. Is your question about the operation indicated by the summation and integration, or the term inside the integral or something else?
 
  • #14
It's about the summation. What variable are you summing with respect to?
 
  • #15
Dickfore said:
It's about the summation. What variable are you summing with respect to?

Oh I see. The value of t_i changes (increasing by Delta t) for each sum. So it is the lower bound that varies over summation. Meanwhile, the upper bound only changes when you are solving for a different time level.
 
  • #16
So, does this summation because of some approximation of an integral or is it something fundamental from the theory?
 
  • #17
Dickfore said:
So, does this summation because of some approximation of an integral or is it something fundamental from the theory?
The summation arises because of the dependence of the viscosity (eta in the equation) on time, and it is an approximation of an integral. If viscosity were constant, the variables epsilon_T and the partial differential terms for phi could be inserted into their respective integrals.

I'm actually wondering if there is a way to mostly reduce the summation such that I can use only some accumulated result from a previous timestep to evaluate the new timestep instead of performing the summation for all times for each timestep. I am reading a paper that says this is possible, but I am afraid that the time dependence will prevent this.
 
  • #18
Actually, I was thinking you can switch the order of integration in the double integrals and perform one of the integrals exactly.
 
  • #19
Dickfore said:
Actually, I was thinking you can switch the order of integration in the double integrals and perform one of the integrals exactly.
I don't see how this can be done?
 
  • #20
Well, as far as I can see, you have a double integral of the form:

[tex] \int_{t_{0}}^{t}{dt_{i} \, \int_{t_{i}}^{t}{f(t') \, \exp{\left[-(t' - t_{i}) \frac{\mu}{\eta(t')} \right]} \, dt'}}[/tex]

If you change the order of integration, then you have to be careful about the limits of the integrals. The result is:

[tex] \begin{align*}<br /> \int_{t_{0}}^{t}{dt' \, \int_{t_{0}}^{t'}{f(t') \, \exp{\left[-(t' - t_{i}) \frac{\mu}{\eta(t')} \right]} \, dt_{i}}} \\<br /> <br /> \int_{t_{0}}^{t}{dt' \, f(t') \, \exp{\left[-\frac{\mu \, t'}{\eta(t')}\right]} \, \int_{t_{0}}^{t'}{\exp{\left[\frac{\mu \, t_{i}}{\eta(t')} \right]} \, dt_{i}}} \\<br /> \end{align*}[/tex]

Now, the integral over [itex]t_{i}[/itex] is trivial (although [itex]\eta(t')[/itex] is a function of time, it is treated as a constant here).
 
  • #21
I've gone through this again and I am confused about whether or not I am writing this out correctly.

The following should be correct for the term under question:
[tex]\sum_{t_0}^{t/\Delta t}\left ( \epsilon (t)^n-\epsilon(t)^{n-1} \right ) \left ( 1-\int_{t_i}^t\frac{\mu}{\eta}dt \right )[/tex]

where superscripts indicate time levels and

[tex]\epsilon(t)=\frac{\partial^2 T}{\partial z^2}[/tex]

I would think you could describe this as the integral

[tex]\int_{t_0}^{t}\frac{d \epsilon}{dt} \left ( 1-\int_{t_i}^t\frac{\mu}{\eta}dt \right )dt[/tex]

and that this could be simplified to

[tex]\epsilon(t) \int_{t_0}^{t}\left ( 1-\int_{t_i}^t\frac{\mu}{\eta}dt \right )dt[/tex]

but this does not give the correct answer. In any case, looking at the numerics it appears that it should be impossible to take [tex]\epsilon(t)[/tex] out of the integral without doing something fancy.

By the way, thank you very much for thinking about this with me.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
3K