CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Elements that limit the Courant number

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2008, 22:37
Default Hi All, Is there a way to k
  #1
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi All,

Is there a way to know which elements are responsible for high Courant numbers or which limit the time step in a variable time stepping algorithm? checkMesh does give us some clue but I would like to know the exact elements to improve the mesh quality.

Thanks in advance
Senthil
skabilan is offline   Reply With Quote

Old   July 2, 2008, 04:58
Default Have a look at the Co-utility.
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Have a look at the Co-utility. It produces a surfaceField with the Courant-number of each face. Problem is that surface-Fields can't be postprocessed using paraview. You've got to convert them into volume-fields. I (and this might come as a surprise) recommend funkySetFields for that task.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 2, 2008, 18:45
Default Hi Bernhard, Thanks for the
  #3
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi Bernhard,

Thanks for the suggestion. I was wondering if funkySetFields work with OpenFOAM 1.4.1? I get the following compilation error. Any help or thoughts?

Thanks
Senthil

bigbox128% wmake
Making dependency list for source file ValueExpressionParser.C
Making dependency list for source file ValueExpressionLexer.C
SOURCE=ValueExpressionParser.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function âunsigned char ve::ValueExpressionParser::yytranslate_(int)â:
ValueExpressionParser.tab.cc:1814: warning: use of old-style cast
SOURCE=ValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionLexer.o
ValueExpressionLexer.C:245: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
lex.ve.c: In function âint velex(ve::ValueExpressionParser::semantic_type*, ve::location*, ValueExpressionDriver&)â:
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3910: warning: use of old-style cast
lex.ve.c:4229: warning: use of old-style cast
lex.ve.c: In function âint yy_get_next_buffer()â:
lex.ve.c:4397: warning: use of old-style cast
lex.ve.c:4424: warning: use of old-style cast
lex.ve.c:4437: warning: use of old-style cast
lex.ve.c:4438: warning: use of old-style cast
lex.ve.c:4459: warning: use of old-style cast
lex.ve.c: In function âyy_state_type yy_get_previous_state()â:
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c: In function âint yyinput()â:
lex.ve.c:4664: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_create_buffer(FILE*, int)â:
lex.ve.c:4741: warning: use of old-style cast
lex.ve.c:4750: warning: use of old-style cast
lex.ve.c: In function âvoid ve_delete_buffer(yy_buffer_state*)â:
lex.ve.c:4773: warning: use of old-style cast
lex.ve.c:4776: warning: use of old-style cast
lex.ve.c:4778: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_scan_buffer(char*, yy_size_t)â:
lex.ve.c:4857: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_scan_bytes(const char*, int)â:
lex.ve.c:4911: warning: use of old-style cast
lex.ve.c: In function âvoid yy_push_state(int)â:
lex.ve.c:4950: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c: In function âvoid* yy_flex_alloc(yy_size_t)â:
lex.ve.c:5061: warning: use of old-style cast
lex.ve.c: In function âvoid* yy_flex_realloc(void*, yy_size_t)â:
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c: At global scope:
lex.ve.c:4936: warning: âvoid yy_push_state(int)â defined but not used
lex.ve.c:4969: warning: âvoid yy_pop_state()â defined but not used
lex.ve.c:4980: warning: âint yy_top_state()â defined but not used
SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o
ValueExpressionDriver.C:9:32: error: fvPatchFieldFields.H: No such file or directory
ValueExpressionDriver.C: In member function âvoid ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = double]â:
ValueExpressionDriver.C:467: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to âFoam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In member function âvoid ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = Foam::Vector<double>]â:
ValueExpressionDriver.C:504: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to âFoam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C: In static member function âstatic void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = double]â:
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to âFoam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to âFoam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In static member function âstatic void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = Foam::Vector<double>]â:
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to âFoam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to âFoam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Error 1
skabilan is offline   Reply With Quote

Old   July 2, 2008, 19:06
Default ValueExpressionDriver.C:9:32:
  #4
ash
New Member
 
Arun Shourie
Join Date: Mar 2009
Location: Singapore
Posts: 12
Rep Power: 17
ash is on a distinguished road
ValueExpressionDriver.C:9:32: error: fvPatchFieldFields.H: No such file or directory


I took, this line from your error message...

So check its location in the file where depedencies for funkysetFields are written. I guess this should rectify this problem.
ash is offline   Reply With Quote

Old   July 2, 2008, 19:27
Default Hi Arun, Thanks for the hel
  #5
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi Arun,

Thanks for the help! I guess it has to be fvPatchFields.H instead of fvPatchFieldFields.H in the ValueExpressionDriver.C. Now i get the following error message. Does the error seem familiar to you?

Senthil

