Recent content by loukoumas

  1. L

    Changing part of a name of a variable in a for loop

    DT..sec and T..sec are matrices and i m not interested on making an array of matrices. DT is the result from calculations (as T is a known matrix) for different time points and i just want to name my results according to the time point they refer to. But i am looking for a quicker way to do it...
  2. L

    Changing part of a name of a variable in a for loop

    changing part of a name of a variable in a "for" loop hello everyone! let's say i have the equation between two variables: DT10sec= A*T10sec, working in matlab. How can i use a "for" loop to calculate the equation DT20sec= A*T20sec DT30sec= A*T30sec, DT40sec= A*T40sec,... etc How can i...
  3. L

    Integer part of the output of a division

    hello there! i need to get the integer part of the output of a division in MATLab i.e. 23/5=4 (and the remainder is 3) what function should i use?
  4. L

    Calculating Table Elements with Equations A & B

    Hello again! Let's say that i am calculating every element of a 100X300 table by using equation A I use two for loops (i m doing this in matlab) for i=1:100 for j=1:300 element(i,j)=... (it is the equation A) end end equation A involves the neighboring elements What...
  5. L

    Numerical method for a heat diffusion problem

    You are right AlephZero! It is not Crank-Nicolson 's matter. The problem is on the iterative Gauss-Seidel process. The type Crank-Nicolson uses the four surrounding points' temperatures to calculate the i,j point. Some of these surrounding points may not be known(in example T(i+1,j) and...
  6. L

    Numerical method for a heat diffusion problem

    Hello everyone! I hope you may be able to shed light on a recent problem that i have to deal with. I keep working on a numerical solution on a heat diffusion problem. It is a numerical solution for the PDE θT/θt=a*(θ^2T/θx^2 + θ^2Τ/θy^2), that describes the heat diffusion on a two...
  7. L

    How to Exit a For Loop in C Programming

    Hello everyone! I just start using C programming as i execute a numerical method in MATlab for a heat diffusion problem. I have solve my problem but my code can be a little better. HERE is part of my code and i use comments to ask for help! for i=2:10 E(i,1)=20; T(i,1)=1...
  8. L

    Numerical method on heat diffusion problem

    Hello there! I am solving a heat diffusion problem which is described by the differential equation: θΤ/θt=a*(θ^2Τ/ΘΤ^2). I will apply two diffrent temperatures on the ends of a metal rod. Solving the equation i conclude, according to the boundary conditions of course, at the function...
  9. L

    Mathematica Solving Notebooks Issues on Mathematica

    hello everyone! I tried to work on MATHEMATICA and i find it so fine! But i have a problem! I can't save my notebooks. I get a message for a wrong path,but reading the whole message i assumed it's not smthing that i can fix. Did anyone have the same problem? Thank you!
  10. L

    MATLAB How Do I Solve Systems of Equations in MATLAB?

    if i am right about the RHS, my system will get at the form: [M]t=A t' + [N] t' + B c where c is [T'0+TO 0 T'4+T4] How MATLAB can now help me? i guess i need to leave t alone on the LHS! i haven't...
  11. L

    MATLAB How Do I Solve Systems of Equations in MATLAB?

    "For example with the first of your equations, 1 T1 - B T2 + 0 T3 = (-A T' + B T0' + T0)" wouldn't be the RHS a little different?? 1 T1 - B T2 + 0 T3 = A T1' + B ( T0' + T2' + T0 )
  12. L

    MATLAB How Do I Solve Systems of Equations in MATLAB?

    hello everybody! T1=A T1'+B(T0'+T2'+T0+T2) T2=A T2'+B(T1'+T3'+T1+T3) T3=A T3'+B(T2'+T4'+T2+T4) if A,B,T0,T4 and everything in (') character is known, i have T1,T2,T3 to find and 3 equations. how do i use MATLAB to solve this?(i have a...
  13. L

    Fortran Fortran 95 question about dimension error

    error 542, J appears in the dimension of a variable,yet is not a dummy argument,a variable available through USE or CONTAINS association,a COMMON variable,a PARAMETER,or a PURE FUNCTION the same error about I i am using i,j in order to point the temperature in length and time T(i,j) it is a...
Back
Top