access inletValue
I continue here an old thread without a solution.
Quote:
If I write this piece of code: const volVectorField::GeometricBoundaryField& U2bf = U2.boundaryField(); forAll(U2bf, patchi) { if ( U2bf.types()[patchi] == "inletOutlet" ) { Info << U2bf[patchi].inletValue() << endl; } } compilation fails giving the following error: error: ‘const class Foam::fvPatchField<Foam::Vector<double> >’ has no member named ‘inletValue’ I have not found the member for inletValue! Can someone help me please? Thank you Mattia |
Hi,
If you take a look at the inletOutletFvPatchField documentation http://foam.sourceforge.net/docs/cpp/a01095.html, you can find, that it is a child of mixedFvPatchField and has refValue method. Alternatively you can look at the sources: Code:
template<class Type> |
Dear alexeym,
following your suggestion I have solved the problem! Here there is the working code: Code:
const volVectorField::GeometricBoundaryField& U2bf = U2.boundaryField(); Thank you Mattia |
All times are GMT -4. The time now is 15:50. |