bigbox114% wmake
Making dependency list for source file ValueExpressionParser.C
Making dependency list for source file ValueExpressionLexer.C
Making dependency list for source file ValueExpressionDriver.C
SOURCE=ValueExpressionParser.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionParser.o
ValueExpressionParser.tab.cc: In member function âunsigned char ve::ValueExpressionParser::yytranslate_(int)â:
ValueExpressionParser.tab.cc:1814: warning: use of old-style cast
SOURCE=ValueExpressionLexer.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionLexer.o
ValueExpressionLexer.C:245: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
ValueExpressionLexer.C:296: warning: use of old-style cast
lex.ve.c: In function âint velex(ve::ValueExpressionParser::semantic_type*, ve::location*, ValueExpressionDriver&)â:
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3894: warning: use of old-style cast
lex.ve.c:3910: warning: use of old-style cast
lex.ve.c:4229: warning: use of old-style cast
lex.ve.c: In function âint yy_get_next_buffer()â:
lex.ve.c:4397: warning: use of old-style cast
lex.ve.c:4424: warning: use of old-style cast
lex.ve.c:4437: warning: use of old-style cast
lex.ve.c:4438: warning: use of old-style cast
lex.ve.c:4459: warning: use of old-style cast
lex.ve.c: In function âyy_state_type yy_get_previous_state()â:
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c:4507: warning: use of old-style cast
lex.ve.c: In function âint yyinput()â:
lex.ve.c:4664: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_create_buffer(FILE*, int)â:
lex.ve.c:4741: warning: use of old-style cast
lex.ve.c:4750: warning: use of old-style cast
lex.ve.c: In function âvoid ve_delete_buffer(yy_buffer_state*)â:
lex.ve.c:4773: warning: use of old-style cast
lex.ve.c:4776: warning: use of old-style cast
lex.ve.c:4778: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_scan_buffer(char*, yy_size_t)â:
lex.ve.c:4857: warning: use of old-style cast
lex.ve.c: In function âyy_buffer_state* ve_scan_bytes(const char*, int)â:
lex.ve.c:4911: warning: use of old-style cast
lex.ve.c: In function âvoid yy_push_state(int)â:
lex.ve.c:4950: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c:4954: warning: use of old-style cast
lex.ve.c: In function âvoid* yy_flex_alloc(yy_size_t)â:
lex.ve.c:5061: warning: use of old-style cast
lex.ve.c: In function âvoid* yy_flex_realloc(void*, yy_size_t)â:
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c:5079: warning: use of old-style cast
lex.ve.c: At global scope:
lex.ve.c:4936: warning: âvoid yy_push_state(int)â defined but not used
lex.ve.c:4969: warning: âvoid yy_pop_state()â defined but not used
lex.ve.c:4980: warning: âint yy_top_state()â defined but not used
SOURCE=ValueExpressionDriver.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -IlnInclude -I. -I/files0/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ValueExpressionDriver.o
ValueExpressionDriver.C: In member function âvoid ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = double]â:
ValueExpressionDriver.C:467: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to âFoam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In member function âvoid ValueExpressionDriver::makeZeroGradientPatches(Foa m::GeometricField<type,>&) [with T = Foam::Vector<double>]â:
ValueExpressionDriver.C:504: instantiated from here
ValueExpressionDriver.C:433: error: no matching function for call to âFoam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C: In static member function âstatic void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = double]â:
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to âFoam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C:599: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to âFoam::zeroGradientFvPatchField<double>::zeroGradi entFvPatchField(const Foam::fvPatch&, Foam::Field<double>&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double]
ValueExpressionDriver.C: In static member function âstatic void ValueExpressionDriver::makePatches(Foam::Geometric Field<type,>&, bool, const Foam::wordList&) [with T = Foam::Vector<double>]â:
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:555: error: no matching function for call to âFoam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPatchFiel d.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
ValueExpressionDriver.C:604: instantiated from here
ValueExpressionDriver.C:557: error: no matching function for call to âFoam::zeroGradientFvPatchField<foam::vector<doubl e> >::zeroGradientFvPatchField(const Foam::fvPatch&, Foam::Field<foam::vector<double> >&)â
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:90: note: candidates are: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:79: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:55: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::zeroGradientFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:67: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
/files0/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/zeroGradientFvPatchFi eld.C:42: note: Foam::zeroGradientFvPatchField<type>::zeroGradient FvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>]
make: *** [Make/linux64GccDPOpt/ValueExpressionDriver.o] Error 1
bigbox115%
skabilan is offline   Reply With Quote

Old   July 3, 2008, 00:28
Default Hi All, There is another pu
  #6
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Hi All,

There is another puzzle that I cannot solve. The number of faces in my /constant/polymesh/faces file says 6145432 but the file generated by Co utility has only 5760271 entries. Even the phi file has 5760271 entries in it. Any help?

Thanks in advance
Senthil
skabilan is offline   Reply With Quote

Old   July 3, 2008, 05:27
Default If you have a look at the poly
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
If you have a look at the polyMesh/boundary-file you will notice, that the first boundary patch starts at 5760271 (give or take 1 ;) ). Now look for the boundaryField at the end of the Co-file. You will find the missing face-values there.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   July 3, 2008, 06:57
Default It might be easier just to wri
  #8
Senior Member
 
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17
grtabor is on a distinguished road
It might be easier just to write your own utility to do this. All you would need is the velocity field (start from magU.C) and the cell dimension (get the cell volume from fvMesh and take the cube root?) and output a volScalarField of the Courant number direct for postprocessing with paraFoam.

Gavin
grtabor is offline   Reply With Quote

Old   July 3, 2008, 09:05
Default Hi Senthil, Yes, you get to
  #9
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Hi Senthil,

Yes, you get to Co number only for internal faces. No such thing on the boundary...

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   July 3, 2008, 13:07
Default Thanks guys! Things are crysta
  #10
Senior Member
 
Senthil Kabilan
Join Date: Mar 2009
Posts: 113
Rep Power: 17
skabilan is on a distinguished road
Thanks guys! Things are crystal clear now!

Senthil
skabilan 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
Courant number ivanyao OpenFOAM Running, Solving & CFD 5 January 5, 2009 05:25
COURANT NUMBER Ferreira Main CFD Forum 23 February 26, 2006 19:10
Courant number 999.999 PetrK CFX 3 December 15, 2005 12:07
Limit on Number of monitors? noName FLUENT 1 April 14, 2005 00:12
About Courant (CFL) number Jason Main CFD Forum 2 March 17, 2003 12:11


All times are GMT -4. The time now is 09:36.