CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Possible bug in fvMotionSolver derived fixedValuePointPatchField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2007, 08:03
Default Dear OpenFOAM developers P
  #1
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 18
jaswi is on a distinguished road
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 is offline   Reply With Quote

Old   August 22, 2007, 09:41
Default Sorry for the mistake. I have
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 248
Rep Power: 18
jaswi is on a distinguished road
Sorry for the mistake. I have figured out what was wrong in the case settings.

With Best Regards
Jaswinder
jaswi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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