|
[Sponsors] |
March 11, 2013, 04:13 |
List of Objects
|
#1 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15 |
Hello there,
i'm wondering about some "types" in Foam. say I have a class foo Code:
class foo { foo(); void doSomeThing(); scalar returnSomeThin(); scalar value; } First Idea: in my BC i define a list an do a loop over the list Code:
static foam::List<foo> fooList In terms of basic c++ I would use a std::vector<foo> fooList, but this does not feel right for FOAM. Anyone got an idea? Best Regards, Jim |
|
March 13, 2013, 07:35 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
A PtrList would be suitable. Also, it can't be static because you need to know the mesh size.
__________________
~~~ Follow me on twitter @DavidGaden |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 00:52 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |