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

on taylor's series and C++ arrays

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2001, 21:28
Default on taylor's series and C++ arrays
  #1
yfyap
Guest
 
Posts: n/a
1) is taylor's series still true for a non-orthogonal boundary fitted coordinate? 2) what is the largest array that C++ can handle? thanks in advance for any information. regards, yfyap
  Reply With Quote

Old   June 11, 2001, 01:57
Default Re: on taylor's series and C++ arrays
  #2
freak
Guest
 
Posts: n/a
you have to transform the coordinatesystem in to an orthogonal system for example with elliptical transformation. than you have an nummerical and an physikal coordinatesystem and every point in the one system has an brother in the other system. now you can use taylor (equal distant increment in the nummerical system). with c++ i can not help you because i have an problem wit it to (instability - overflown error).
  Reply With Quote

Old   June 11, 2001, 06:52
Default Re: on taylor's series and C++ arrays
  #3
Sebastien Perron
Guest
 
Posts: n/a
It depends on Operating system. But, I have dealt with medium size problems (1 million unknowns) and the maximum array size wasn't an issue in C++.
  Reply With Quote

Old   June 11, 2001, 07:53
Default Re: on taylor's series and C++ arrays
  #4
yfyap
Guest
 
Posts: n/a
thanks. is it that i have to transform the non-orthogonal coordinate system into an orthogonal coordinate first, before i can use taylor's series? is this implies that taylor's series is only valid for orthogonal coordinate system?
  Reply With Quote

Old   June 14, 2001, 19:30
Default Re: on taylor's series and C++ arrays
  #5
clifford bradford
Guest
 
Posts: n/a
Taylor's series is valid for any continuous function with continuous derivatives to the order you wish to go. See your calculus book. As far as I know the limit on array size is simply the amount of RAM you have. The ANSI C spec. (which your C++ code should follow) does not specify a matrix size limit.
  Reply With Quote

Old   June 14, 2001, 21:40
Default Re: on taylor's series and C++ arrays
  #6
John C. Chien
Guest
 
Posts: n/a
(1). Array is given by its name and index, say A[i], where i is integer index. (2). In C++, the limit for int integer is 2^31 - 1. (slightly larger 2 billion)
  Reply With Quote

Old   June 14, 2001, 21:59
Default Re: on taylor's series and C++ arrays
  #7
yfyap
Guest
 
Posts: n/a
thanks
  Reply With Quote

Old   June 14, 2001, 22:01
Default Re: on taylor's series and C++ arrays
  #8
yfyap
Guest
 
Posts: n/a
thanks.
  Reply With Quote

Old   June 22, 2001, 08:36
Default Re: on taylor's series and C++ arrays
  #9
andy
Guest
 
Posts: n/a
This is wrong. C/C++ does not specify a size for int which is a cause of much grief for non-system programmers like us. The compiler writer can use whatever size is natural for the particular processor (or not) as they wish. So a C/C++ compiler on a 16 bit machines such as an old PC is likely to use 16 bits for an int (but might use 32) - use the sizeof operator to find out. A current 32 bit processor such as a Pentium is almost certain to use 32 bits as you suggest. But a compiler for a current 64 bit processor such as the Alpha is more likely to use 64 bits for an int than 32. So what is the size of long and short? These can be the same size as int but the short must not be bigger than int and the long must not be smaller but they do not have to be shorter or longer as their name implies!. In addition you do not have to use two's complement notation either and so the maximum and minimum size may vary by +/- 1 between implementations.

The consequence of all this is that if you write a CFD program in a language like C/C++ without taking a great deal of care concerning this sort of low level nonsense it may well fail on a different platform or even the same platform with a compiler from a different supplier.

  Reply With Quote

Old   June 22, 2001, 13:24
Default Re: on taylor's series and C++ arrays
  #10
John C. Chien
Guest
 
Posts: n/a
(1). I am aware of that. But I just didn't want to cover the basic things here. (2). Your comment is always printed in C/C++ books, so , everyone should have learned that already. (3). Anyway, my answer is one correct answer, but it did not cover all the possibilities. Basically, "your int is likely to be different from my int". Thank you for the detailed information about these basic things.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Time series of velocity at inlet/outlet as boundary condition tofighi FLUENT 0 May 27, 2010 03:01
Taylors series madhukar_nal OpenFOAM 0 April 19, 2010 06:42
how do I export the time series of the result? empirer2002 CFX 3 April 16, 2008 07:33
CFD: Using Taylor series charlie ryan Main CFD Forum 4 August 3, 2007 04:56
fourier series prapanj Main CFD Forum 2 December 10, 2006 12:33


All times are GMT -4. The time now is 07:03.