|
[Sponsors] |
Possible bug in fvMotionSolver derived fixedValuePointPatchField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2007, 08:03 |
Dear OpenFOAM developers
P
|
#1 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
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 |
|
August 22, 2007, 09:41 |
Sorry for the mistake. I have
|
#2 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Sorry for the mistake. I have figured out what was wrong in the case settings.
With Best Regards Jaswinder |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reach p from fvmotionsolver | erik023 | OpenFOAM Running, Solving & CFD | 9 | January 11, 2009 16:13 |
FDM derived from FVM | Phi | Main CFD Forum | 0 | September 15, 2008 14:12 |
fortran derived type assignment | Paolo Lampitella | Main CFD Forum | 1 | September 12, 2008 04:53 |
which variable derived from which? | Ollimarc | CFX | 0 | March 22, 2008 16:30 |
Derived velocities from loss coefficients ?? | jakjak | CFX | 1 | December 20, 2007 14:38 |