Recent content by yabi

  1. Y

    A geometry question in Comsol (draw a semi-circle tangent to a line)

    Dear FEAnalyst Thanks for your reply. Your last sentence means Comsol is not good for solid mechanics and Abaqus or Ansys is better? Do you have any idea about advantage or disadvantage of Comsol for thermodynamics and Computational Fluid Dynamics projects?
  2. Y

    A geometry question in Comsol (draw a semi-circle tangent to a line)

    I am new to Comsol. I want to draw my model which is a Tesla valve. The geometry is little complicated and I don't know how to draw a semi-circle tangent to a line. Is it possible? I draw it in Solidworks and imported it into Comsol but it gives error and I think it is better to draw inside...
  3. Y

    Fortran Can Fortran read input data from Excel?

    Dear Phinds Thanks for your reply. I didn't have enough lock to succeed. I want to read I,x, z from excel (file='z-dir coordinates.csv') and write them into file='Tpipe-coordinates.txt' I use following code: Dimension x(279),z(279) open (21, file='z-dir coordinates.csv')...
  4. Y

    Fortran Can Fortran read input data from Excel?

    I have prepared the coordinate of a pipe layout in excel. Now I have to input them into a FORTRAN code. Although I know it is possible to generate these coordinates inside FORTRAN, but working with Excel is much easier for me. Making these coordinate data inside FORTRAN is a very hard work and...
  5. Y

    Fortran A FORTRAN code for solving Sudoku puzzle

    Dear AlephZero and jedishrfu Thanks for replies. I have seen the wikipedia page but wanted to try a personal way for solving. It seams that there are many discussions on the issue and I was unaware of them. I will read the brute force algorithm thoroughly and let you know what am I up to do.
  6. Y

    Fortran A FORTRAN code for solving Sudoku puzzle

    Dear Jedish Thanks for comments. I was unaware of transformations you mentioned. They are interesting however I don't think they might help me to draw a flowchart for solution. As you wrote, making a generator is lot easier than writing a solution. But I don't have a solution for a given Sudoku.
  7. Y

    Fortran A FORTRAN code for solving Sudoku puzzle

    Dear Mark Thanks for your reply. I am trying to draw a flowchart of solution in FORTRAN. My methodology is as follows: 1- Select each cell with zero value (empty cells are zero) in big square (9x9) starting from top left 2- Put value 1 to the first zero cell. 3- Check this cell with all...
  8. Y

    Fortran A FORTRAN code for solving Sudoku puzzle

    For few days I am thinking to write a code in FORTRAN to solve the sudoku puzzle. At first it seams simple but I have no luck writing this code. I am wondering if there is any written code to solve this puzzle. I hope Sudoku puzzle is known for members here. en.wikipedia.org/wiki/Sudoku
  9. Y

    Fortran What is the meaning of COE & COK in Fortran?

    Dear jtbell Thanks for your comments. So Integer will do what dimension do and without integer and dimension it is impossible to declare and array. I hope gsal also reads this comment.
  10. Y

    Fortran What is the meaning of COE & COK in Fortran?

    I am not talking about a(1,1) = 4 a(2,2) = 8 But this one: integer a(2,2) Will your program working without integer command?
  11. Y

    Fortran What is the meaning of COE & COK in Fortran?

    Is the command integer a(2,2) compulsary? If yes, then it is sort of substitute for Dimension command!
  12. Y

    Fortran What is the meaning of COE & COK in Fortran?

    Really? I never have seen an array without dimension statement in the beginning. Could you please explain in detail how it could be possible to have arrays without using dimension statement?
  13. Y

    Fortran What is the meaning of COE & COK in Fortran?

    Dear SteamKing Thanks for your reply. You are correct. I am absolutely absent minded regarding this foolish question.
  14. Y

    Fortran What is the meaning of COE & COK in Fortran?

    In an old (1974) FORTRAN program, I have following two lines IF(FX.GT.COE(KOP,1)) GOTO 1 F=X*COK(KOP,1) I can't understand the meaning of COE and COK commands. Are they standard FORTRAN commands? PS) If you could kindly guide me to a site whee I can find list of fortran commands, I...
Back
Top