CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Numerical methods

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2000, 11:07
Default Numerical methods
  #1
Lex
Guest
 
Posts: n/a
Hi everybody Developing my code for solving cfd problem I had to make some interpolation of another numerical experiment data So after some time I found some procedures for interpolation by spline good enough for my purposes The only problem is that I'm usin C++ and have no good mathematical libraies So when I had to make the inverse matrix I understood that the time came to find something So I got the linalg packeg from netlib to work with matricies and vectors Looking at the code I understood that it's not bad But now I have trubles with compiling it If anyone used this lib please answer me.
  Reply With Quote

Old   September 13, 2000, 23:35
Default Re: Numerical methods
  #2
Istadi
Guest
 
Posts: n/a
Please use MATLAB . In Matlab, the any interpolation methods and matrix operations have been available.
  Reply With Quote

Old   September 14, 2000, 05:52
Default Re: MATLAB
  #3
Lex
Guest
 
Posts: n/a
Using MATLAB is not a bad idea I often use it for simple purposes But for these time I have to use interpolation in my own solver written in C (C++) so it's to tuff to my mind to use any part of MATLAB in this case
  Reply With Quote

Old   September 14, 2000, 07:39
Default Re: Numerical methods
  #4
Sebastien Perron
Guest
 
Posts: n/a
Is it an obligation to make to inverse matrix?

Wouldn't it be better to solve the system?

If so try templates from netlib. I used it and had no difficulties compiling it.

P.S. As far as I can remember, it is very time consuming to actually calculate the inverse of a matrix.
  Reply With Quote

Old   September 14, 2000, 10:45
Default Re: MATLAB
  #5
Kai Kang
Guest
 
Posts: n/a
Take a look at the numerical receipt, it should at least has some information about matrix operation in Fortran, which is not difficult to convert to C++

Inverse big matrix costs too much of computational effort, why not try iteratively solve it...
  Reply With Quote

Old   September 15, 2000, 09:48
Default Re: Numerical methods
  #6
Hans Klaufus
Guest
 
Posts: n/a
Hi Lex,

I developped some codes (C++) myself for splining, matrix stuff, etc. If you're interested, please send me an email, so I can attach these sources in a replying email.

Cheers, Hans.
  Reply With Quote

Old   September 17, 2000, 13:16
Default Re: Inverse
  #7
Lex
Guest
 
Posts: n/a
Hi

Sometimes it's easier to invert matrix espesially if you have to solve several linear systems with the same matrix but different right parts

Aleksei Privalov
  Reply With Quote

Old   September 19, 2000, 10:46
Default Re: Numerical methods
  #8
Reza Besharati
Guest
 
Posts: n/a
Hi Dear Alex Take a look at the MathLink feature of Mathematica version 4.0,at the addreess: www.wolfram.com I don't know but I think it mught be helpfull. Reza
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
numerical jacobian, matrix free methods Nikhil Main CFD Forum 1 December 5, 2008 04:51
CFL-Free numerical methods joy Main CFD Forum 8 August 20, 2008 07:03
1D numerical methods compared Andrei Main CFD Forum 0 October 14, 2002 04:22
Numerical methods in gas compression Oleg Main CFD Forum 0 January 15, 1999 06:46
Numerical methods for discontinuous grid interfaces? Hansong Hang Main CFD Forum 12 September 16, 1998 23:26


All times are GMT -4. The time now is 13:36.