|
[Sponsors] |
June 22, 2007, 06:40 |
Hello Dear foamers!
I have
|
#1 |
Member
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 17 |
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. |
|
June 22, 2007, 08:28 |
Make a PtrList of interpolatio
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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 |
|
June 22, 2007, 09:52 |
Thank you!
I was close but
|
#3 |
Member
Rosario Russo
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 56
Rep Power: 17 |
Thank you!
I was close but not enough to catch it. Basically I was not using new... |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Fortran] (-real number)**(- or + real number) | jinwon | Main CFD Forum | 3 | June 14, 2007 15:50 |
Nu Number | rosol | FLUENT | 1 | May 19, 2007 17:58 |
About CFL number | yan | Fidelity CFD | 5 | January 1, 2006 06:07 |
Ratio of Reynould Number and Froude Number | CFD MAN | Main CFD Forum | 2 | August 23, 2002 21:01 |
Low Ren Number | KIAN | FLUENT | 1 | February 29, 2000 06:54 |