|
[Sponsors] |
November 4, 2010, 16:31 |
Reference "mesh" inside a class
|
#1 |
Member
Tony
Join Date: Jun 2010
Posts: 54
Rep Power: 15 |
Hi all,
I'm trying to create a class which references the "mesh" class within itself. I want to call mesh.cells and mesh.C from within the class. Is there a way to use some kind of pointer within the constructor to do this? For other variables (like U) it can be done because its is of type volVectorField and the code is like: myClass::myClass(volVectorField& U_) I want to include a reference to the mesh class instead of the U_. Thanks, Tony |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 00:34 |
Building OpenFoAm on SGI Altix 64bits | anne | OpenFOAM Installation | 8 | June 15, 2006 09:27 |
meshing F1 front wing | Steve | FLUENT | 0 | April 17, 2003 12:37 |