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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: l_r_mcglashan
Forum: OpenFOAM Programming & Development May 30, 2011, 06:41
Replies: 15
Views: 7,509
Posted By l_r_mcglashan
You can use U in the class constructor to...

You can use U in the class constructor to initialize objects and variables, but functions in the class cannot see U. Try accessing it from within a class member function and you'll see it doesn't...
Forum: OpenFOAM Programming & Development May 30, 2011, 05:41
Replies: 15
Views: 7,509
Posted By l_r_mcglashan
Don't think of references as pointers. Think of a...

Don't think of references as pointers. Think of a reference as an alias for an object; U_is in fact U. U_ is needed if any of the member functions in twoPhaseMixture require knowledge of U.
Forum: OpenFOAM Programming & Development May 28, 2011, 13:06
Replies: 15
Views: 7,509
Posted By l_r_mcglashan
1) The stuff after the colon is the initialiser...

1) The stuff after the colon is the initialiser list. It constructs other objects (such as transportModel) and its own member variables that you can see declared in the header file.

2) U_ is a...
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT -4. The time now is 16:12.