|
[Sponsors] |
October 23, 2010, 11:31 |
2 function calls in one line??
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16 |
Hey there Foamers. I am trying to figure out this line of code. I must say that I know what the line of code is doing, but what is it based upon? As in two functions are called in one line, boundaryMesh() and findPatchID() ??
label patchK = mesh.boundaryMesh().findPatchID("wallHot"); Thanks Deji |
|
October 25, 2010, 03:53 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29 |
mesh.boundaryMesh() returns an object (or a reference), and you can keep on working on that object. There is no rule to limit yourself to one call per line.
|
|
October 25, 2010, 09:31 |
|
#3 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16 |
Thank you very much, it all makes sense now...Hooray
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 04:26 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |