CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Number of patchToPatchInterpolation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2007, 05:40
Default Hello Dear foamers! I have
  #1
Member
 
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 17
ariorus is on a distinguished road
Hello Dear foamers!

I have a pretty basic and unimportant problem but a suggestion would be very useful to me to better understand the c++ programming art.

I'd like to make a given number of interpolations between different patches, but I'd like also to choose interpolations number and boundaries names setting proper parameters in a dictionary.

Well this should be pretty simple, but my problem is that I don't know how to initialize interpolations and interpolations number.

I mean I should have something like:

List<patchtopatchinterpolation> interpolations(num);

but it would be wrong since after this I cannot initilize every interpolation separately.

I tried using pointers, but without success...


Can anybody suggest how to solve this?

Thank you.

Ros.
ariorus is offline   Reply With Quote

Old   June 22, 2007, 07:28
Default Make a PtrList of interpolatio
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Make a PtrList of interpolations and add them with a .set(index, new patchToPatchInterpolation(args)) function (or .hook(...) in OF-1.3.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   June 22, 2007, 08:52
Default Thank you! I was close but
  #3
Member
 
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 17
ariorus is on a distinguished road
Thank you!

I was close but not enough to catch it.
Basically I was not using new...
ariorus is offline   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
[Fortran] (-real number)**(- or + real number) jinwon Main CFD Forum 3 June 14, 2007 14:50
Nu Number rosol FLUENT 1 May 19, 2007 16:58
About CFL number yan Fidelity CFD 5 January 1, 2006 05:07
Ratio of Reynould Number and Froude Number CFD MAN Main CFD Forum 2 August 23, 2002 20:01
Low Ren Number KIAN FLUENT 1 February 29, 2000 05:54


All times are GMT -4. The time now is 21:22.