CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Possible bug in fvMotionSolver derived fixedValuePointPatchField (https://www.cfd-online.com/Forums/openfoam-bugs/62556-possible-bug-fvmotionsolver-derived-fixedvaluepointpatchfield.html)

jaswi August 22, 2007 08:03

Dear OpenFOAM developers P
 
Dear OpenFOAM developers

Please take a look at the code in fvMotionSolverTemplates.c which implements the new protected member function "cellMotionBoundaryTypes"
-----------------------------------
#include "fvMotionSolver.H"
#include "fixedValuePointPatchFields.H"
#include "cellMotionFvPatchFields.H"

// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //

template<class>
Foam::wordList Foam::fvMotionSolver::cellMotionBoundaryTypes
(
const typename GeometricField<type,>::
GeometricBoundaryField& pmUbf
) const
{
wordList cmUbf = pmUbf.types();

Info << "Cell Motion U boundary Types for Jaswinder" << cmUbf << nl << endl;

// Remove global patches from the end of the list
cmUbf.setSize(fvMesh_.boundary().size());

forAll(cmUbf, patchi)
{
if (isA<fixedvaluepointpatchfield<type> >(pmUbf[patchi]))
{
cmUbf[patchi] = cellMotionFvPatchField<type>::typeName;
Info << "cmUbf [" << patchi << "] =" << cmUbf[patchi] << " for Jaswinder" << nl << endl;
}
}

return cmUbf;
}

the first Info statement prints :
1
(
oscillatingVelocity
)
which is the correct boundary condition assigned to the pmUbf

But the second info statement prints:

cmUbf [0] =cellMotion for Jaswinder

----------------------

My question is that shouldn't it be oscillatingVelocity. My guess is that there is something wrong with this assignment statement:

cmUbf[patchi] = cellMotionFvPatchField<type>::typeName;

Please comment and if its a bug then please tell what should be the correction

With Best Regards
Jaswinder

jaswi August 22, 2007 09:41

Sorry for the mistake. I have
 
Sorry for the mistake. I have figured out what was wrong in the case settings.

With Best Regards
Jaswinder


All times are GMT -4. The time now is 17:41.