Line of Code
Good morning FOAMers. I have a question about a style of coding I have seen quite common in OpenFOAM and I do not quite comprehend it, and here it is:
Can someone kindly explain these two lines of coding ?:confused:
it might has been answered before...
You are taking your mesh (guessing fvMesh) and take a reference to your boundary mesh. .boundary()
[patchI] gives you the ith patch. I imagine this line within a forAll loop. So you are looping over all boundary patches and patchI is the actual one.
.name() gives you the name of it.
More cool you can get all this information from the doxygen. If you go to the fvMesh class you will find the member function boundary(). And from there its easy.
Perhaps you can now try to figure out the second one on your own.
Hope this helps!
|All times are GMT -4. The time now is 01:24.|