MATLAB How to calculate equation system in Matlab, with some knowns

AI Thread Summary
To solve the equation F=Ku in the context of finite element analysis, it is essential to understand the structure of the stiffness matrix K and the force vector F. The discussion emphasizes the need for familiarity with linear algebra techniques such as Gaussian elimination and Cholesky decomposition, which are crucial for solving systems of equations. For implementation in Matlab, the straightforward approach is to use the backslash operator (u = K \ F) to compute the unknown vector u. However, if the problem involves a more complex structure, like the one presented with matrices A, B, C, D, M, N, and L, it is necessary to set up the equations correctly in Matlab. The user seeks guidance on how to manipulate known variables and solve for the unknowns in the specified matrix format, indicating a need for practical coding advice rather than theoretical concepts.
berdan
Messages
31
Reaction score
1
It's part of finite elements analysis.
All I need is to solve F=Ku,K is [12x12] matrix .
Some of the members of u are zeros ,some members of F are known forces . K is all known .
How do I solve F=Ku in that way ??

Thanks in advance.
 
Physics news on Phys.org
It's not clear if your K matrix is for a single structure or is the stiffness matrix for one element.

In any event, if you haven't studied linear algebra, particularly things like Gaussian elimination or Cholesky decomposition, now will be a good time.

If you are studying finite element analysis, there is usually part of the course which is devoted to solving the system of equations and understanding the various methods.
 
If this is just a Matlab question, then use u = K \ F. If it's a finite element question, you need to consult a few textbooks first.
 
SteamKing said:
It's not clear if your K matrix is for a single structure or is the stiffness matrix for one element.

In any event, if you haven't studied linear algebra, particularly things like Gaussian elimination or Cholesky decomposition, now will be a good time.

If you are studying finite element analysis, there is usually part of the course which is devoted to solving the system of equations and understanding the various methods.

I studied Linear Algebra ,and that's overcomplicating things .
All I am asking : How do I solve in Matlab something like this :
[A] [1 0 1 0][M]
[V] [0 1 2 0][N]
[0]=EA/L [0 1 2 0][Q]
[D] [0 4 5 4][L]

Where I know some of the variables in the first matrix ,and I know some variables in the last matrix (in a form of parameter,lets say Q is known and given) .
I need to find A,B,C,D,M,N and L .
How do I do this in Matlab ?
 

Similar threads

Replies
32
Views
4K
Replies
7
Views
4K
Replies
1
Views
1K
Replies
6
Views
2K
Replies
4
Views
3K
Replies
9
Views
2K
Back
Top